blob: 8c9c782097fdda41e13f43a18d7d31961bd49d2f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Created by: Klayton Monroe <klm@uidzero.org>
# $FreeBSD$
PORTNAME= webjob
PORTVERSION= 1.9.0
CATEGORIES= sysutils security
MASTER_SITES= SF
EXTRACT_SUFX= .tgz
MAINTAINER= klm@uidzero.org
COMMENT= Download and execute a program over HTTP/HTTPS
USES= perl5
GNU_CONFIGURE= yes
USE_PERL5= build
MAN1= webjob.1 xshar.1
OPTIONS_DEFINE= PAD_TOOLS DSV_TOOLS SSL
OPTIONS_DEFAULT= PAD_TOOLS DSV_TOOLS
PAD_TOOLS_DESC= install PaD tools
DSV_TOOLS_DESC= install DSV tools
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPAD_TOOLS}
PLIST_SUB+= PAD_TOOLS=""
CONFIGURE_ARGS+= --with-pad-tools
.else
PLIST_SUB+= PAD_TOOLS="@comment "
.endif
.if ! ${PORT_OPTIONS:MSSL}
CONFIGURE_ARGS+= --without-ssl
PLIST_SUB+= DSV_TOOLS="@comment "
.else
USE_OPENSSL= yes
CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE}
.if ! ${PORT_OPTIONS:MDSV_TOOLS} # Note: DSV requires SSL
PLIST_SUB+= DSV_TOOLS="@comment "
.else
PLIST_SUB+= DSV_TOOLS=""
CONFIGURE_ARGS+= --with-dsv-tools
MAN1+= webjob-dsvtool.1
.endif
.endif
.if !defined(NO_STATIC)
CFLAGS+= -static
.endif
post-install:
@${STRIP_CMD} ${PREFIX}/bin/webjob
.include <bsd.port.mk>
|