pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/news/leafnode
Module Name: pkgsrc
Committed By: micha
Date: Fri Jul 15 12:37:55 UTC 2022
Modified Files:
pkgsrc/news/leafnode: Makefile PLIST distinfo
pkgsrc/news/leafnode/patches: patch-Makefile.in
Added Files:
pkgsrc/news/leafnode: options.mk
pkgsrc/news/leafnode/files: INSTALL.pkgsrc
Removed Files:
pkgsrc/news/leafnode: MESSAGE
Log Message:
news/leafnode: Update to 1.12.0
- Moved pkgsrc options into separate file options.mk
- Modified pkgsrc patch to cover whole rule body again
- Removed WRKSRC setting (was explicitly set to default value)
- Replaced MESSAGE by ${PREFIX}/share/doc/leafnode/INSTALL.pkgsrc
==============================================================================
* 1.12.0, 2022-05-26
### CHANGES
- leafnode now requires the PCRE2 library instead of PCRE.
PCRE2 has been around for a few years and is maintained,
while PCRE is end of life, no longer supported,
and is being phased out by distributions.
See its home page, https://github.com/PhilipHazel/pcre2
Fixes Debian Bug#1000110 reported by Matthew Vernon via Moritz Mühlenhoff.
- Documentation for running under daemontools/ucspi-tcp (tcpserver)
has been removed, only UNINSTALL-daemontools remains as documentation.
- leafnode 1 is now distributed in gzip and xz formats.
bzip2 will no longer be used because xz performs better overall.
- All files have been converted from ISO-8859-1 to UTF-8 encoding.
- Added leafnode@.service and leafnode.socket as examples for how to launch
the network-based leafnode listening on port 119.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r0 pkgsrc/news/leafnode/MESSAGE
cvs rdiff -u -r1.53 -r1.54 pkgsrc/news/leafnode/Makefile
cvs rdiff -u -r1.6 -r1.7 pkgsrc/news/leafnode/PLIST
cvs rdiff -u -r1.24 -r1.25 pkgsrc/news/leafnode/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/news/leafnode/options.mk
cvs rdiff -u -r0 -r1.1 pkgsrc/news/leafnode/files/INSTALL.pkgsrc
cvs rdiff -u -r1.2 -r1.3 pkgsrc/news/leafnode/patches/patch-Makefile.in
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/news/leafnode/Makefile
diff -u pkgsrc/news/leafnode/Makefile:1.53 pkgsrc/news/leafnode/Makefile:1.54
--- pkgsrc/news/leafnode/Makefile:1.53 Fri May 7 11:09:35 2021
+++ pkgsrc/news/leafnode/Makefile Fri Jul 15 12:37:55 2022
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.53 2021/05/07 11:09:35 micha Exp $
+# $NetBSD: Makefile,v 1.54 2022/07/15 12:37:55 micha Exp $
-DISTNAME= leafnode-1.11.12
+DISTNAME= leafnode-1.12.0
CATEGORIES= news
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=leafnode/}
-EXTRACT_SUFX= .tar.bz2
MAINTAINER= micha%NetBSD.org@localhost
HOMEPAGE= https://leafnode.sourceforge.io/
@@ -12,17 +11,21 @@ LICENSE= mit AND gnu-gpl-v2 AND gnu-lgp
CONFLICTS+= cyrus-imapd<2.2.10nb2
-WRKSRC= ${WRKDIR}/${DISTNAME}
-
-INSTALLATION_DIRS+= share/examples/leafnode
-INSTALLATION_DIRS+= share/doc/leafnode
+USE_FEATURES= snprintf vsnprintf
LEAFNODE_SPOOL?= /var/spool/leafnode
LEAFNODE_LOCKDIR?= /var/spool/lock/leafnode
LEAFNODE_CONFDIR?= ${PKG_SYSCONFDIR}/leafnode
+# Configure INSTALL.pkgsrc (formerly displayed as MESSAGE)
+SUBST_CLASSES+= install
+SUBST_STAGE.install= post-configure
+SUBST_MESSAGE.install= Preparing INSTALL.pkgsrc file ...
+SUBST_FILES.install= ${WRKDIR}/INSTALL.pkgsrc
+SUBST_VARS.install= PREFIX
+SUBST_VARS.install+= LEAFNODE_CONFDIR
+
# Default data dir, login and group are the same as used by inn
-#
BUILD_DEFS+= LEAFNODE_DATA_DIR INN_DATA_DIR
PKG_GROUPS= ${LEAFNODE_GROUP}
PKG_USERS= ${LEAFNODE_USER}:${LEAFNODE_GROUP}
@@ -41,8 +44,6 @@ FILES_SUBST+= LEAFNODE_LOCKDIR=${LEAFNO
FILES_SUBST+= LEAFNODE_HOME=${LEAFNODE_HOME:Q}
MESSAGE_SUBST+= LEAFNODE_CONFDIR=${LEAFNODE_CONFDIR}
-USE_FEATURES= snprintf vsnprintf
-
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-spooldir=${LEAFNODE_SPOOL:Q}
CONFIGURE_ARGS+= --with-lockfile=${LEAFNODE_LOCKDIR}/fetchnews.lck
@@ -51,27 +52,25 @@ CONFIGURE_ARGS+= --with-user=${LEAFNODE_
CONFIGURE_ARGS+= --with-group=${LEAFNODE_GROUP:Q}
USE_TOOLS+= gmake
-PKG_OPTIONS_VAR= PKG_OPTIONS.leafnode
-PKG_SUPPORTED_OPTIONS= inet6
-PKG_SUGGESTED_OPTIONS= inet6
-
-.include "../../mk/bsd.options.mk"
-
-.if !empty(PKG_OPTIONS:Minet6)
-CONFIGURE_ARGS+= --with-ipv6
-.else
-CONFIGURE_ARGS+= --without-ipv6
-.endif
+.include "options.mk"
TEST_TARGET= check
+INSTALLATION_DIRS+= share/examples/leafnode
+INSTALLATION_DIRS+= share/doc/leafnode
+
+pre-configure:
+ ${CP} ${FILESDIR}/INSTALL.pkgsrc ${WRKDIR}
+
post-install:
${INSTALL_DATA} ${WRKSRC}/config.example \
- ${DESTDIR}${PREFIX}/share/examples/leafnode
+ ${DESTDIR}${PREFIX}/share/examples/leafnode
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/README-FQDN \
- ${WRKSRC}/README-MAINTAINER \
- ${WRKSRC}/README-daemontools \
- ${DESTDIR}${PREFIX}/share/doc/leafnode
+ ${WRKSRC}/README-MAINTAINER \
+ ${WRKSRC}/UNINSTALL-daemontools \
+ ${DESTDIR}${PREFIX}/share/doc/leafnode
+ ${INSTALL_DATA} ${WRKDIR}/INSTALL.pkgsrc \
+ ${DESTDIR}${PREFIX}/share/doc/leafnode/INSTALL.pkgsrc
-.include "../../devel/pcre/buildlink3.mk"
+.include "../../devel/pcre2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/news/leafnode/PLIST
diff -u pkgsrc/news/leafnode/PLIST:1.6 pkgsrc/news/leafnode/PLIST:1.7
--- pkgsrc/news/leafnode/PLIST:1.6 Fri Sep 12 21:58:44 2014
+++ pkgsrc/news/leafnode/PLIST Fri Jul 15 12:37:55 2022
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2014/09/12 21:58:44 shattered Exp $
+@comment $NetBSD: PLIST,v 1.7 2022/07/15 12:37:55 micha Exp $
bin/leafnode-version
bin/newsq
man/man1/leafnode-version.1
@@ -13,8 +13,9 @@ sbin/checkgroups
sbin/fetchnews
sbin/leafnode
sbin/texpire
+share/doc/leafnode/INSTALL.pkgsrc
share/doc/leafnode/README
share/doc/leafnode/README-FQDN
share/doc/leafnode/README-MAINTAINER
-share/doc/leafnode/README-daemontools
+share/doc/leafnode/UNINSTALL-daemontools
share/examples/leafnode/config.example
Index: pkgsrc/news/leafnode/distinfo
diff -u pkgsrc/news/leafnode/distinfo:1.24 pkgsrc/news/leafnode/distinfo:1.25
--- pkgsrc/news/leafnode/distinfo:1.24 Tue Oct 26 11:09:35 2021
+++ pkgsrc/news/leafnode/distinfo Fri Jul 15 12:37:55 2022
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.24 2021/10/26 11:09:35 nia Exp $
+$NetBSD: distinfo,v 1.25 2022/07/15 12:37:55 micha Exp $
-BLAKE2s (leafnode-1.11.12.tar.bz2) = d0e53af7221094aa451c0a6575c91d457986bfc80a457abb97c519c966e202a3
-SHA512 (leafnode-1.11.12.tar.bz2) = 2460bb4fc51a716059ccfcde7fd99f2f0f8c11f7d20db457c06abb04a39f892331b1e70334901c9f20480f348186465be147ee21368fcd48c9e08bb3c8d7fe87
-Size (leafnode-1.11.12.tar.bz2) = 501619 bytes
-SHA1 (patch-Makefile.in) = 28dd40d5af8316a1a234affa71b807e3ad15c8f1
+BLAKE2s (leafnode-1.12.0.tar.gz) = b04cc9e266f6d50901c4e0ead09a599328da5ce6e1925539564437f386cd8082
+SHA512 (leafnode-1.12.0.tar.gz) = 8122f8e2f7061c68c00d964f88a288d162be6e7fa526dea7a969ea8742116354359a85014bc9cbd59e09d51acf94dcd898a3955231f8aa7262c9c56114fed3cd
+Size (leafnode-1.12.0.tar.gz) = 585469 bytes
+SHA1 (patch-Makefile.in) = f40330bc49ba26c1e946f8164bc92256b3b301a8
Index: pkgsrc/news/leafnode/patches/patch-Makefile.in
diff -u pkgsrc/news/leafnode/patches/patch-Makefile.in:1.2 pkgsrc/news/leafnode/patches/patch-Makefile.in:1.3
--- pkgsrc/news/leafnode/patches/patch-Makefile.in:1.2 Fri May 7 11:09:35 2021
+++ pkgsrc/news/leafnode/patches/patch-Makefile.in Fri Jul 15 12:37:55 2022
@@ -1,11 +1,11 @@
-$NetBSD: patch-Makefile.in,v 1.2 2021/05/07 11:09:35 micha Exp $
+$NetBSD: patch-Makefile.in,v 1.3 2022/07/15 12:37:55 micha Exp $
Config data is installed with pkgsrc script.
Spool directory is created with pkgsrc script.
---- Makefile.in.orig 2015-08-24 22:26:08.000000000 +0000
+--- Makefile.in.orig 2022-05-26 22:07:48.000000000 +0000
+++ Makefile.in
-@@ -956,20 +956,20 @@ uninstall-man8:
+@@ -1278,20 +1278,20 @@ uninstall-man8:
-e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
dir='$(DESTDIR)$(man8dir)'; $(am__uninstall_files_from_dir)
install-sysconfDATA: $(sysconf_DATA)
@@ -40,7 +40,7 @@ Spool directory is created with pkgsrc s
uninstall-sysconfDATA:
@$(NORMAL_UNINSTALL)
-@@ -1624,17 +1624,17 @@ rpm: leafnode.spec
+@@ -2138,19 +2138,19 @@ rpm: leafnode.spec
rpmbuild -ba leafnode.spec || rpm -ba leafnode.spec
install-data-hook: amiroot
@@ -55,6 +55,8 @@ Spool directory is created with pkgsrc s
- if ./amiroot ; then \
- chown @NEWS_USER@:@NEWS_GROUP@ "$${d}" ; \
- chmod 2775 "$${d}" ; fi
+- $(srcdir)/install-sh -m 0755 -d $(DESTDIR)$(docdir)
+- $(srcdir)/install-sh -m 0644 $(srcdir)/UNINSTALL-daemontools $(DESTDIR)$(docdir)
+# set -e ; for i in "" /leaf.node /failed.postings /interesting.groups \
+# /out.going /message.id /temp.files ; do \
+# mkdir -p $(DESTDIR)$(SPOOLDIR)$$i ; \
@@ -66,6 +68,8 @@ Spool directory is created with pkgsrc s
+# if ./amiroot ; then \
+# chown @NEWS_USER@:@NEWS_GROUP@ "$${d}" ; \
+# chmod 2775 "$${d}" ; fi
++# $(srcdir)/install-sh -m 0755 -d $(DESTDIR)$(docdir)
++# $(srcdir)/install-sh -m 0644 $(srcdir)/UNINSTALL-daemontools $(DESTDIR)$(docdir)
uninstall-hook:
rm -f $(DESTDIR)@LOCKFILE@
Added files:
Index: pkgsrc/news/leafnode/options.mk
diff -u /dev/null pkgsrc/news/leafnode/options.mk:1.1
--- /dev/null Fri Jul 15 12:37:55 2022
+++ pkgsrc/news/leafnode/options.mk Fri Jul 15 12:37:55 2022
@@ -0,0 +1,13 @@
+# $NetBSD: options.mk,v 1.1 2022/07/15 12:37:55 micha Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.leafnode
+PKG_SUPPORTED_OPTIONS= inet6
+PKG_SUGGESTED_OPTIONS= inet6
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --with-ipv6
+.else
+CONFIGURE_ARGS+= --without-ipv6
+.endif
Index: pkgsrc/news/leafnode/files/INSTALL.pkgsrc
diff -u /dev/null pkgsrc/news/leafnode/files/INSTALL.pkgsrc:1.1
--- /dev/null Fri Jul 15 12:37:55 2022
+++ pkgsrc/news/leafnode/files/INSTALL.pkgsrc Fri Jul 15 12:37:55 2022
@@ -0,0 +1,18 @@
+Edit @LEAFNODE_CONFDIR@/config and make the necessary local
+changes.
+
+Leafnode needs to be run from inetd. An example configuration for
+/etc/inetd.conf is as follows:
+
+nntp stream tcp nowait news @PREFIX@/sbin/leafnode leafnode
+nntp stream tcp6 nowait news @PREFIX@/sbin/leafnode leafnode
+
+Edit the news user's crontab to run an expiry job. For example, add:
+
+0 4 * * * @PREFIX@/sbin/texpire
+
+As root or news, run "fetchnews". This may take some time. Then connect
+to the leafnode server with an NNTP client. Select the groups you want
+to read in the future by reading the "default" article in them.
+Run "fetchnews" again. This run will pick up all the groups you want to
+read. You may wish to automate the running of "fetchnews".
Home |
Main Index |
Thread Index |
Old Index