| @@ -1,68 +1,70 @@ | | | @@ -1,68 +1,70 @@ |
1 | # $NetBSD: Makefile,v 1.88 2021/10/05 19:25:41 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.89 2021/10/08 17:58:05 leot Exp $ |
2 | | | 2 | |
3 | DISTNAME= ${OPENVPN_DISTNAME} | | 3 | DISTNAME= ${OPENVPN_DISTNAME} |
4 | CATEGORIES= net | | 4 | CATEGORIES= net |
5 | MASTER_SITES= ${OPENVPN_MASTER_SITES} | | 5 | MASTER_SITES= ${OPENVPN_MASTER_SITES} |
6 | EXTRACT_SUFX= .tar.xz | | 6 | EXTRACT_SUFX= .tar.xz |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= https://openvpn.net/ | | 9 | HOMEPAGE= https://openvpn.net/ |
10 | COMMENT= Easy-to-use SSL VPN daemon | | 10 | COMMENT= Easy-to-use SSL VPN daemon |
11 | LICENSE= gnu-gpl-v2 | | 11 | LICENSE= gnu-gpl-v2 |
12 | | | 12 | |
13 | PKG_DESTDIR_SUPPORT= user-destdir | | 13 | PKG_DESTDIR_SUPPORT= user-destdir |
14 | | | 14 | |
15 | USE_LIBTOOL= yes | | 15 | USE_LIBTOOL= yes |
16 | USE_TOOLS+= grep:run pkg-config | | 16 | USE_TOOLS+= grep:run pkg-config |
17 | GNU_CONFIGURE= yes | | 17 | GNU_CONFIGURE= yes |
18 | CONFIGURE_ARGS+= --disable-debug | | 18 | CONFIGURE_ARGS+= --disable-debug |
19 | CONFIGURE_ARGS+= --disable-dependency-tracking | | 19 | CONFIGURE_ARGS+= --disable-dependency-tracking |
20 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} | | 20 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} |
| | | 21 | CONFIGURE_ENV+= ac_cv_prog_RST2HTML= |
| | | 22 | CONFIGURE_ENV+= ac_cv_prog_RST2MAN= |
21 | | | 23 | |
22 | TEST_TARGET= check | | 24 | TEST_TARGET= check |
23 | | | 25 | |
24 | PKG_SYSCONFSUBDIR= openvpn | | 26 | PKG_SYSCONFSUBDIR= openvpn |
25 | EGDIR= ${PREFIX}/share/examples/${PKGBASE} | | 27 | EGDIR= ${PREFIX}/share/examples/${PKGBASE} |
26 | RCD_SCRIPTS= openvpn | | 28 | RCD_SCRIPTS= openvpn |
27 | | | 29 | |
28 | INSTALLATION_DIRS+= ${EGDIR}/config | | 30 | INSTALLATION_DIRS+= ${EGDIR}/config |
29 | INSTALLATION_DIRS+= ${EGDIR}/keys | | 31 | INSTALLATION_DIRS+= ${EGDIR}/keys |
30 | INSTALLATION_DIRS+= ${EGDIR}/scripts | | 32 | INSTALLATION_DIRS+= ${EGDIR}/scripts |
31 | | | 33 | |
32 | SMF_METHODS= openvpn | | 34 | SMF_METHODS= openvpn |
33 | | | 35 | |
34 | .include "../../mk/bsd.prefs.mk" | | 36 | .include "../../mk/bsd.prefs.mk" |
35 | | | 37 | |
36 | PKG_GROUPS= ${OPENVPN_GROUP} | | 38 | PKG_GROUPS= ${OPENVPN_GROUP} |
37 | PKG_USERS= ${OPENVPN_USER}:${OPENVPN_GROUP} | | 39 | PKG_USERS= ${OPENVPN_USER}:${OPENVPN_GROUP} |
38 | PKG_GECOS.${OPENVPN_USER}= OpenVPN\ server\ user | | 40 | PKG_GECOS.${OPENVPN_USER}= OpenVPN\ server\ user |
39 | | | 41 | |
40 | MESSAGE_SUBST+= OPENVPN_PLUGINSDIR=${PREFIX}/${OPENVPN_PLUGINSDIR} | | 42 | MESSAGE_SUBST+= OPENVPN_PLUGINSDIR=${PREFIX}/${OPENVPN_PLUGINSDIR} |
41 | | | 43 | |
42 | post-install: | | 44 | post-install: |
43 | ${RUN} cd ${WRKSRC}/sample/sample-config-files; for file in *; do \ | | 45 | ${RUN} cd ${WRKSRC}/sample/sample-config-files; for file in *; do \ |
44 | ${INSTALL_DATA} $$file ${DESTDIR}${EGDIR}/config; \ | | 46 | ${INSTALL_DATA} $$file ${DESTDIR}${EGDIR}/config; \ |
45 | done | | 47 | done |
46 | ${RUN} cd ${WRKSRC}/sample/sample-scripts; for file in *; do \ | | 48 | ${RUN} cd ${WRKSRC}/sample/sample-scripts; for file in *; do \ |
47 | ${INSTALL_DATA} $$file ${DESTDIR}${EGDIR}/scripts; \ | | 49 | ${INSTALL_DATA} $$file ${DESTDIR}${EGDIR}/scripts; \ |
48 | done | | 50 | done |
49 | ${RUN} cd ${WRKSRC}/sample/sample-keys; for file in *; do \ | | 51 | ${RUN} cd ${WRKSRC}/sample/sample-keys; for file in *; do \ |
50 | ${INSTALL_DATA} $$file ${DESTDIR}${EGDIR}/keys; \ | | 52 | ${INSTALL_DATA} $$file ${DESTDIR}${EGDIR}/keys; \ |
51 | done | | 53 | done |
52 | | | 54 | |
53 | .include "options.mk" | | 55 | .include "options.mk" |
54 | .include "../../net/openvpn/Makefile.common" | | 56 | .include "../../net/openvpn/Makefile.common" |
55 | | | 57 | |
56 | # OpenVPN 2.x has a shared module "plugin" architecture that allows | | 58 | # OpenVPN 2.x has a shared module "plugin" architecture that allows |
57 | # inserting callbacks into the server for various tasks. | | 59 | # inserting callbacks into the server for various tasks. |
58 | DL_AUTO_VARS= yes | | 60 | DL_AUTO_VARS= yes |
59 | .include "../../mk/dlopen.buildlink3.mk" | | 61 | .include "../../mk/dlopen.buildlink3.mk" |
60 | | | 62 | |
61 | .if ${OPSYS} == "SunOS" | | 63 | .if ${OPSYS} == "SunOS" |
62 | .include "../../net/solaris-tap/buildlink3.mk" | | 64 | .include "../../net/solaris-tap/buildlink3.mk" |
63 | .endif | | 65 | .endif |
64 | .include "../../archivers/lz4/buildlink3.mk" | | 66 | .include "../../archivers/lz4/buildlink3.mk" |
65 | .include "../../archivers/lzo/buildlink3.mk" | | 67 | .include "../../archivers/lzo/buildlink3.mk" |
66 | .include "../../security/openssl/buildlink3.mk" | | 68 | .include "../../security/openssl/buildlink3.mk" |
67 | .include "../../mk/pthread.buildlink3.mk" | | 69 | .include "../../mk/pthread.buildlink3.mk" |
68 | .include "../../mk/bsd.pkg.mk" | | 70 | .include "../../mk/bsd.pkg.mk" |