2001-10-20 19:31:44 +02:00
|
|
|
# $NetBSD: Makefile,v 1.31 2001/10/20 17:31:44 veego Exp $
|
1998-09-05 05:21:11 +02:00
|
|
|
|
2001-07-10 18:02:12 +02:00
|
|
|
DISTNAME= inn-2.3.2
|
1998-09-05 05:21:11 +02:00
|
|
|
CATEGORIES= news
|
1999-07-19 01:34:12 +02:00
|
|
|
MASTER_SITES= ftp://ftp.isc.org/isc/inn/ \
|
|
|
|
ftp://ftp.sunet.se/pub/news/nntp/inn/ \
|
|
|
|
ftp://ftp.fu-berlin.de/unix/news/inn/
|
1998-09-05 05:21:11 +02:00
|
|
|
|
2000-02-28 00:04:23 +01:00
|
|
|
MAINTAINER= tron@netbsd.org
|
1998-09-05 05:21:11 +02:00
|
|
|
HOMEPAGE= http://www.isc.org/inn.html
|
2001-02-17 18:52:59 +01:00
|
|
|
COMMENT= the public release of InterNet News (INN)
|
1998-09-05 05:21:11 +02:00
|
|
|
|
2001-09-28 01:17:41 +02:00
|
|
|
CONFLICTS+= nntpclnt-[0-9]*
|
1998-09-05 05:21:11 +02:00
|
|
|
|
2001-02-08 17:23:06 +01:00
|
|
|
PATCH_SITES= ftp://ftp.north.ad.jp/pub/IPv6/INN/
|
2001-07-10 18:02:12 +02:00
|
|
|
PATCHFILES= inn-2.3.2-v6-20010607.diff.gz
|
2001-02-08 17:23:06 +01:00
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
|
1999-07-19 01:34:12 +02:00
|
|
|
INN_DATA_DIR?= /var/news
|
1998-09-05 05:21:11 +02:00
|
|
|
|
2001-02-08 17:23:06 +01:00
|
|
|
USE_PERL5= YES
|
|
|
|
HAS_CONFIGURE= YES
|
1999-07-29 23:15:46 +02:00
|
|
|
CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM} --prefix=${PREFIX}/inn \
|
2001-07-16 15:41:18 +02:00
|
|
|
--enable-setgid-inews \
|
2001-02-08 17:23:06 +01:00
|
|
|
--enable-uucp-rnews \
|
1999-07-29 23:15:46 +02:00
|
|
|
--mandir=${PREFIX}/man \
|
2001-02-08 17:23:06 +01:00
|
|
|
--with-perl --with-tmp-path=${INN_DATA_DIR}/tmp \
|
1999-07-19 01:34:12 +02:00
|
|
|
--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
|
2000-08-27 04:46:03 +02:00
|
|
|
CONFIGURE_ENV+= _PATH_PERL=${PERL5}
|
1999-07-19 01:34:12 +02:00
|
|
|
|
2000-07-03 15:44:53 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2001-02-08 17:23:06 +01:00
|
|
|
# IPv6 support
|
|
|
|
.if defined(USE_INET6) && ${USE_INET6} == YES
|
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
|
|
.endif
|
|
|
|
|
2000-07-03 15:44:53 +02:00
|
|
|
.if ${OPSYS} == "SunOS"
|
|
|
|
CONFIGURE_ARGS+= --with-sendmail=/usr/lib/sendmail
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-sendmail=/usr/sbin/sendmail
|
|
|
|
.endif
|
|
|
|
|
1999-07-19 01:34:12 +02:00
|
|
|
DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
|
|
|
|
INSTALL_FILE= ${WRKDIR}/INSTALL
|
1998-09-05 05:21:11 +02:00
|
|
|
|
1999-08-18 10:38:51 +02:00
|
|
|
BUILD_DEFS+= INN_DATA_DIR
|
|
|
|
|
1999-07-19 01:34:12 +02:00
|
|
|
post-build:
|
1999-07-21 22:38:55 +02:00
|
|
|
${SED} -e 's#@@INN_DATA_DIR@@#${INN_DATA_DIR}#g' \
|
|
|
|
-e 's#@@PREFIX@@#${PREFIX}#g' \
|
|
|
|
${FILESDIR}/innd.sh >${WRKDIR}/innd.sh
|
1999-07-19 01:34:12 +02:00
|
|
|
.for FILE in DEINSTALL INSTALL
|
|
|
|
${SED} -e 's#@@INN_DATA_DIR@@#${INN_DATA_DIR}#g' \
|
|
|
|
${PKGDIR}/${FILE} >${WRKDIR}/${FILE}
|
|
|
|
.endfor
|
2000-08-17 16:00:27 +02:00
|
|
|
for DIR in backends expire frontends innd innfeed lib nnrpd \
|
|
|
|
storage; do \
|
|
|
|
${SED} -e 's#-b .OLD##' -e 's#-G#-g#' -e 's#-O#-o#' \
|
|
|
|
${WRKSRC}/$$DIR/Makefile \
|
|
|
|
> ${WRKSRC}/$$DIR/Makefile.patch; \
|
|
|
|
${MV} ${WRKSRC}/$$DIR/Makefile.patch \
|
|
|
|
${WRKSRC}/$$DIR/Makefile; \
|
|
|
|
done
|
1998-09-17 17:39:53 +02:00
|
|
|
|
1999-07-19 01:34:12 +02:00
|
|
|
pre-install:
|
2001-10-20 19:31:44 +02:00
|
|
|
for DIR in ${INN_DATA_DIR} ${PREFIX}/etc/nntp ${PREFIX}/inn; do \
|
2001-10-19 11:17:11 +02:00
|
|
|
${INSTALL_DATA_DIR} $$DIR; \
|
|
|
|
done
|
1998-09-05 05:21:11 +02:00
|
|
|
|
|
|
|
post-install:
|
2001-02-08 17:23:06 +01:00
|
|
|
${RM} -f ${PREFIX}/bin/inews
|
1999-07-29 23:15:46 +02:00
|
|
|
${LN} -s ../inn/bin/inews ${PREFIX}/bin/inews
|
2001-02-25 05:17:35 +01:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/inn
|
1999-07-19 01:34:12 +02:00
|
|
|
for FILE in `ls -1 ${WRKSRC}/samples/* | \
|
2001-02-08 17:23:06 +01:00
|
|
|
${EGREP} -v '(Makefile|.*\.(in|orig)$$)'`; do \
|
1999-07-19 01:34:12 +02:00
|
|
|
${INSTALL_DATA} $$FILE ${PREFIX}/share/examples/inn; \
|
|
|
|
done
|
1999-07-22 00:29:36 +02:00
|
|
|
cd ${WRKSRC}/site && \
|
2001-01-26 06:21:43 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/innd.sh ${PREFIX}/etc/rc.d/innd
|
2001-03-01 20:07:51 +01:00
|
|
|
PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
|
1998-09-05 05:21:11 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|