2009-10-03 18:20:39 +02:00
|
|
|
# $NetBSD: Makefile,v 1.99 2009/10/03 16:20:39 spz Exp $
|
1998-09-05 05:21:11 +02:00
|
|
|
|
2009-09-22 15:17:00 +02:00
|
|
|
DISTNAME= inn-2.5.0
|
1998-09-05 05:21:11 +02:00
|
|
|
CATEGORIES= news
|
2009-10-03 18:20:39 +02:00
|
|
|
PKGREVISION= 2
|
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)
|
2009-09-22 15:17:00 +02:00
|
|
|
LICENSE= modified-bsd AND gnu-gpl-v2
|
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}
|
|
|
|
|
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 \
|
2009-09-22 15:17:00 +02:00
|
|
|
--bindir=${PREFIX}/${INN_PATHBIN} \
|
|
|
|
--sbindir=${PREFIX}/${INN_PATHBIN} \
|
2009-09-25 13:06:00 +02:00
|
|
|
--sysconfdir=${PREFIX}/etc/inn \
|
2005-12-06 00:55:01 +01:00
|
|
|
--with-openssl=${SSLBASE:Q} \
|
2008-06-23 11:10:53 +02:00
|
|
|
--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 \
|
2009-09-22 15:17:00 +02:00
|
|
|
--with-http-dir=${INN_DATA_DIR}/http \
|
2004-05-22 20:58:29 +02:00
|
|
|
--with-log-dir=${INN_DATA_DIR}/log \
|
|
|
|
--with-run-dir=${INN_DATA_DIR}/run \
|
2009-09-22 15:17:00 +02:00
|
|
|
--includedir=${PREFIX}/include \
|
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
|
|
|
|
2009-09-22 15:17:00 +02:00
|
|
|
DEPENDS+= p5-MIME-tools>0:../../mail/p5-MIME-tools
|
|
|
|
DEPENDS+= p5-GD>0:../../graphics/p5-GD
|
|
|
|
|
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
|
2009-09-22 15:17:00 +02:00
|
|
|
INN_DATADIRS= log log/OLD run tmp db spool http
|
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
|
|
|
|
|
2009-09-22 15:17:00 +02:00
|
|
|
INSTALLATION_DIRS+= etc/nntp
|
|
|
|
INSTALLATION_DIRS+= sbin
|
|
|
|
INSTALLATION_DIRS+= bin
|
|
|
|
INSTALLATION_DIRS+= ${EXAMPLEDIR}
|
|
|
|
|
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 \
|
2009-09-22 15:17:00 +02:00
|
|
|
control.ctl control.ctl.local cycbuff.conf \
|
|
|
|
distrib.pats distributions \
|
2002-09-29 12:39:35 +02:00
|
|
|
expire.ctl incoming.conf inn.conf innfeed.conf \
|
2009-09-22 15:17:00 +02:00
|
|
|
innreport.conf innwatch.ctl \
|
|
|
|
localgroups moderators \
|
2002-09-29 12:39:35 +02:00
|
|
|
motd.news news2mail.cf newsfeeds nnrpd.track \
|
2009-09-22 15:17:00 +02:00
|
|
|
nntpsend.ctl nocem.ctl ovdb.conf passwd.nntp \
|
|
|
|
radius.conf readers.conf send-uucp.cf \
|
|
|
|
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
|
|
|
|
|
2009-09-22 15:17:00 +02:00
|
|
|
HTTPFILES= innreport.css
|
|
|
|
|
|
|
|
CONF_FILES_PERMS+= ${EXAMPLEDIR}/innreport.css ${INN_DATA_DIR}/http/innreport.css ${INN_USER} ${INN_GROUP} 0664
|
|
|
|
|
2008-12-21 17:00:04 +01:00
|
|
|
.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
|
|
|
for FILE in ${CFILES} active.minimal newsgroups.minimal; do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/site/$$FILE \
|
|
|
|
${DESTDIR}${EXAMPLEDIR}; \
|
|
|
|
done
|
2009-09-22 15:17:00 +02:00
|
|
|
for FILE in ${DBFILES} ${HTTPFILES}; do \
|
2008-12-21 17:00:04 +01:00
|
|
|
${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:
|
2009-09-22 15:17:00 +02:00
|
|
|
for FILE in cnfsstat ctlinnd makehistory innbind; 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
|
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"
|