diff options
author | jlam <jlam@pkgsrc.org> | 2000-12-17 22:21:44 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2000-12-17 22:21:44 +0000 |
commit | 2241a81cb38a45b4dcd5945b729875ee3e6d7705 (patch) | |
tree | 58bd1a45f189bdef96bd196a0196d1feeb47e24f /www/thttpd/Makefile | |
parent | 07eed863d59c62d0dfb2229a795320e7b6369f90 (diff) | |
download | pkgsrc-2241a81cb38a45b4dcd5945b729875ee3e6d7705.tar.gz |
Honor CFLAGS passed in from environment during build. Improve the INSTALL
script and add a DEINSTALL script in handling the config file.
Diffstat (limited to 'www/thttpd/Makefile')
-rw-r--r-- | www/thttpd/Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/www/thttpd/Makefile b/www/thttpd/Makefile index 4c85c658b57..46a1513f34d 100644 --- a/www/thttpd/Makefile +++ b/www/thttpd/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2000/10/28 02:35:52 itojun Exp $ +# $NetBSD: Makefile,v 1.10 2000/12/17 22:21:44 jlam Exp $ DISTNAME= thttpd-2.20b CATEGORIES= www @@ -15,6 +15,9 @@ GNU_CONFIGURE= # defined # Note: this pkg auto-detects IPv6 without regarding USE_INET6. BUILD_DEFS+= USE_INET6 +DEINSTALL_FILE= ${WRKDIR}/DEINSTALL +INSTALL_FILE= ${WRKDIR}/INSTALL + pre-configure: ${MV} ${WRKSRC}/extras/htpasswd.1 ${WRKSRC}/extras/thtpasswd.1 ${MV} ${WRKSRC}/extras/htpasswd.c ${WRKSRC}/extras/thtpasswd.c @@ -32,6 +35,14 @@ post-build: pre-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/thttpd + ${SED} -e "s,@CAT@,${CAT},g" \ + -e "s,@RM@,${RM},g" \ + < ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE} + ${SED} -e "s,@CAT@,${CAT},g" \ + -e "s,@CHMOD@,${CHMOD},g" \ + -e "s,@CP@,${CP},g" \ + < ${PKGDIR}/INSTALL > ${INSTALL_FILE} + PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL post-install: ${INSTALL_DATA} ${WRKDIR}/thttpd.conf ${PREFIX}/share/examples |