summaryrefslogtreecommitdiff
path: root/news/inn/Makefile
diff options
context:
space:
mode:
authortron <tron>1999-07-18 23:34:12 +0000
committertron <tron>1999-07-18 23:34:12 +0000
commitda4a36379456223856e175cb09f1e0e94dbcdf76 (patch)
treed710447d1309b00197971b16ffff5180ac72f6b3 /news/inn/Makefile
parent3020f02f689dea33d52cd09e9a3969699a3ba162 (diff)
downloadpkgsrc-da4a36379456223856e175cb09f1e0e94dbcdf76.tar.gz
Update INN package to version 2.2. This update is based on the patches
supplied by Chris Jones in PR pkg/7597.
Diffstat (limited to 'news/inn/Makefile')
-rw-r--r--news/inn/Makefile46
1 files changed, 32 insertions, 14 deletions
diff --git a/news/inn/Makefile b/news/inn/Makefile
index aac09e484a8..ea025877925 100644
--- a/news/inn/Makefile
+++ b/news/inn/Makefile
@@ -1,34 +1,52 @@
-# $NetBSD: Makefile,v 1.3 1998/10/17 18:09:32 bad Exp $
+# $NetBSD: Makefile,v 1.4 1999/07/18 23:34:12 tron Exp $
-DISTNAME= inn-2.1
+DISTNAME= inn-2.2
CATEGORIES= news
-MASTER_SITES= ftp://wuarchive.wustl.edu/packages/news/transport/inn/
+MASTER_SITES= ftp://ftp.isc.org/isc/inn/ \
+ ftp://ftp.sunet.se/pub/news/nntp/inn/ \
+ ftp://ftp.fu-berlin.de/unix/news/inn/
-MAINTAINER= root@garbled.net
+MAINTAINER= tron@netbsd.org
HOMEPAGE= http://www.isc.org/inn.html
BUILD_DEPENDS+= bison:../../devel/bison
CONFLICTS+= nntpclnt-*
-INN_SPOOL?= /var/spool/news
+INN_DATA_DIR?= /var/news
USE_PERL5= yes
USE_LIBTOOL= yes
-CONFIGURE_ARGS+= --with-perl --with-spool-dir=${INN_SPOOL}
-CONFIGURE_ARGS+= --with-tmp-path=/tmp --with-sendmail=/usr/sbin/sendmail
-CONFIGURE_ENV+= _PATH_PERL=${LOCALBASE}/bin/perl
GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --with-perl --with-tmp-path=/tmp \
+ --with-sendmail=/usr/sbin/sendmail \
+ --with-db-dir=${INN_DATA_DIR}/db \
+ --with-etc-dir=${INN_DATA_DIR}/etc \
+ --with-log-dir=${INN_DATA_DIR}/log \
+ --with-run-dir=${INN_DATA_DIR}/run \
+ --with-spool-dir=${INN_DATA_DIR}/spool
+CONFIGURE_ENV+= _PATH_PERL=${LOCALBASE}/bin/perl
+
+DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
+INSTALL_FILE= ${WRKDIR}/INSTALL
+#INSTALL_TARGET= update
-INSTALL_FILE= ${WRKDIR}/.INSTALL
+post-build:
+.for FILE in DEINSTALL INSTALL
+ ${SED} -e 's#@@INN_DATA_DIR@@#${INN_DATA_DIR}#g' \
+ -e 's#@@PREFIX@@#${PREFIX}#g' \
+ ${PKGDIR}/${FILE} >${WRKDIR}/${FILE}
+.endfor
-post-patch:
- ${SED} -e 's@XXXINN_SPOOLXXX@${INN_SPOOL}@g' \
- -e 's@XXXPREFIXXXX@${PREFIX}@g' \
- ${PKGDIR}/install > ${INSTALL_FILE}
+pre-install:
+ ${MKDIR} ${INN_DATA_DIR}
post-install:
${MKDIR} ${PREFIX}/share/examples/inn
- ${CP} -R ${WRKSRC}/samples/* ${PREFIX}/share/examples/inn
+ for FILE in `ls -1 ${WRKSRC}/samples/* | \
+ ${EGREP} -v '\.(in|orig)$'`; do \
+ ${INSTALL_DATA} $$FILE ${PREFIX}/share/examples/inn; \
+ done
+# @${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
.include "../../mk/bsd.pkg.mk"