Skip to content

Commit

Permalink
Correctly use config file framework for wwwoffle.conf, also move
Browse files Browse the repository at this point in the history
it under share/examples/wwwoffle like all other packages do.
Bump revision.
  • Loading branch information
joerg committed Apr 11, 2006
1 parent 347caa1 commit 2366cd6
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 12 deletions.
13 changes: 4 additions & 9 deletions www/wwwoffle/Makefile
@@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.64 2006/03/14 01:14:34 jlam Exp $
# $NetBSD: Makefile,v 1.65 2006/04/11 08:10:40 joerg Exp $

DISTNAME= wwwoffle-2.8e
PKGREVISION= 2
PKGREVISION= 3
CATEGORIES= www
MASTER_SITES= http://www.gedanken.freeserve.co.uk/download-wwwoffle/ \
ftp://ftp.ibiblio.org/pub/Linux/apps/www/servers/
Expand All @@ -18,6 +18,8 @@ CONFIGURE_ARGS+= --with-confdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+= --with-spooldir=${VARBASE}/wwwoffle

PKG_SYSCONFSUBDIR= wwwoffle
CONF_FILES+= ${PREFIX}/share/examples/wwwoffle/wwwoffle.conf ${PKG_SYSCONFDIR}/wwwoffle.conf
CONF_FILES_MODE= 0640
PLIST_SUBST+= GZIP_CMD=${GZIP_CMD:Q}

RCD_SCRIPTS= wwwoffled
Expand All @@ -41,13 +43,6 @@ pre-install:
${MKDIR} ${VARBASE}/wwwoffle/prevtime1

post-install:
if [ -f ${PKG_SYSCONFDIR}/wwwoffle.conf.install ]; then \
${CP} -p ${PKG_SYSCONFDIR}/wwwoffle.conf.install \
${PREFIX}/share/examples/wwwoffle.conf; \
elif [ -f ${PKG_SYSCONFDIR}/wwwoffle.conf ]; then \
${CP} -p ${PKG_SYSCONFDIR}/wwwoffle.conf \
${PREFIX}/share/examples/wwwoffle.conf; \
fi
${INSTALL_PROGRAM} ${WRKSRC}/src/convert-cache \
${PREFIX}/sbin/wwwoffle-convert-cache
${INSTALL_PROGRAM} ${WRKSRC}/src/uncompress-cache \
Expand Down
5 changes: 3 additions & 2 deletions www/wwwoffle/PLIST
@@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.12 2005/11/01 12:22:24 abs Exp $
@comment $NetBSD: PLIST,v 1.13 2006/04/11 08:10:41 joerg Exp $
bin/wwwoffle
bin/wwwoffle-hash
bin/wwwoffle-ls
Expand Down Expand Up @@ -60,7 +60,7 @@ share/doc/wwwoffle/pl/LSM
share/doc/wwwoffle/pl/README.1st
share/doc/wwwoffle/pl/README.lang
share/examples/rc.d/wwwoffled
share/examples/wwwoffle.conf
share/examples/wwwoffle/wwwoffle.conf
@unexec ${RMDIR} %D/share/doc/wwwoffle/ru 2>/dev/null || ${TRUE}
@dirrm share/doc/wwwoffle/pl
@unexec ${RMDIR} %D/share/doc/wwwoffle/nl 2>/dev/null || ${TRUE}
Expand All @@ -69,6 +69,7 @@ share/examples/wwwoffle.conf
@dirrm share/doc/wwwoffle/es
@dirrm share/doc/wwwoffle/de
@dirrm share/doc/wwwoffle
@dirrm share/examples/wwwoffle
@exec gzip -d -c %D/libdata/wwwoffle-spool.tar.gz | tar xzCf /
@unexec cd /var/wwwoffle && ${RM} -rf html* search*
@unexec ${RMDIR} /var/wwwoffle/* 2>/dev/null && ${RMDIR} /var/wwwoffle 2>/dev/null || ${TRUE}
Expand Down
3 changes: 2 additions & 1 deletion www/wwwoffle/distinfo
@@ -1,6 +1,7 @@
$NetBSD: distinfo,v 1.22 2005/05/07 11:02:48 abs Exp $
$NetBSD: distinfo,v 1.23 2006/04/11 08:10:41 joerg Exp $

SHA1 (wwwoffle-2.8e.tgz) = 719cc53a2c66c14aa7dfcb6ca0ef9f033b454bd9
RMD160 (wwwoffle-2.8e.tgz) = a9243f0c2aab2c735ce355ee81d3a802e8d797dc
Size (wwwoffle-2.8e.tgz) = 1015694 bytes
SHA1 (patch-aa) = 897de385a47826e16a8a09b1bc1c207a2d350f94
SHA1 (patch-ab) = 7f73e34c6f80ee5febadbe2da3fbda9499226490
21 changes: 21 additions & 0 deletions www/wwwoffle/patches/patch-ab
@@ -0,0 +1,21 @@
$NetBSD: patch-ab,v 1.11 2006/04/11 08:10:41 joerg Exp $

--- conf/Makefile.in.orig 2006-04-10 16:42:27.000000000 +0000
+++ conf/Makefile.in
@@ -23,7 +23,7 @@ SHELL=/bin/sh
prefix=@prefix@

SPOOLDIR=$(DESTDIR)@SPOOLDIR@
-CONFDIR=$(DESTDIR)@CONFDIR@
+CONFDIR=$(DESTDIR)$(prefix)/share/examples/wwwoffle

REAL_SPOOLDIR=@SPOOLDIR@
REAL_CONFDIR=@CONFDIR@
@@ -45,6 +45,7 @@ compile : conf-file
######## INSTALLATION ########

install : compile
+
sed -e 's%SPOOLDIR%$(REAL_SPOOLDIR)%' -e 's%CONFDIR%$(REAL_CONFDIR)%' < wwwoffle.conf > wwwoffle.conf.install
[ -x $(CONFDIR) ] || $(INSTALL) -d -m 750 $(CONFDIR)
@[ ! -f $(DESTDIR)/etc/wwwoffle.conf ] || \

0 comments on commit 2366cd6

Please sign in to comment.