Fri Oct 8 17:58:05 2021 UTC ()
openvpn: Avoid to accidentally build HTML man pages

rst2html.py and rst2man.py are accidentally recognized if installed and used
leading to generation of HTML man pages and PLIST mismatch.


(leot)
diff -r1.88 -r1.89 pkgsrc/net/openvpn/Makefile

cvs diff -r1.88 -r1.89 pkgsrc/net/openvpn/Makefile (switch to unified diff)

--- pkgsrc/net/openvpn/Makefile 2021/10/05 19:25:41 1.88
+++ pkgsrc/net/openvpn/Makefile 2021/10/08 17:58:05 1.89
@@ -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
3DISTNAME= ${OPENVPN_DISTNAME} 3DISTNAME= ${OPENVPN_DISTNAME}
4CATEGORIES= net 4CATEGORIES= net
5MASTER_SITES= ${OPENVPN_MASTER_SITES} 5MASTER_SITES= ${OPENVPN_MASTER_SITES}
6EXTRACT_SUFX= .tar.xz 6EXTRACT_SUFX= .tar.xz
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://openvpn.net/ 9HOMEPAGE= https://openvpn.net/
10COMMENT= Easy-to-use SSL VPN daemon 10COMMENT= Easy-to-use SSL VPN daemon
11LICENSE= gnu-gpl-v2 11LICENSE= gnu-gpl-v2
12 12
13PKG_DESTDIR_SUPPORT= user-destdir 13PKG_DESTDIR_SUPPORT= user-destdir
14 14
15USE_LIBTOOL= yes 15USE_LIBTOOL= yes
16USE_TOOLS+= grep:run pkg-config 16USE_TOOLS+= grep:run pkg-config
17GNU_CONFIGURE= yes 17GNU_CONFIGURE= yes
18CONFIGURE_ARGS+= --disable-debug 18CONFIGURE_ARGS+= --disable-debug
19CONFIGURE_ARGS+= --disable-dependency-tracking 19CONFIGURE_ARGS+= --disable-dependency-tracking
20CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} 20CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
 21CONFIGURE_ENV+= ac_cv_prog_RST2HTML=
 22CONFIGURE_ENV+= ac_cv_prog_RST2MAN=
21 23
22TEST_TARGET= check 24TEST_TARGET= check
23 25
24PKG_SYSCONFSUBDIR= openvpn 26PKG_SYSCONFSUBDIR= openvpn
25EGDIR= ${PREFIX}/share/examples/${PKGBASE} 27EGDIR= ${PREFIX}/share/examples/${PKGBASE}
26RCD_SCRIPTS= openvpn 28RCD_SCRIPTS= openvpn
27 29
28INSTALLATION_DIRS+= ${EGDIR}/config 30INSTALLATION_DIRS+= ${EGDIR}/config
29INSTALLATION_DIRS+= ${EGDIR}/keys 31INSTALLATION_DIRS+= ${EGDIR}/keys
30INSTALLATION_DIRS+= ${EGDIR}/scripts 32INSTALLATION_DIRS+= ${EGDIR}/scripts
31 33
32SMF_METHODS= openvpn 34SMF_METHODS= openvpn
33 35
34.include "../../mk/bsd.prefs.mk" 36.include "../../mk/bsd.prefs.mk"
35 37
36PKG_GROUPS= ${OPENVPN_GROUP} 38PKG_GROUPS= ${OPENVPN_GROUP}
37PKG_USERS= ${OPENVPN_USER}:${OPENVPN_GROUP} 39PKG_USERS= ${OPENVPN_USER}:${OPENVPN_GROUP}
38PKG_GECOS.${OPENVPN_USER}= OpenVPN\ server\ user 40PKG_GECOS.${OPENVPN_USER}= OpenVPN\ server\ user
39 41
40MESSAGE_SUBST+= OPENVPN_PLUGINSDIR=${PREFIX}/${OPENVPN_PLUGINSDIR} 42MESSAGE_SUBST+= OPENVPN_PLUGINSDIR=${PREFIX}/${OPENVPN_PLUGINSDIR}
41 43
42post-install: 44post-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.
58DL_AUTO_VARS= yes 60DL_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"