Lines 13-18
Link Here
|
13 |
# WILL BE DROPPED. -- Matthias Andree, 2006-04-26 |
13 |
# WILL BE DROPPED. -- Matthias Andree, 2006-04-26 |
14 |
# ----------------------------------------------------- |
14 |
# ----------------------------------------------------- |
15 |
PORTVERSION= 2.0.6 |
15 |
PORTVERSION= 2.0.6 |
|
|
16 |
PORTREVISION= 1 |
16 |
CATEGORIES= security net |
17 |
CATEGORIES= security net |
17 |
# MASTER_SITES points to hosts in distinct data centers, |
18 |
# MASTER_SITES points to hosts in distinct data centers, |
18 |
# so just one MASTER_SITES entry should be OK. |
19 |
# so just one MASTER_SITES entry should be OK. |
Lines 32-42
Link Here
|
32 |
OPTIONS= PW_SAVE "Interactive passwords may be read from a file" off |
33 |
OPTIONS= PW_SAVE "Interactive passwords may be read from a file" off |
33 |
|
34 |
|
34 |
USE_RC_SUBR= openvpn.sh |
35 |
USE_RC_SUBR= openvpn.sh |
|
|
36 |
USE_LDCONFIG= ${PREFIX}/lib |
35 |
|
37 |
|
36 |
SUB_FILES= pkg-message |
38 |
SUB_FILES= pkg-message pkg-req |
|
|
39 |
SUB_LIST+= OSVERSION=${OSVERSION} |
37 |
|
40 |
|
38 |
.include <bsd.port.pre.mk> |
41 |
.include <bsd.port.pre.mk> |
39 |
|
42 |
|
|
|
43 |
.if (${OSVERSION} >= 700007 || ( ${OSVERSION} < 700000 && ${OSVERSION} >= 600101)) |
44 |
rcsuffix= |
45 |
.else |
46 |
rcsuffix= .sh |
47 |
.endif |
48 |
SUB_LIST+= RCSFX=${rcsuffix} |
49 |
|
40 |
# NOTE: there is no way to explicitly specify the LZO version to OpenVPN, |
50 |
# NOTE: there is no way to explicitly specify the LZO version to OpenVPN, |
41 |
# if LZO2 and LZO1 are installed, OpenVPN will pick LZO2. |
51 |
# if LZO2 and LZO1 are installed, OpenVPN will pick LZO2. |
42 |
# So depend on LZO1 only if it's already there and LZO2 isn't. |
52 |
# So depend on LZO1 only if it's already there and LZO2 isn't. |
Lines 51-63
Link Here
|
51 |
CONFIGURE_ARGS+= --enable-password-save |
61 |
CONFIGURE_ARGS+= --enable-password-save |
52 |
.endif |
62 |
.endif |
53 |
|
63 |
|
54 |
# self-tests here |
|
|
55 |
post-build: |
64 |
post-build: |
|
|
65 |
cd ${WRKSRC}/plugin/down-root && ${MAKE} |
66 |
@# self-tests here |
67 |
.if !defined(WITHOUT_CHECK) |
56 |
cd ${WRKSRC} && ${MAKE} check |
68 |
cd ${WRKSRC} && ${MAKE} check |
|
|
69 |
.endif |
70 |
|
71 |
pre-install: |
72 |
PKG_PREFIX=${PREFIX} ${SH} ${PKGREQ} ${PKGNAME} INSTALL |
57 |
|
73 |
|
58 |
post-install: |
74 |
post-install: |
|
|
75 |
${MKDIR} ${PREFIX}/lib |
76 |
${INSTALL_PROGRAM} ${WRKSRC}/plugin/down-root/openvpn-down-root.so \ |
77 |
${PREFIX}/lib |
59 |
.if !defined(NOPORTDOCS) |
78 |
.if !defined(NOPORTDOCS) |
60 |
${MKDIR} ${DOCSDIR} |
79 |
${MKDIR} ${DOCSDIR} |
|
|
80 |
${INSTALL_DATA} ${WRKSRC}/plugin/down-root/README \ |
81 |
${DOCSDIR}/README.openvpn-down-root |
61 |
.for docs in AUTHORS COPYING COPYRIGHT.GPL ChangeLog INSTALL NEWS \ |
82 |
.for docs in AUTHORS COPYING COPYRIGHT.GPL ChangeLog INSTALL NEWS \ |
62 |
PORTS README |
83 |
PORTS README |
63 |
${INSTALL_DATA} ${WRKSRC}/${docs} ${DOCSDIR} |
84 |
${INSTALL_DATA} ${WRKSRC}/${docs} ${DOCSDIR} |