summaryrefslogtreecommitdiffstats
path: root/news/leafnode/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'news/leafnode/Makefile')
-rw-r--r--news/leafnode/Makefile27
1 files changed, 18 insertions, 9 deletions
diff --git a/news/leafnode/Makefile b/news/leafnode/Makefile
index 48632b1..db6addf 100644
--- a/news/leafnode/Makefile
+++ b/news/leafnode/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= leafnode
-PORTVERSION= 1.9.35
+PORTVERSION= 1.9.36
PORTREVISION= 0
CATEGORIES= news ipv6
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S/$/:sourceforge/} \
@@ -24,32 +24,41 @@ COMMENT= NNTP package for offline news caching and reading
LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre
+.if exists(/var/spool/news) && !defined(PACKAGE_BUILDING)
+LEAFNODE_SPOOLDIR?=/var/spool/news
+.endif
+LEAFNODE_SPOOLDIR?=${PREFIX}/var/spool/leafnode
+PLIST_SUB= SPOOLDIR=${LEAFNODE_SPOOLDIR}
+
USE_BZIP2= yes
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --quiet --sysconfdir=${LOCALBASE}/etc/leafnode \
- --with-lockfile=/var/spool/lock/news/leafnode.lck \
- --with-spooldir=/var/spool/news --with-ipv6
+CONFIGURE_ARGS= --quiet --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
post-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/setup-daemontools.sh ${LOCALBASE}/sbin/
+ ${INSTALL_PROGRAM} ${WRKSRC}/quickmkdir ${PREFIX}/sbin/
+ ${INSTALL_SCRIPT} ${WRKSRC}/setup-daemontools.sh ${PREFIX}/sbin/
.if !defined(NOPORTDOCS)
- ${MKDIR} ${LOCALBASE}/share/doc/${PORTNAME}
+ ${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
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 \
- ${LOCALBASE}/share/doc/${PORTNAME} ; done
- ${MKDIR} ${LOCALBASE}/share/doc/${PORTNAME}/doc_german
+ ${PREFIX}/share/doc/${PORTNAME} ; done
+ ${MKDIR} ${PREFIX}/share/doc/${PORTNAME}/doc_german
for i in INSTALL_de LIESMICH-daemontools README \
README_de newsq.1 ${MAN8} ; do \
${INSTALL_MAN} ${WRKSRC}/doc_german/$$i \
- ${LOCALBASE}/share/doc/${PORTNAME}/doc_german ; done
+ ${PREFIX}/share/doc/${PORTNAME}/doc_german ; done
.endif
${CAT} pkg-message
+ PKG_PREFIX=${PREFIX} SPOOLDIR=${LEAFNODE_SPOOLDIR} \
+ ${SH} pkg-install ${PORTNAME} POST-INSTALL
.include <bsd.port.mk>
OpenPOWER on IntegriCloud