2005-12-29 07:21:30 +01:00
|
|
|
# $NetBSD: Makefile,v 1.76 2005/12/29 06:22:05 jlam Exp $
|
1998-09-05 05:21:11 +02:00
|
|
|
|
2004-06-02 13:43:55 +02:00
|
|
|
DISTNAME= inn-2.4.1
|
2005-09-22 17:38:39 +02:00
|
|
|
PKGREVISION= 8
|
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
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= tron@NetBSD.org
|
1998-09-05 05:21:11 +02:00
|
|
|
HOMEPAGE= http://www.isc.org/inn.html
|
2003-07-21 19:10:16 +02:00
|
|
|
COMMENT= The public release of InterNet News (INN)
|
1998-09-05 05:21:11 +02:00
|
|
|
|
2005-11-22 17:14:49 +01:00
|
|
|
CONFLICTS+= libradius-[0-9]* nntpclnt-[0-9]*
|
1998-09-05 05:21:11 +02:00
|
|
|
|
2003-07-29 18:29:09 +02:00
|
|
|
.include "Makefile.common"
|
2004-06-08 14:23:59 +02:00
|
|
|
BUILD_DEFS+= USE_INET6
|
2004-05-22 20:58:29 +02:00
|
|
|
BUILD_DEFS+= INN_DATA_DIR INN_USER INN_GROUP
|
2005-12-05 21:49:47 +01:00
|
|
|
FILES_SUBST+= INN_DATA_DIR=${INN_DATA_DIR:Q}
|
1998-09-05 05:21:11 +02:00
|
|
|
|
2002-06-23 05:54:30 +02:00
|
|
|
GNU_CONFIGURE= YES
|
2003-07-29 18:29:09 +02:00
|
|
|
GNU_CONFIGURE_PREFIX= ${INN_PREFIX}
|
2004-05-22 20:58:29 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-setgid-inews \
|
|
|
|
--enable-uucp-rnews \
|
2004-06-02 13:43:55 +02:00
|
|
|
--with-perl \
|
2005-12-06 00:55:01 +01:00
|
|
|
--with-openssl=${SSLBASE:Q} \
|
2004-06-02 13:43:55 +02:00
|
|
|
--with-tmp-dir=${INN_DATA_DIR}/tmp \
|
2004-05-22 20:58:29 +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 \
|
2005-12-06 00:55:01 +01:00
|
|
|
--with-spool-dir=${INN_SPOOL:Q} \
|
|
|
|
--with-news-user=${INN_USER:Q} \
|
|
|
|
--with-news-group=${INN_GROUP:Q}
|
2005-12-05 21:49:47 +01:00
|
|
|
CONFIGURE_ENV+= _PATH_PERL=${PERL5:Q}
|
|
|
|
CONFIGURE_ENV+= _PATH_AWK=${TOOLS_AWK:Q}
|
|
|
|
CONFIGURE_ENV+= _PATH_EGREP=${TOOLS_EGREP:Q}
|
|
|
|
CONFIGURE_ENV+= _PATH_SED=${TOOLS_SED:Q}
|
|
|
|
CONFIGURE_ENV+= _PATH_SH=${TOOLS_SH:Q}
|
|
|
|
CONFIGURE_ENV+= _PATH_SORT=${TOOLS_SORT:Q}
|
2005-07-18 04:37:22 +02:00
|
|
|
CONFIGURE_ENV+= GZIP=${TOOLS_GZIP_CMD:Q}
|
2005-07-16 21:10:37 +02:00
|
|
|
USE_TOOLS+= awk egrep gzip perl:run sed sh sort yacc
|
1999-07-19 01:34:12 +02:00
|
|
|
|
2005-08-23 13:48:47 +02:00
|
|
|
PKG_USERS= ${INN_USER}:${INN_GROUP}::Internet\ News:${INN_DATA_DIR}:${SH}
|
2004-05-22 20:58:29 +02:00
|
|
|
PKG_GROUPS= ${INN_GROUP}
|
2002-07-06 16:33:36 +02:00
|
|
|
|
2002-09-29 12:39:35 +02:00
|
|
|
PKG_SYSCONFDIR.inn= ${INN_DATA_DIR}/etc
|
|
|
|
EXAMPLEDIR= ${PREFIX}/share/examples/inn
|
|
|
|
INN_DATADIRS= db etc log log/OLD run spool tmp
|
2002-09-29 12:41:36 +02:00
|
|
|
INN_SPOOLDIRS= archive articles overview incoming incoming/bad \
|
2002-09-29 12:39:35 +02:00
|
|
|
outgoing uniover innfeed
|
|
|
|
|
|
|
|
OWN_DIRS= ${PREFIX}/etc/nntp
|
2004-05-22 20:58:29 +02:00
|
|
|
OWN_DIRS_PERMS= ${INN_DATA_DIR} ${INN_USER} ${INN_GROUP} 0775
|
2002-09-29 12:39:35 +02:00
|
|
|
.for DIR in ${INN_DATADIRS}
|
2004-05-22 20:58:29 +02:00
|
|
|
MAKE_DIRS_PERMS+= ${INN_DATA_DIR}/${DIR} ${INN_USER} ${INN_GROUP} 0775
|
2002-09-29 12:39:35 +02:00
|
|
|
.endfor
|
|
|
|
.for DIR in ${INN_SPOOLDIRS}
|
2004-05-22 20:58:29 +02:00
|
|
|
MAKE_DIRS_PERMS+= ${INN_DATA_DIR}/spool/${DIR} ${INN_USER} ${INN_GROUP} 0775
|
2002-09-29 12:39:35 +02:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
CFILES= actsync.cfg actsync.ign buffindexed.conf \
|
|
|
|
control.ctl cycbuff.conf distrib.pats \
|
|
|
|
expire.ctl incoming.conf inn.conf innfeed.conf \
|
|
|
|
innreport.conf innwatch.ctl moderators \
|
|
|
|
motd.news news2mail.cf newsfeeds nnrpd.track \
|
|
|
|
nntpsend.ctl ovdb.conf overview.fmt passwd.nntp \
|
|
|
|
radius.conf readers.conf sasl.conf storage.conf
|
|
|
|
.for FILE in ${CFILES}
|
|
|
|
CONF_FILES_PERMS+= ${EXAMPLEDIR}/${FILE} ${PKG_SYSCONFDIR}/${FILE} \
|
2004-05-22 20:58:29 +02:00
|
|
|
${INN_USER} ${INN_GROUP} 0664
|
2002-09-29 12:39:35 +02:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
RCD_SCRIPTS= innd
|
|
|
|
|
2000-07-03 15:44:53 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2001-02-08 17:23:06 +01:00
|
|
|
.if defined(USE_INET6) && ${USE_INET6} == YES
|
|
|
|
CONFIGURE_ARGS+= --enable-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
|
|
|
|
|
2003-06-11 22:50:50 +02:00
|
|
|
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
|
2004-02-01 02:43:28 +01:00
|
|
|
GCC_REQD+= 2.95.3
|
2002-04-20 20:18:50 +02:00
|
|
|
.endif
|
|
|
|
|
2003-03-23 12:07:15 +01:00
|
|
|
post-patch:
|
|
|
|
${RM} -f ${WRKSRC}/samples/inn.conf.in.orig_dist
|
|
|
|
|
1999-07-19 01:34:12 +02:00
|
|
|
post-build:
|
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:
|
2002-09-29 12:39:35 +02:00
|
|
|
for DIR in ${INN_DATA_DIR} ${PREFIX}/etc/nntp ${PREFIX}/inn; do \
|
|
|
|
${INSTALL_DATA_DIR} $$DIR; \
|
2001-10-19 11:17:11 +02:00
|
|
|
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
|
2003-07-29 18:27:26 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include/inn
|
2004-06-02 13:43:55 +02:00
|
|
|
cd ${PREFIX}/include/inn; \
|
|
|
|
for FILE in config.h dbz.h libinn.h storage.h; do \
|
|
|
|
${LN} -s ${INN_PREFIX}/include/$$FILE $$FILE; \
|
|
|
|
done
|
2002-09-29 12:39:35 +02:00
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLEDIR}
|
|
|
|
for FILE in `ls -1 ${WRKSRC}/samples/* | \
|
|
|
|
${EGREP} -v '(Makefile|.*\.(in|orig)$$)'`; do \
|
|
|
|
${INSTALL_DATA} $$FILE ${EXAMPLEDIR}; \
|
1999-07-19 01:34:12 +02:00
|
|
|
done
|
1998-09-05 05:21:11 +02:00
|
|
|
|
2005-07-24 23:19:54 +02:00
|
|
|
.include "../../lang/perl5/buildlink3.mk"
|
2004-06-02 13:43:55 +02:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
1998-09-05 05:21:11 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|