2009-03-15 16:00:50 +01:00
|
|
|
# $NetBSD: Makefile,v 1.96 2009/03/15 15:00:50 spz Exp $
|
1998-09-05 05:21:11 +02:00
|
|
|
|
2009-03-15 16:00:50 +01:00
|
|
|
DISTNAME= inn-2.4.6
|
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.fu-berlin.de/unix/news/inn/
|
1998-09-05 05:21:11 +02:00
|
|
|
|
2008-06-23 11:10:53 +02:00
|
|
|
MAINTAINER= spz@NetBSD.org
|
2009-03-15 16:00:50 +01:00
|
|
|
HOMEPAGE= http://www.isc.org/software/inn/
|
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"
|
2007-09-08 00:12:10 +02:00
|
|
|
|
2007-07-04 22:54:31 +02:00
|
|
|
BUILD_DEFS+= INN_DATA_DIR
|
2008-12-21 12:55:25 +01:00
|
|
|
BUILD_DEFS+= VARBASE
|
|
|
|
|
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
|
|
|
|
2008-06-23 11:10:53 +02:00
|
|
|
BUILD_DEFS+= INN_PATHBIN
|
2008-09-03 08:34:32 +02:00
|
|
|
FILES_SUBST+= INN_PATHBIN=${PREFIX}/${INN_PATHBIN:Q}
|
2008-06-23 11:10:53 +02:00
|
|
|
|
|
|
|
MESSAGE_SUBST+= INN_PATHBIN=${INN_PATHBIN:Q}
|
|
|
|
|
2008-09-03 08:34:32 +02:00
|
|
|
PLIST_SUBST+= INN_PATHBIN=${INN_PATHBIN:Q}
|
|
|
|
|
2008-09-03 22:19:39 +02:00
|
|
|
SUBST_CLASSES+= BADPATHBIN
|
|
|
|
SUBST_STAGE.BADPATHBIN= post-patch
|
2008-12-21 12:55:25 +01:00
|
|
|
SUBST_MESSAGE.BADPATHBIN= fixing up unfortunate pathbin paths
|
2008-09-03 22:19:39 +02:00
|
|
|
SUBST_FILES.BADPATHBIN= Makefile.global.in \
|
|
|
|
samples/inn.conf.in samples/newsfeeds.in \
|
|
|
|
scripts/innshellvars.in scripts/innshellvars.pl.in \
|
|
|
|
scripts/innshellvars.tcl.in backends/news2mail.in \
|
|
|
|
control/controlbatch.in control/controlchan.in
|
2008-12-21 12:55:25 +01:00
|
|
|
SUBST_SED.BADPATHBIN= -e 's,@prefix@/bin,${PREFIX}/${INN_PATHBIN:Q},g'
|
|
|
|
SUBST_SED.BADPATHBIN+= -e 's,$$(PATHNEWS)/bin,${PREFIX}/${INN_PATHBIN:Q},g'
|
2008-09-03 22:19:39 +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}
|
2006-03-02 20:03:20 +01:00
|
|
|
GNU_CONFIGURE_MANDIR= ${PREFIX}/${PKGMANDIR}
|
2004-05-22 20:58:29 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-setgid-inews \
|
2008-06-23 11:10:53 +02:00
|
|
|
--enable-largefiles \
|
2005-12-06 00:55:01 +01:00
|
|
|
--with-openssl=${SSLBASE:Q} \
|
2008-06-23 11:10:53 +02:00
|
|
|
--with-etc-dir=${PREFIX}/etc/inn \
|
|
|
|
--with-doc-dir=${PREFIX}/share/doc/inn \
|
2008-09-03 08:34:32 +02:00
|
|
|
--with-control-dir=${PREFIX}/${INN_PATHBIN}/control \
|
|
|
|
--with-filter-dir=${PREFIX}/${INN_PATHBIN}/filter \
|
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-log-dir=${INN_DATA_DIR}/log \
|
|
|
|
--with-run-dir=${INN_DATA_DIR}/run \
|
2008-06-23 11:10:53 +02:00
|
|
|
--includedir=${PREFIX}/include/inn \
|
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_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
|
|
|
|
2007-07-04 22:54:31 +02:00
|
|
|
PKG_GROUPS_VARS+= INN_GROUP
|
|
|
|
PKG_USERS_VARS+= INN_USER
|
|
|
|
|
2004-05-22 20:58:29 +02:00
|
|
|
PKG_GROUPS= ${INN_GROUP}
|
2006-04-23 02:12:35 +02:00
|
|
|
PKG_USERS= ${INN_USER}:${INN_GROUP}
|
|
|
|
PKG_GECOS.${INN_USER}= Internet\ News
|
|
|
|
PKG_HOME.${INN_USER}= ${INN_DATA_DIR}
|
|
|
|
PKG_SHELL.${INN_USER}= ${SH}
|
2002-07-06 16:33:36 +02:00
|
|
|
|
2008-06-23 11:10:53 +02:00
|
|
|
PKG_SYSCONFDIR.inn= ${PREFIX}/etc/inn
|
2002-09-29 12:39:35 +02:00
|
|
|
EXAMPLEDIR= ${PREFIX}/share/examples/inn
|
2008-09-17 01:06:19 +02:00
|
|
|
INN_DATADIRS= log log/OLD run tmp db spool
|
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
|
|
|
|
|
2008-09-17 01:06:19 +02:00
|
|
|
MAKE_DIRS+= ${PREFIX}/bin
|
|
|
|
MAKE_DIRS+= ${PREFIX}/sbin
|
|
|
|
MAKE_DIRS+= ${PREFIX}/lib
|
2008-06-23 11:10:53 +02:00
|
|
|
|
2008-09-17 01:06:19 +02:00
|
|
|
INN_DIRS+= ${PREFIX}/etc/nntp
|
|
|
|
INN_DIRS+= ${PREFIX}/etc/inn
|
|
|
|
INN_DIRS+= ${INN_DATA_DIR}
|
|
|
|
|
|
|
|
OWN_DIRS+= ${PREFIX}/${INN_PATHBIN}
|
|
|
|
OWN_DIRS+= ${EXAMPLEDIR}
|
|
|
|
|
|
|
|
.for dir in ${INN_DIRS}
|
2008-06-23 11:10:53 +02:00
|
|
|
OWN_DIRS_PERMS+= ${dir} ${INN_USER} ${INN_GROUP} 0775
|
|
|
|
.endfor
|
2006-01-04 11:32:40 +01:00
|
|
|
.for dir in ${INN_DATADIRS}
|
2008-06-23 11:10:53 +02:00
|
|
|
MAKE_DIRS_PERMS+= ${INN_DATA_DIR}/${dir} ${INN_USER} ${INN_GROUP} 0775
|
2002-09-29 12:39:35 +02:00
|
|
|
.endfor
|
2006-01-04 11:32:40 +01:00
|
|
|
.for dir in ${INN_SPOOLDIRS}
|
2008-09-17 01:06:19 +02:00
|
|
|
MAKE_DIRS_PERMS+= ${INN_DATA_DIR}/spool/${dir} \
|
2008-06-23 11:10:53 +02:00
|
|
|
${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 \
|
2008-12-21 17:00:04 +01:00
|
|
|
radius.conf readers.conf sasl.conf storage.conf \
|
|
|
|
subscriptions
|
2006-01-04 11:32:40 +01:00
|
|
|
.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
|
|
|
|
|
2008-12-21 17:00:04 +01:00
|
|
|
CONF_FILES_PERMS+= ${EXAMPLEDIR}/active.minimal ${INN_DATA_DIR}/db/active ${INN_USER} ${INN_GROUP} 0664
|
|
|
|
CONF_FILES_PERMS+= ${EXAMPLEDIR}/newsgroups.minimal ${INN_DATA_DIR}/db/newsgroups ${INN_USER} ${INN_GROUP} 0664
|
|
|
|
|
|
|
|
DBFILES= active.times history
|
|
|
|
|
|
|
|
.for file in ${DBFILES}
|
|
|
|
CONF_FILES_PERMS+= ${EXAMPLEDIR}/${file} ${INN_DATA_DIR}/db/${file} \
|
|
|
|
${INN_USER} ${INN_GROUP} 0664
|
|
|
|
.endfor
|
|
|
|
|
2002-09-29 12:39:35 +02:00
|
|
|
RCD_SCRIPTS= innd
|
|
|
|
|
2008-12-21 17:00:04 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= destdir
|
|
|
|
|
2000-07-03 15:44:53 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.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
|
|
|
|
|
2006-01-04 11:32:40 +01:00
|
|
|
.include "options.mk"
|
|
|
|
|
1999-07-19 01:34:12 +02:00
|
|
|
pre-install:
|
2008-12-21 17:00:04 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${EXAMPLEDIR}
|
|
|
|
for FILE in ${CFILES} active.minimal newsgroups.minimal; do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/site/$$FILE \
|
|
|
|
${DESTDIR}${EXAMPLEDIR}; \
|
|
|
|
done
|
|
|
|
for FILE in ${DBFILES} ; do \
|
|
|
|
${TOUCH} ${WRKSRC}/site/$$FILE ; \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/site/$$FILE \
|
|
|
|
${DESTDIR}${EXAMPLEDIR}; \
|
1999-07-19 01:34:12 +02:00
|
|
|
done
|
2008-06-23 11:10:53 +02:00
|
|
|
|
|
|
|
post-install:
|
2008-12-21 17:00:04 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/etc/nntp
|
|
|
|
${INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/sbin
|
2008-06-23 11:10:53 +02:00
|
|
|
for FILE in cnfsstat ctlinnd inndstart makehistory ; do \
|
2009-03-15 16:00:50 +01:00
|
|
|
${LN} -s ${DESTDIR}${PREFIX}/${INN_PATHBIN}/$$FILE \
|
|
|
|
${DESTDIR}${PREFIX}/sbin ; \
|
2008-06-23 11:10:53 +02:00
|
|
|
done
|
2008-12-21 17:00:04 +01:00
|
|
|
${INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
|
2009-03-15 16:00:50 +01:00
|
|
|
${LN} -s ${DESTDIR}${PREFIX}/${INN_PATHBIN}/inews \
|
|
|
|
${DESTDIR}${PREFIX}/bin
|
|
|
|
${LN} -s ${DESTDIR}${PREFIX}/${INN_PATHBIN}/rnews \
|
|
|
|
${DESTDIR}${PREFIX}/bin
|
2008-06-23 11:10:53 +02:00
|
|
|
for FILE in libinn.a libstorage.a libinnhist.a ; do \
|
2008-12-21 17:00:04 +01:00
|
|
|
${CHMOD} 644 ${DESTDIR}${PREFIX}/lib/$$FILE ; \
|
2008-06-23 11:10:53 +02:00
|
|
|
done
|
1998-09-05 05:21:11 +02:00
|
|
|
|
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"
|