ports/52523: maintainer update port: news/leafnode
Matthias Andree
matthias.andree at gmx.de
Wed May 21 10:40:16 UTC 2003
>Number: 52523
>Category: ports
>Synopsis: maintainer update port: news/leafnode
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed May 21 03:40:13 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Matthias Andree
>Release: FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
System: FreeBSD libertas.emma.line.org 4.8-STABLE FreeBSD 4.8-STABLE #30: Mon May 19 17:39:43 CEST 2003 toor at libertas.emma.line.org:/usr/src/sys/compile/LIBERTAS i386
>Description:
This patch cleans up the port a bit, uses variables rather than hard coded path
components, prints information on the spool directory, and will generate
pkg-message according to the actual spool directory to give proper
uninstallation info.
NOTE TO COMMITTER: please make sure pkg-message is removed from the source
directory; there is now a source file, files/pkg-message.in, that is run
through sed.
>How-To-Repeat:
>Fix:
diff -Nur /usr/ports/news/leafnode/Makefile /root/leafnode/Makefile
--- /usr/ports/news/leafnode/Makefile Thu May 8 17:46:05 2003
+++ /root/leafnode/Makefile Wed May 21 12:24:45 2003
@@ -18,7 +18,7 @@
DISTNAME= ${PORTNAME}-${PORTVERSION}.rel
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:sourceforge,sunsite,DEFAULT
-MAINTAINER= matthias.andree at web.de
+MAINTAINER= matthias.andree at gmx.de
COMMENT= NNTP package for offline news caching and reading
LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre
@@ -31,32 +31,42 @@
USE_BZIP2= yes
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --quiet --prefix=${PREFIX} --sysconfdir=${PREFIX}/etc/leafnode \
+CONFIGURE_ARGS= --prefix=${PREFIX} --sysconfdir=${PREFIX}/etc/leafnode \
--with-lockfile=${LEAFNODE_SPOOLDIR}/leaf.node/lock.file \
--with-spooldir=${LEAFNODE_SPOOLDIR} --with-ipv6
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAKE_ARGS=
MAN1= leafnode-version.1 newsq.1
MAN8= applyfilter.8 checkgroups.8 fetchnews.8 leafnode.8 texpire.8
+PKGMESSAGE= ${WRKSRC}/pkg-message
+
+pre-configure:
+ @${ECHO}
+ @${ECHO} "------------------------------------------------------------------------"
+ @${ECHO} "This port will use ${LEAFNODE_SPOOLDIR} as spool directory."
+ @${ECHO} "Use LEAFNODE_SPOOLDIR=d to specify d as spool directory."
+ @${ECHO} "------------------------------------------------------------------------"
+ @${ECHO}
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/quickmkdir ${PREFIX}/sbin/
${INSTALL_SCRIPT} ${WRKSRC}/setup-daemontools.sh ${PREFIX}/sbin/
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
+ ${MKDIR} ${DOCSDIR}
for i in ChangeLog COPYING CREDITS FAQ.txt FAQ.pdf FAQ.html \
INSTALL NEWS README \
README-FQDN README-FQDN.html README-daemontools \
README.FIRST TODO leafnode.cron.daily ; do \
- ${INSTALL_MAN} ${WRKSRC}/$$i \
- ${PREFIX}/share/doc/${PORTNAME} ; done
- ${MKDIR} ${PREFIX}/share/doc/${PORTNAME}/doc_german
+ ${INSTALL_MAN} ${WRKSRC}/$$i ${DOCSDIR} ; \
+ done
+ ${MKDIR} ${DOCSDIR}/doc_german
for i in INSTALL_de LIESMICH-daemontools README \
README_de newsq.1 ${MAN8} ; do \
${INSTALL_MAN} ${WRKSRC}/doc_german/$$i \
- ${PREFIX}/share/doc/${PORTNAME}/doc_german ; done
+ ${DOCSDIR}/doc_german ; done
.endif
- ${CAT} pkg-message
+ @${SED} 's}%%DOCSDIR%%}${DOCSDIR}}g' ${FILESDIR}/pkg-message.in >${PKGMESSAGE}
+ ${CAT} ${PKGMESSAGE}
PKG_PREFIX=${PREFIX} SPOOLDIR=${LEAFNODE_SPOOLDIR} \
${SH} pkg-install ${PORTNAME} POST-INSTALL
diff -Nur /usr/ports/news/leafnode/files/pkg-message.in /root/leafnode/files/pkg-message.in
--- /usr/ports/news/leafnode/files/pkg-message.in Thu Jan 1 01:00:00 1970
+++ /root/leafnode/files/pkg-message.in Wed May 21 12:21:31 2003
@@ -0,0 +1,5 @@
+To finalize the leafnode install, proceed as follows:
+
+1. read %%DOCSDIR%%/INSTALL, starting at item #5.
+2. read %%DOCSDIR%%/NEWS, mind the incompatible changes!
+3. read %%DOCSDIR%%/README, mind the incompatible changes!
diff -Nur /usr/ports/news/leafnode/pkg-message /root/leafnode/pkg-message
--- /usr/ports/news/leafnode/pkg-message Fri Aug 23 17:19:12 2002
+++ /root/leafnode/pkg-message Thu Jan 1 01:00:00 1970
@@ -1,5 +0,0 @@
-To finalize the leafnode install, proceed as follows:
-
-1. read ${PREFIX}/share/doc/leafnode/INSTALL, starting at item #5.
-2. read ${PREFIX}/share/doc/leafnode/NEWS, mind the incompatible changes!
-3. read ${PREFIX}/share/doc/leafnode/README, mind the incompatible changes!
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list