diff options
author | kim <kim@pkgsrc.org> | 2001-05-13 19:02:47 +0000 |
---|---|---|
committer | kim <kim@pkgsrc.org> | 2001-05-13 19:02:47 +0000 |
commit | 4f81efe541a62954427546d62e00d12619d05ea4 (patch) | |
tree | 429f37d6aba1cbbb9c4691a3e4e33dcdbb1dcc97 /net/vtun/Makefile | |
parent | 498e03b655ef6ca275b0bb4bd1bfde87e325c638 (diff) | |
download | pkgsrc-4f81efe541a62954427546d62e00d12619d05ea4.tar.gz |
The config file for vtun is machine specific, so make it possible to
place it in /etc using VTUN_SYSCONFDIR.
Diffstat (limited to 'net/vtun/Makefile')
-rw-r--r-- | net/vtun/Makefile | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/net/vtun/Makefile b/net/vtun/Makefile index df2ed0d3f79..2ab9cf17dec 100644 --- a/net/vtun/Makefile +++ b/net/vtun/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2001/03/08 10:24:20 wiz Exp $ +# $NetBSD: Makefile,v 1.10 2001/05/13 19:02:47 kim Exp $ DISTNAME= vtun-2.4 CATEGORIES= net @@ -22,4 +22,40 @@ CONFIGURE_ENV+= LIBS="${LIBS}" ALL_TARGET= vtund PLIST_SUBST+= PREFIX=${PREFIX} +DEINSTALL_FILE= ${WRKDIR}/DEINSTALL +INSTALL_FILE= ${WRKDIR}/INSTALL + +.include "../../mk/bsd.prefs.mk" + +VTUN_SYSCONFDIR?=${LOCALBASE}/etc +CONFIGURE_ARGS+=--sysconfdir=${VTUN_SYSCONFDIR} +BUILD_DEFS+= VTUN_SYSCONFDIR + +pre-install: + @${SED} -e "s|@CAT@|${CAT}|g" \ + -e "s|@RM@|${RM}|g" \ + -e "s|@RMDIR@|${RMDIR}|g" \ + -e "s|@TRUE@|${TRUE}|g" \ + -e "s|@VTUN_SYSCONFDIR@|${VTUN_SYSCONFDIR}|g" \ + ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE} + @${SED} -e "s|@CAT@|${CAT}|g" \ + -e "s|@CHMOD@|${CHMOD}|g" \ + -e "s|@CP@|${CP}|g" \ + -e "s|@MKDIR@|${MKDIR}|g" \ + -e "s|@VTUN_SYSCONFDIR@|${VTUN_SYSCONFDIR}|g" \ + ${PKGDIR}/INSTALL > ${INSTALL_FILE} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/vtund ${PREFIX}/sbin + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/vtun + ${INSTALL_DATA} ${WRKSRC}/vtund.conf \ + ${PREFIX}/share/examples/vtun/vtund.conf.example + ${INSTALL_MAN} ${WRKSRC}/vtund.conf.5 ${PREFIX}/man/man5 + ${INSTALL_MAN} ${WRKSRC}/vtund.8 ${PREFIX}/man/man8 + ${RM} -f ${PREFIX}/man/man8/vtun.8 + ${LN} -s vtund.8 ${PREFIX}/man/man8/vtun.8 + +post-install: + @PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL + .include "../../mk/bsd.pkg.mk" |