pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/thttpd bl3ify and general touch-up



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9d2acde875f0
branches:  trunk
changeset: 469376:9d2acde875f0
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sun Feb 22 18:34:54 2004 +0000

description:
bl3ify and general touch-up

diffstat:

 www/thttpd/Makefile        |  17 +++++++++--------
 www/thttpd/files/thttpd.sh |   8 +++-----
 2 files changed, 12 insertions(+), 13 deletions(-)

diffs (77 lines):

diff -r 31aa855054a1 -r 9d2acde875f0 www/thttpd/Makefile
--- a/www/thttpd/Makefile       Sun Feb 22 17:36:52 2004 +0000
+++ b/www/thttpd/Makefile       Sun Feb 22 18:34:54 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2004/01/17 12:55:05 xtraeme Exp $
+# $NetBSD: Makefile,v 1.27 2004/02/22 18:34:54 jlam Exp $
 
 DISTNAME=      thttpd-2.25b
 CATEGORIES=    www
@@ -11,16 +11,20 @@
 COMMENT=       Tiny/turbo/throttling HTTP server
 
 EXTRACT_ONLY=  ${DISTNAME}${EXTRACT_SUFX}
-GNU_CONFIGURE= # defined
+
+USE_BUILDLINK3=        yes
+GNU_CONFIGURE= yes
+USE_PKGINSTALL=        yes
 
 # Note: this pkg auto-detects IPv6 without regarding USE_INET6.
 BUILD_DEFS+=   USE_INET6
 
-USE_PKGINSTALL=        yes
 EGDIR=         ${PREFIX}/share/examples
 CONF_FILES=    ${EGDIR}/thttpd.conf ${PKG_SYSCONFDIR}/thttpd.conf
 RCD_SCRIPTS=   thttpd
 
+INSTALLATION_DIRS=     share/thttpd
+
 pre-configure:
        ${MV} ${WRKSRC}/extras/htpasswd.1 ${WRKSRC}/extras/thtpasswd.1
        ${MV} ${WRKSRC}/extras/htpasswd.c ${WRKSRC}/extras/thtpasswd.c
@@ -31,14 +35,11 @@
        done
 
 post-build:
-       for FILE in thttpd.conf; do                                     \
-               ${SED} ${FILES_SUBST_SED}                               \
+       @for FILE in thttpd.conf; do                                    \
+               ${SED}  ${FILES_SUBST_SED}                              \
                        ${FILESDIR}/$${FILE} > ${WRKDIR}/$${FILE};      \
        done
 
-pre-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/thttpd
-
 post-install:
        ${INSTALL_DATA} ${WRKDIR}/thttpd.conf ${PREFIX}/share/examples
        ${INSTALL_DATA} ${WRKSRC}/index.html ${PREFIX}/share/thttpd
diff -r 31aa855054a1 -r 9d2acde875f0 www/thttpd/files/thttpd.sh
--- a/www/thttpd/files/thttpd.sh        Sun Feb 22 17:36:52 2004 +0000
+++ b/www/thttpd/files/thttpd.sh        Sun Feb 22 18:34:54 2004 +0000
@@ -1,12 +1,11 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: thttpd.sh,v 1.9 2002/09/20 02:02:02 grant Exp $
+# $NetBSD: thttpd.sh,v 1.10 2004/02/22 18:34:54 jlam Exp $
 #
 # PROVIDE: thttpd
 # REQUIRE: DAEMON
 
-if [ -f /etc/rc.subr ]
-then
+if [ -f /etc/rc.subr ]; then
        . /etc/rc.subr
 fi
 
@@ -16,8 +15,7 @@
 command_args="-C @PKG_SYSCONFDIR@/${name}.conf"
 required_files="@PKG_SYSCONFDIR@/${name}.conf"
 
-if [ -f /etc/rc.subr ]
-then
+if [ -f /etc/rc.subr ]; then
        load_rc_config $name
        run_rc_command "$1"
 else



Home | Main Index | Thread Index | Old Index