summaryrefslogtreecommitdiff
path: root/news
diff options
context:
space:
mode:
authorcjep <cjep@pkgsrc.org>2004-01-11 16:45:51 +0000
committercjep <cjep@pkgsrc.org>2004-01-11 16:45:51 +0000
commita4d73afbe4cebd30680514ca1ab876fa04b02f32 (patch)
treec8f3d681594537000d69f95acda4a1ec88e7906e /news
parentcad2ec1d56d116c0f0065d90f0be5fa3aca9e5b5 (diff)
downloadpkgsrc-a4d73afbe4cebd30680514ca1ab876fa04b02f32.tar.gz
Update of news/leafnode to 1.9.49.
Pkgsrc changes since previous version: * Add the news user if necessary (and be compatible with the INN package). * Use bsd.pkg.install.mk. Vendor changes since previous version: (see the Changelog for more details) * Security fix. Do not lock up when the news header ends prematurely. * Revise some memory handling and catch out-of-memory conditions. * Fixes to syslog handling. * Support XOVER without argument. * Fix SEGV in fetchnews.c.
Diffstat (limited to 'news')
-rw-r--r--news/leafnode/DEINSTALL22
-rw-r--r--news/leafnode/INSTALL69
-rw-r--r--news/leafnode/Makefile41
-rw-r--r--news/leafnode/PLIST8
-rw-r--r--news/leafnode/distinfo8
-rw-r--r--news/leafnode/patches/patch-aa14
6 files changed, 92 insertions, 70 deletions
diff --git a/news/leafnode/DEINSTALL b/news/leafnode/DEINSTALL
index a8659d524b0..d2ab0860285 100644
--- a/news/leafnode/DEINSTALL
+++ b/news/leafnode/DEINSTALL
@@ -1,14 +1,22 @@
-#!/bin/sh
-#
-# $NetBSD: DEINSTALL,v 1.2 2003/05/06 17:42:21 jmmv Exp $
+# $NetBSD: DEINSTALL,v 1.3 2004/01/11 16:45:51 cjep Exp $
-case "$2" in
- DEINSTALL) cat <<EOF
+LEAFNODE_CONFDIR=@LEAFNODE_CONFDIR@
+LEAFNODE_SPOOL=@LEAFNODE_SPOOL@
+LEAFNODE_LOCKDIR=@LEAFNODE_LOCKDIR@
+LEAFNODE_HOME=@LEAFNODE_HOME@
+
+case "${STAGE}" in
+ POST-DEINSTALL) cat <<EOF
==========================================================================
Note that the leafnode spool, lock and configuration directories
-(@@LEAFNODE_SPOOL@@, @@LEAFNODE_LOCKDIR@@ and @@LEAFNODE_CONFDIR@@)
+
+ ${LEAFNODE_SPOOL}
+ ${LEAFNODE_LOCKDIR}
+ ${LEAFNODE_HOME}
+ and ${LEAFNODE_CONFDIR}
+
are NOT deleted during the package deinstallation. Please remove these
directories and all their contents manually if they are no longer needed.
Also, don't forgot to remove any cron jobs associated with leafnode.
@@ -18,5 +26,3 @@ Also, don't forgot to remove any cron jobs associated with leafnode.
EOF
;;
esac
-
-exit 0
diff --git a/news/leafnode/INSTALL b/news/leafnode/INSTALL
index 53beee775ea..983fd781fd0 100644
--- a/news/leafnode/INSTALL
+++ b/news/leafnode/INSTALL
@@ -1,44 +1,47 @@
-#!/bin/sh
-#
-# $NetBSD: INSTALL,v 1.2 2003/05/06 17:42:22 jmmv Exp $
+# $NetBSD: INSTALL,v 1.3 2004/01/11 16:45:51 cjep Exp $
-if [ "$2" != "POST-INSTALL" ]; then
- exit 0
-fi
+LEAFNODE_CONFDIR=@LEAFNODE_CONFDIR@
+LEAFNODE_SPOOL=@LEAFNODE_SPOOL@
+LEAFNODE_LOCKDIR=@LEAFNODE_LOCKDIR@
+LEAFNODE_HOME=@LEAFNODE_HOME@
-mkdir -p @@LEAFNODE_CONFDIR@@
-if [ ! -f @@LEAFNODE_CONFDIR@@/config ]; then
- cp @@PREFIX@@/share/examples/leafnode/config.example \
- @@LEAFNODE_CONFDIR@@/config
- chmod u+w @@LEAFNODE_CONFDIR@@/config
-fi
+if [ "${STAGE}" = "POST-INSTALL" ]; then
-echo "Creating leafnode spool directories..."
+ mkdir -p ${LEAFNODE_CONFDIR}
+ if [ ! -f ${LEAFNODE_CONFDIR}/config ]; then
+ cp ${PREFIX}/share/examples/leafnode/config.example \
+ ${LEAFNODE_CONFDIR}/config
+ chmod u+w ${LEAFNODE_CONFDIR}/config
+ fi
-SPOOL_DIRS="leaf.node failed.postings interesting.groups out.going message.id"
+ echo "Creating leafnode spool directories..."
-mkdir -p @@LEAFNODE_SPOOL@@
-chown news:news @@LEAFNODE_SPOOL@@
-chmod 2775 @@LEAFNODE_SPOOL@@
+ SPOOL_DIRS="leaf.node failed.postings interesting.groups out.going message.id"
-for D in $SPOOL_DIRS; do
- mkdir -p @@LEAFNODE_SPOOL@@/$D;
- chown news:news @@LEAFNODE_SPOOL@@/$D
- chmod 2775 @@LEAFNODE_SPOOL@@/$D
-done
+ mkdir -p ${LEAFNODE_SPOOL}
+ chown news:news ${LEAFNODE_SPOOL}
+ chmod 2775 ${LEAFNODE_SPOOL}
-mkdir -p @@LEAFNODE_LOCKDIR@@
-chown news:news @@LEAFNODE_LOCKDIR@@
-chmod 2775 @@LEAFNODE_LOCKDIR@@
+ for D in $SPOOL_DIRS; do
+ mkdir -p ${LEAFNODE_SPOOL}/$D;
+ chown news:news ${LEAFNODE_SPOOL}/$D
+ chmod 2775 ${LEAFNODE_SPOOL}/$D
+ done
-# Make directories (a la quickmkdir)
-for a in 0 1 2 3 4 5 6 7 8 9; do
- for b in 0 1 2 3 4 5 6 7 8 9; do
- for c in 0 1 2 3 4 5 6 7 8 9; do
- mkdir -m 2775 -p @@LEAFNODE_SPOOL@@/message.id/$a$b$c
- chown news:news @@LEAFNODE_SPOOL@@/message.id/$a$b$c
+ mkdir -p ${LEAFNODE_LOCKDIR}
+ chown news:news ${LEAFNODE_LOCKDIR}
+ chmod 2775 ${LEAFNODE_LOCKDIR}
+
+ # Make directories (a la quickmkdir)
+ for a in 0 1 2 3 4 5 6 7 8 9; do
+ for b in 0 1 2 3 4 5 6 7 8 9; do
+ for c in 0 1 2 3 4 5 6 7 8 9; do
+ mkdir -m 2775 -p ${LEAFNODE_SPOOL}/message.id/$a$b$c
+ chown news:news ${LEAFNODE_SPOOL}/message.id/$a$b$c
+ done
done
done
-done
-exit 0
+ mkdir -p ${LEAFNODE_HOME}
+ chown news:news ${LEAFNODE_HOME}
+fi
diff --git a/news/leafnode/Makefile b/news/leafnode/Makefile
index d50a31b90eb..59b254428a7 100644
--- a/news/leafnode/Makefile
+++ b/news/leafnode/Makefile
@@ -1,11 +1,10 @@
-# $NetBSD: Makefile,v 1.11 2003/09/05 16:16:23 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2004/01/11 16:45:51 cjep Exp $
-DISTNAME= leafnode-1.9.43.rel
+DISTNAME= leafnode-1.9.49.rel
PKGNAME= ${DISTNAME:S/.rel//}
WRKSRC= ${WRKDIR}/${DISTNAME}
CATEGORIES= news
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=leafnode/}
-
EXTRACT_SUFX= .tar.bz2
MAINTAINER= cjep@NetBSD.org
@@ -13,11 +12,26 @@ HOMEPAGE= http://www.leafnode.org/
COMMENT= NNTP server for small (dialup) sites
USE_BUILDLINK2= yes
+INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
+DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
LEAFNODE_SPOOL?= /var/spool/leafnode
LEAFNODE_LOCKDIR?= /var/spool/lock/leafnode
LEAFNODE_CONFDIR?= ${PKG_SYSCONFDIR}/leafnode
+# Use news login and be compatible with inn package
+#
+BUILD_DEFS+= INN_DATA_DIR
+PKG_USERS= news:news::Internet\\ News:${INN_DATA_DIR}:${SH}
+PKG_GROUPS= news
+LEAFNODE_HOME?= ${INN_DATA_DIR}
+
+FILES_SUBST+= LEAFNODE_SPOOL=${LEAFNODE_SPOOL}
+FILES_SUBST+= LEAFNODE_CONFDIR=${LEAFNODE_CONFDIR}
+FILES_SUBST+= LEAFNODE_LOCKDIR=${LEAFNODE_LOCKDIR}
+FILES_SUBST+= LEAFNODE_HOME=${LEAFNODE_HOME}
+MESSAGE_SUBST+= LEAFNODE_CONFDIR=${LEAFNODE_CONFDIR}
+
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-spooldir=${LEAFNODE_SPOOL}
CONFIGURE_ARGS+= --with-lockfile=${LEAFNODE_LOCKDIR}/fetchnews.lck
@@ -32,24 +46,17 @@ CONFIGURE_ARGS+= --with-ipv6
CONFIGURE_ARGS+= --without-ipv6
.endif
-DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
-INSTALL_FILE= ${WRKDIR}/INSTALL
-
-MESSAGE_SUBST+= LEAFNODE_CONFDIR=${LEAFNODE_CONFDIR}
-
-post-build:
- for F in DEINSTALL INSTALL; do \
- ${SED} -e 's#@@LEAFNODE_SPOOL@@#${LEAFNODE_SPOOL}#g' \
- -e 's#@@LEAFNODE_LOCKDIR@@#${LEAFNODE_LOCKDIR}#g' \
- -e 's#@@LEAFNODE_CONFDIR@@#${LEAFNODE_CONFDIR}#g' \
- -e 's#@@PREFIX@@#${PREFIX}#g' \
- ${PKGDIR}/$${F} > ${WRKDIR}/$${F}; done
-
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/leafnode
${INSTALL_DATA} ${WRKSRC}/config.example \
${PREFIX}/share/examples/leafnode
- PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/leafnode
+
+ ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/README-FQDN \
+ ${WRKSRC}/README-MAINTAINER \
+ ${WRKSRC}/README-daemontools \
+ ${WRKSRC}/README.FIRST ${PREFIX}/share/doc/leafnode
.include "../../devel/pcre/buildlink2.mk"
+.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/news/leafnode/PLIST b/news/leafnode/PLIST
index b0273f29e90..27ac1ba21ae 100644
--- a/news/leafnode/PLIST
+++ b/news/leafnode/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2002/12/08 12:44:13 cjep Exp $
+@comment $NetBSD: PLIST,v 1.4 2004/01/11 16:45:51 cjep Exp $
bin/leafnode-version
bin/newsq
man/man1/leafnode-version.1
@@ -13,5 +13,11 @@ sbin/checkgroups
sbin/fetchnews
sbin/leafnode
sbin/texpire
+share/doc/leafnode/README
+share/doc/leafnode/README-FQDN
+share/doc/leafnode/README-MAINTAINER
+share/doc/leafnode/README-daemontools
+share/doc/leafnode/README.FIRST
share/examples/leafnode/config.example
@dirrm share/examples/leafnode
+@dirrm share/doc/leafnode
diff --git a/news/leafnode/distinfo b/news/leafnode/distinfo
index fa7c2d82a1c..b4a7fa3ca9b 100644
--- a/news/leafnode/distinfo
+++ b/news/leafnode/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.9 2003/09/05 16:16:23 wiz Exp $
+$NetBSD: distinfo,v 1.10 2004/01/11 16:45:51 cjep Exp $
-SHA1 (leafnode-1.9.43.rel.tar.bz2) = 40e19de39e2081bde4d4a161b733bdd1a9d936c7
-Size (leafnode-1.9.43.rel.tar.bz2) = 628364 bytes
-SHA1 (patch-aa) = d1aa900eb9040f8810afd7dbe4f26551c7dad99e
+SHA1 (leafnode-1.9.49.rel.tar.bz2) = fbf69b03e6e535ce780ccf542fc75cc0a5913901
+Size (leafnode-1.9.49.rel.tar.bz2) = 666698 bytes
+SHA1 (patch-aa) = 830794c3739401b359d369730a754e54ea1a8e14
diff --git a/news/leafnode/patches/patch-aa b/news/leafnode/patches/patch-aa
index 0ba738f7af1..baab2ae156e 100644
--- a/news/leafnode/patches/patch-aa
+++ b/news/leafnode/patches/patch-aa
@@ -1,13 +1,13 @@
-$NetBSD: patch-aa,v 1.2 2002/09/22 10:35:48 cjep Exp $
+$NetBSD: patch-aa,v 1.3 2004/01/11 16:45:51 cjep Exp $
---- Makefile.in.orig Fri Sep 20 11:49:58 2002
+--- Makefile.in.orig 2004-01-07 01:49:26.000000000 +0000
+++ Makefile.in
-@@ -623,14 +623,14 @@
+@@ -815,14 +815,14 @@ uninstall-man8:
+ rm -f $(DESTDIR)$(man8dir)/$$inst; \
done
- sysconfDATA_INSTALL = $(INSTALL_DATA)
install-sysconfDATA: $(sysconf_DATA)
- @$(NORMAL_INSTALL)
-- $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
+- $(mkdir_p) $(DESTDIR)$(sysconfdir)
- @list='$(sysconf_DATA)'; for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- f="`echo $$p | sed -e 's|^.*/||'`"; \
@@ -15,7 +15,7 @@ $NetBSD: patch-aa,v 1.2 2002/09/22 10:35:48 cjep Exp $
- $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f; \
- done
+# @$(NORMAL_INSTALL)
-+# $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
++# $(mkdir_p) $(DESTDIR)$(sysconfdir)
+# @list='$(sysconf_DATA)'; for p in $$list; do \
+# if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+# f="`echo $$p | sed -e 's|^.*/||'`"; \
@@ -25,7 +25,7 @@ $NetBSD: patch-aa,v 1.2 2002/09/22 10:35:48 cjep Exp $
uninstall-sysconfDATA:
@$(NORMAL_UNINSTALL)
-@@ -1059,18 +1059,18 @@
+@@ -1343,18 +1343,18 @@ rpm:
rpm -ba leafnode.spec
install-data-hook: quickmkdir amiroot