pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/openvpn-current Be a bit more succinct by using a ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6cf7a5fa69aa
branches:  trunk
changeset: 485088:6cf7a5fa69aa
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Dec 03 19:51:39 2004 +0000

description:
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:

 net/openvpn-current/Makefile |  26 +++++++++++++++-----------
 1 files changed, 15 insertions(+), 11 deletions(-)

diffs (46 lines):

diff -r e913eea10a2a -r 6cf7a5fa69aa net/openvpn-current/Makefile
--- a/net/openvpn-current/Makefile      Fri Dec 03 19:47:49 2004 +0000
+++ b/net/openvpn-current/Makefile      Fri Dec 03 19:51:39 2004 +0000
@@ -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 @@
 USE_LIBTOOL=   yes
 
 PKG_SYSCONFSUBDIR=     openvpn
+EGDIR=                 ${PREFIX}/share/examples/${PKGBASE}
 
 CONFIGURE_ARGS+=       --enable-pthread
 CONFIGURE_ARGS+=       --enable-lzo
@@ -30,15 +31,18 @@
 .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"



Home | Main Index | Thread Index | Old Index