Annotation of pkgsrc/news/inn/Makefile, Revision 1.11
1.11 ! tron 1: # $NetBSD: Makefile,v 1.10 1999/08/18 08:38:51 agc Exp $
1.1 garbled 2:
1.4 tron 3: DISTNAME= inn-2.2
1.1 garbled 4: CATEGORIES= news
1.4 tron 5: MASTER_SITES= ftp://ftp.isc.org/isc/inn/ \
6: ftp://ftp.sunet.se/pub/news/nntp/inn/ \
7: ftp://ftp.fu-berlin.de/unix/news/inn/
1.1 garbled 8:
1.4 tron 9: MAINTAINER= tron@netbsd.org
1.1 garbled 10: HOMEPAGE= http://www.isc.org/inn.html
11:
1.11 ! tron 12: BUILD_DEPENDS+= ${LOCALBASE}/bin/bison:../../devel/bison
1.1 garbled 13:
14: CONFLICTS+= nntpclnt-*
15:
1.4 tron 16: INN_DATA_DIR?= /var/news
1.1 garbled 17:
18: USE_PERL5= yes
19: USE_LIBTOOL= yes
1.9 tron 20: HAS_CONFIGURE= yes
21: CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM} --prefix=${PREFIX}/inn \
22: --mandir=${PREFIX}/man \
23: --with-perl --with-tmp-path=/tmp \
1.4 tron 24: --with-sendmail=/usr/sbin/sendmail \
25: --with-db-dir=${INN_DATA_DIR}/db \
26: --with-etc-dir=${INN_DATA_DIR}/etc \
27: --with-log-dir=${INN_DATA_DIR}/log \
28: --with-run-dir=${INN_DATA_DIR}/run \
29: --with-spool-dir=${INN_DATA_DIR}/spool
1.3 bad 30: CONFIGURE_ENV+= _PATH_PERL=${LOCALBASE}/bin/perl
1.1 garbled 31:
1.4 tron 32: DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
33: INSTALL_FILE= ${WRKDIR}/INSTALL
1.10 agc 34:
35: BUILD_DEFS+= INN_DATA_DIR
1.4 tron 36:
37: post-build:
1.5 tron 38: ${SED} -e 's#@@INN_DATA_DIR@@#${INN_DATA_DIR}#g' \
39: -e 's#@@PREFIX@@#${PREFIX}#g' \
40: ${FILESDIR}/innd.sh >${WRKDIR}/innd.sh
1.4 tron 41: .for FILE in DEINSTALL INSTALL
42: ${SED} -e 's#@@INN_DATA_DIR@@#${INN_DATA_DIR}#g' \
43: -e 's#@@PREFIX@@#${PREFIX}#g' \
44: ${PKGDIR}/${FILE} >${WRKDIR}/${FILE}
45: .endfor
1.2 agc 46:
1.4 tron 47: pre-install:
1.9 tron 48: ${MKDIR} ${INN_DATA_DIR} ${PREFIX}/etc/nntp ${PREFIX}/inn
1.1 garbled 49:
50: post-install:
1.9 tron 51: ${LN} -s ../inn/bin/inews ${PREFIX}/bin/inews
1.1 garbled 52: ${MKDIR} ${PREFIX}/share/examples/inn
1.4 tron 53: for FILE in `ls -1 ${WRKSRC}/samples/* | \
54: ${EGREP} -v '\.(in|orig)$'`; do \
55: ${INSTALL_DATA} $$FILE ${PREFIX}/share/examples/inn; \
56: done
1.6 tron 57: cd ${WRKSRC}/site && \
1.5 tron 58: ${INSTALL_SCRIPT} ${WRKDIR}/innd.sh ${PREFIX}/etc/rc.d
1.6 tron 59: @${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
1.1 garbled 60:
61: .include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>