diff options
author | jlam <jlam> | 2004-12-03 19:51:39 +0000 |
---|---|---|
committer | jlam <jlam> | 2004-12-03 19:51:39 +0000 |
commit | ecae3f3cb906e45113ff1a574cf8f87a39030e99 (patch) | |
tree | af4d7e501ae1a03170b4380f6924e138f4538283 /net | |
parent | fe8a8605369fc7c2c32b635e2f9c64998be97b1a (diff) | |
download | pkgsrc-ecae3f3cb906e45113ff1a574cf8f87a39030e99.tar.gz |
Be a bit more succinct by using a variable EGDIR in place of
"${PREFIX}/share/examples/openvpn". Also, avoid installing "*" to
avoid breaking if the install program doesn't accept more than one
file at a time.
Diffstat (limited to 'net')
-rw-r--r-- | net/openvpn-current/Makefile | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/net/openvpn-current/Makefile b/net/openvpn-current/Makefile index 1a91571c18d..12556ba8825 100644 --- a/net/openvpn-current/Makefile +++ b/net/openvpn-current/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2004/12/03 19:47:49 jlam Exp $ +# $NetBSD: Makefile,v 1.5 2004/12/03 19:51:39 jlam Exp $ # DISTNAME= openvpn-2.0_beta15 @@ -15,6 +15,7 @@ GNU_CONFIGURE= yes USE_LIBTOOL= yes PKG_SYSCONFSUBDIR= openvpn +EGDIR= ${PREFIX}/share/examples/${PKGBASE} CONFIGURE_ARGS+= --enable-pthread CONFIGURE_ARGS+= --enable-lzo @@ -30,15 +31,18 @@ LIBS+= -ldes .include "../../mk/pthread.buildlink3.mk" post-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/openvpn - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/openvpn/config - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/openvpn/scripts - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/openvpn/keys - ${INSTALL_DATA} ${WRKSRC}/sample-config-files/* \ - ${PREFIX}/share/examples/openvpn/config - ${INSTALL_DATA} ${WRKSRC}/sample-scripts/* \ - ${PREFIX}/share/examples/openvpn/scripts - ${INSTALL_DATA} ${WRKSRC}/sample-keys/* \ - ${PREFIX}/share/examples/openvpn/keys + ${INSTALL_DATA_DIR} ${EGDIR} + ${INSTALL_DATA_DIR} ${EGDIR/config + cd ${WRKSRC}/sample-config-files; for file in *; do \ + ${INSTALL_DATA} $$file ${EGDIR}/config; \ + done + ${INSTALL_DATA_DIR} ${EGDIR/scripts + cd ${WRKSRC}/sample-scripts; for file in *; do \ + ${INSTALL_DATA} $$file ${EGDIR}/scripts; \ + done + ${INSTALL_DATA_DIR} ${EGDIR/keys + cd ${WRKSRC}/sample-keys; for file in *; do \ + ${INSTALL_DATA} $$file ${EGDIR}/keys; \ + done .include "../../mk/bsd.pkg.mk" |