summaryrefslogtreecommitdiff
path: root/net/openvpn
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-02-20 04:24:17 +0000
committerjlam <jlam@pkgsrc.org>2008-02-20 04:24:17 +0000
commit0d30e66b3f8b6dbd95e2699175f9e6576eb1e5b3 (patch)
treedef0960d590cc64a0f02f84c06bc77f925c6e91f /net/openvpn
parent20a85821ab25a9d59178063ce4799fea7cbebda8 (diff)
downloadpkgsrc-0d30e66b3f8b6dbd95e2699175f9e6576eb1e5b3.tar.gz
+ Add full DESTDIR support.
+ Replace unnecessary /bin/bash in easy-rsa scripts with /bin/sh. Bump the PKGREVISION to 1.
Diffstat (limited to 'net/openvpn')
-rw-r--r--net/openvpn/Makefile20
1 files changed, 12 insertions, 8 deletions
diff --git a/net/openvpn/Makefile b/net/openvpn/Makefile
index 888184d6fdf..ad57604d84e 100644
--- a/net/openvpn/Makefile
+++ b/net/openvpn/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.24 2008/02/13 12:07:24 martti Exp $
+# $NetBSD: Makefile,v 1.25 2008/02/20 04:24:17 jlam Exp $
#
DISTNAME= openvpn-2.1_rc7
PKGNAME= openvpn-2.1rc7
-#PKGREVISION= 1
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= http://openvpn.net/release/ \
http://openvpn.net/release/old/
@@ -13,6 +13,8 @@ HOMEPAGE= http://openvpn.net/
COMMENT= Easy-to-use SSL VPN daemon
#LICENSE= gnu-gpl-v2
+PKG_DESTDIR_SUPPORT= user-destdir
+
GNU_CONFIGURE= yes
USE_TOOLS+= grep:run
USE_LIBTOOL= yes
@@ -54,6 +56,7 @@ DL_AUTO_VARS= yes
.include "../../net/solaris-tap/buildlink3.mk"
.endif
+REPLACE_SH= easy-rsa/2.0/*
SUBST_CLASSES+= pkitool
SUBST_STAGE.pkitool= post-build
SUBST_MESSAGE.pkitool= Fixing up default paths to grep & openssl in pkitool.
@@ -67,19 +70,20 @@ post-install:
case $$file in \
*.orig) ;; \
[A-Z]*|*.cnf|vars) \
- ${INSTALL_DATA} $$file ${EASYRSADIR:Q} ;; \
- *) ${INSTALL_SCRIPT} $$file ${EASYRSADIR:Q} ;; \
+ ${INSTALL_DATA} $$file ${DESTDIR}${EASYRSADIR:Q} ;; \
+ *) ${INSTALL_SCRIPT} $$file ${DESTDIR}${EASYRSADIR:Q} ;; \
esac; \
done
- ${INSTALL_DATA} ${WRKSRC:Q}/management/management-notes.txt ${DOCDIR:Q}
+ ${INSTALL_DATA} ${WRKSRC:Q}/management/management-notes.txt \
+ ${DESTDIR}${DOCDIR:Q}
cd ${WRKSRC:Q}/sample-config-files; for file in *; do \
- ${INSTALL_DATA} $$file ${EGDIR:Q}/config; \
+ ${INSTALL_DATA} $$file ${DESTDIR}${EGDIR:Q}/config; \
done
cd ${WRKSRC:Q}/sample-scripts; for file in *; do \
- ${INSTALL_DATA} $$file ${EGDIR:Q}/scripts; \
+ ${INSTALL_DATA} $$file ${DESTDIR}${EGDIR:Q}/scripts; \
done
cd ${WRKSRC:Q}/sample-keys; for file in *; do \
- ${INSTALL_DATA} $$file ${EGDIR:Q}/keys; \
+ ${INSTALL_DATA} $$file ${DESTDIR}${EGDIR:Q}/keys; \
done
.include "../../mk/bsd.pkg.mk"