blob: bee1e573c0e0c1151ec572834bdf7c51d2c889b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# $NetBSD: Makefile,v 1.13 2004/01/12 12:20:09 salo Exp $
DISTNAME= leafnode-1.9.49.rel
PKGNAME= ${DISTNAME:S/.rel//}
WRKSRC= ${WRKDIR}/${DISTNAME}
CATEGORIES= news
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=leafnode/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= cjep@NetBSD.org
HOMEPAGE= http://www.leafnode.org/
COMMENT= NNTP server for small (dialup) sites
USE_BUILDLINK2= yes
USE_PKGINSTALL= yes
INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
LEAFNODE_SPOOL?= /var/spool/leafnode
LEAFNODE_LOCKDIR?= /var/spool/lock/leafnode
LEAFNODE_CONFDIR?= ${PKG_SYSCONFDIR}/leafnode
# Use news login and be compatible with inn package
#
BUILD_DEFS+= INN_DATA_DIR
PKG_USERS= news:news::Internet\\ News:${INN_DATA_DIR}:${SH}
PKG_GROUPS= news
LEAFNODE_HOME?= ${INN_DATA_DIR}
FILES_SUBST+= LEAFNODE_SPOOL=${LEAFNODE_SPOOL}
FILES_SUBST+= LEAFNODE_CONFDIR=${LEAFNODE_CONFDIR}
FILES_SUBST+= LEAFNODE_LOCKDIR=${LEAFNODE_LOCKDIR}
FILES_SUBST+= LEAFNODE_HOME=${LEAFNODE_HOME}
MESSAGE_SUBST+= LEAFNODE_CONFDIR=${LEAFNODE_CONFDIR}
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-spooldir=${LEAFNODE_SPOOL}
CONFIGURE_ARGS+= --with-lockfile=${LEAFNODE_LOCKDIR}/fetchnews.lck
CONFIGURE_ARGS+= --sysconfdir=${LEAFNODE_CONFDIR}
USE_GMAKE= yes
.include "../../mk/bsd.prefs.mk"
.if defined(USE_INET6) && ${USE_INET6} == YES
CONFIGURE_ARGS+= --with-ipv6
.else
CONFIGURE_ARGS+= --without-ipv6
.endif
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/leafnode
${INSTALL_DATA} ${WRKSRC}/config.example \
${PREFIX}/share/examples/leafnode
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/leafnode
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/README-FQDN \
${WRKSRC}/README-MAINTAINER \
${WRKSRC}/README-daemontools \
${WRKSRC}/README.FIRST ${PREFIX}/share/doc/leafnode
.include "../../devel/pcre/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
|