summaryrefslogtreecommitdiff
path: root/www/thttpd/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2000-12-17 22:21:44 +0000
committerjlam <jlam>2000-12-17 22:21:44 +0000
commitb554e7313a803f1603e297afcc9064e81c2c1bad (patch)
tree58bd1a45f189bdef96bd196a0196d1feeb47e24f /www/thttpd/Makefile
parentc8949b9c3c59dce8038f664a150d6edb91f00d1f (diff)
downloadpkgsrc-b554e7313a803f1603e297afcc9064e81c2c1bad.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/Makefile13
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