summaryrefslogtreecommitdiff
path: root/net/openvpn-current
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-12-03 19:51:39 +0000
committerjlam <jlam@pkgsrc.org>2004-12-03 19:51:39 +0000
commitc92541a9338e4e5b9480edc7144ec396d17b0c6d (patch)
treeaf4d7e501ae1a03170b4380f6924e138f4538283 /net/openvpn-current
parente2add2d83f049122e5ae6f8c2d8d67acf872a87a (diff)
downloadpkgsrc-c92541a9338e4e5b9480edc7144ec396d17b0c6d.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/openvpn-current')
-rw-r--r--net/openvpn-current/Makefile26
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"