2002-06-16 21:12:13 +02:00
|
|
|
# $NetBSD: Makefile,v 1.20 2002/06/16 19:12:13 wiz Exp $
|
1999-04-11 00:01:10 +02:00
|
|
|
|
2002-06-16 21:10:25 +02:00
|
|
|
DISTNAME= thttpd-2.23beta1
|
|
|
|
PKGNAME= thttpd-2.23.0.1
|
1999-04-11 00:01:10 +02:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://www.acme.com/software/thttpd/
|
1999-12-15 15:48:48 +01:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
sitedrivenby.gif
|
1999-04-11 00:01:10 +02:00
|
|
|
|
|
|
|
MAINTAINER= mike@ethmoid.org
|
1999-11-22 00:03:37 +01:00
|
|
|
HOMEPAGE= http://www.acme.com/software/thttpd/
|
2001-02-17 18:21:28 +01:00
|
|
|
COMMENT= tiny/turbo/throttling HTTP server
|
1999-04-11 00:01:10 +02:00
|
|
|
|
2000-07-27 14:42:08 +02:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
GNU_CONFIGURE= # defined
|
1999-04-11 00:01:10 +02:00
|
|
|
|
2000-02-09 21:55:27 +01:00
|
|
|
# Note: this pkg auto-detects IPv6 without regarding USE_INET6.
|
2000-04-07 12:11:54 +02:00
|
|
|
BUILD_DEFS+= USE_INET6
|
2000-02-09 21:55:27 +01:00
|
|
|
|
2001-11-19 17:23:08 +01:00
|
|
|
EGDIR= ${PREFIX}/share/examples
|
2001-11-25 19:59:45 +01:00
|
|
|
CONF_FILES= ${EGDIR}/thttpd.conf ${PKG_SYSCONFDIR}/thttpd.conf
|
2001-11-21 16:44:22 +01:00
|
|
|
RCD_SCRIPTS= thttpd
|
2001-07-13 09:09:17 +02:00
|
|
|
|
2000-07-27 14:42:08 +02:00
|
|
|
pre-configure:
|
2000-02-09 21:55:27 +01:00
|
|
|
${MV} ${WRKSRC}/extras/htpasswd.1 ${WRKSRC}/extras/thtpasswd.1
|
2000-07-27 14:42:08 +02:00
|
|
|
${MV} ${WRKSRC}/extras/htpasswd.c ${WRKSRC}/extras/thtpasswd.c
|
2002-06-16 21:12:13 +02:00
|
|
|
for FILE in thttpd.8 extras/Makefile.in extras/thtpasswd.c; do \
|
|
|
|
${MV} -f ${WRKSRC}/$${FILE} ${WRKSRC}/$${FILE}.bak; \
|
2002-05-12 16:47:28 +02:00
|
|
|
${SED} -e "s,\.htpasswd,XXX,g;s,htpasswd,thtpasswd,g;s,XXX,.htpasswd,g" \
|
2002-06-16 21:12:13 +02:00
|
|
|
${WRKSRC}/$${FILE}.bak > ${WRKSRC}/$${FILE}; \
|
2000-07-27 14:42:08 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
post-build:
|
2002-06-16 21:12:13 +02:00
|
|
|
for FILE in thttpd.conf thttpd.sh; do \
|
2001-11-19 17:23:08 +01:00
|
|
|
${SED} ${FILES_SUBST_SED} \
|
2002-06-16 21:12:13 +02:00
|
|
|
${FILESDIR}/$${FILE} > ${WRKDIR}/$${FILE}; \
|
2000-07-27 14:42:08 +02:00
|
|
|
done
|
1999-12-15 15:48:48 +01:00
|
|
|
|
2000-02-09 21:55:27 +01:00
|
|
|
pre-install:
|
2000-07-27 14:47:33 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/thttpd
|
2000-02-09 21:55:27 +01:00
|
|
|
|
1999-12-15 15:48:48 +01:00
|
|
|
post-install:
|
2000-07-27 14:42:08 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/thttpd.conf ${PREFIX}/share/examples
|
2000-09-20 07:14:10 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/thttpd.sh ${PREFIX}/etc/rc.d/thttpd
|
2000-07-27 14:47:33 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/index.html ${PREFIX}/share/thttpd
|
|
|
|
${INSTALL_DATA} ${DISTDIR}/sitedrivenby.gif ${PREFIX}/share/thttpd
|
1999-04-11 00:01:10 +02:00
|
|
|
|
2001-11-19 17:23:08 +01:00
|
|
|
.include "../../mk/bsd.pkg.install.mk"
|
1999-04-11 00:01:10 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|