View | Details | Raw Unified | Return to bug 55108
Collapse All | Expand All

(-)inn/Makefile (-15 / +29 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	inn
8
PORTNAME=	inn
9
PORTVERSION=	2.4.0
9
PORTVERSION=	2.4.0
10
PORTREVISION=	1
10
CATEGORIES=	news ipv6
11
CATEGORIES=	news ipv6
11
MASTER_SITES=	${MASTER_SITE_ISC}
12
MASTER_SITES=	${MASTER_SITE_ISC}
12
MASTER_SITE_SUBDIR=	inn
13
MASTER_SITE_SUBDIR=	inn
Lines 29-46 Link Here
29
INN_NEWSLOG?=/var/log/news
30
INN_NEWSLOG?=/var/log/news
30
31
31
HAS_CONFIGURE=		yes
32
HAS_CONFIGURE=		yes
32
CONFIGURE_ARGS+=	--mandir=${PREFIX}/man
33
CONFIGURE_ARGS+=	--mandir=${PREFIX}/man \
33
CONFIGURE_ARGS+=	--prefix=${PREFIX}/news
34
			--prefix=${PREFIX}/news \
34
CONFIGURE_ARGS+=	--with-spool-dir=${INN_NEWSSPOOL}
35
			--with-spool-dir=${INN_NEWSSPOOL} \
35
CONFIGURE_ARGS+=	--with-log-dir=${INN_NEWSLOG}
36
			--with-log-dir=${INN_NEWSLOG} \
36
CONFIGURE_ARGS+=	--with-perl
37
			--with-perl \
37
CONFIGURE_ARGS+=	--with-tmp-path=${INN_NEWSSPOOL}/tmp
38
			--with-tmp-path=${INN_NEWSSPOOL}/tmp \
39
			--with-openssl \
40
			--enable-ipv6
41
42
.if defined(WITH_PYTHON)
43
USE_PYTHON=		YES
44
CONFIGURE_ARGS+=	--with-python
45
.endif
46
47
.if defined(WITH_TAGGED_HASH)
48
CONFIGURE_ARGS+=	--enable-tagged-hash
49
DBZ_FILES=		dir pag
50
PLIST_SUB=		SUB_WITH_TAGGED_HASH=""
51
PLIST_SUB+=		SUB_WITHOUT_TAGGED_HASH="@comment "
52
.else
38
CONFIGURE_ARGS+=	--enable-largefiles
53
CONFIGURE_ARGS+=	--enable-largefiles
39
CONFIGURE_ARGS+=	--with-openssl
54
DBZ_FILES=		dir hash index
40
CONFIGURE_ARGS+=	--enable-ipv6
55
PLIST_SUB=		SUB_WITH_TAGGED_HASH="@comment "
56
PLIST_SUB+=		SUB_WITHOUT_TAGGED_HASH=""
57
.endif
41
58
42
EXTRA=	CONTRIBUTORS HACKING INSTALL LICENSE MANIFEST NEWS README TODO
59
EXTRA=		CONTRIBUTORS HACKING INSTALL LICENSE MANIFEST NEWS README TODO
43
HEADERS=clibrary.h config.h dbz.h libinn.h storage.h
60
HEADERS=	clibrary.h config.h dbz.h libinn.h storage.h
44
61
45
MAN1=	convdate.1 fastrm.1 getlist.1 grephistory.1 inews.1 innconfval.1 \
62
MAN1=	convdate.1 fastrm.1 getlist.1 grephistory.1 inews.1 innconfval.1 \
46
	innfeed.1 innmail.1 nntpget.1 pgpverify.1 rnews.1 shlock.1 \
63
	innfeed.1 innmail.1 nntpget.1 pgpverify.1 rnews.1 shlock.1 \
Lines 64-72 Link Here
64
	radius.8 rc.news.8 scanlogs.8 send-nntp.8 send-uucp.8 sendinpaths.8 \
81
	radius.8 rc.news.8 scanlogs.8 send-nntp.8 send-uucp.8 sendinpaths.8 \
65
	tally.control.8 tdx-util.8 writelog.8
82
	tally.control.8 tdx-util.8 writelog.8
66
83
67
do-install:
84
post-install:
68
	${MKDIR} ${INN_NEWSSPOOL}
85
	${MKDIR} ${INN_NEWSSPOOL}
69
	(cd ${WRKSRC} && ${GMAKE} install)
70
.if !defined(NOPORTDOCS)
86
.if !defined(NOPORTDOCS)
71
	${MKDIR} ${DOCSDIR}
87
	${MKDIR} ${DOCSDIR}
72
.for FILE in ${EXTRA}
88
.for FILE in ${EXTRA}
Lines 79-86 Link Here
79
.endfor
95
.endfor
80
	@${SED} <${FILESDIR}/innd.sh >${PREFIX}/etc/rc.d/innd.sh \
96
	@${SED} <${FILESDIR}/innd.sh >${PREFIX}/etc/rc.d/innd.sh \
81
	    s+!!PREFIX!!+${PREFIX}+g && ${CHMOD} +x ${PREFIX}/etc/rc.d/innd.sh
97
	    s+!!PREFIX!!+${PREFIX}+g && ${CHMOD} +x ${PREFIX}/etc/rc.d/innd.sh
82
83
post-install:
84
	@${CHOWN} root:news ${PREFIX}/news/bin/auth/passwd/ckpasswd
98
	@${CHOWN} root:news ${PREFIX}/news/bin/auth/passwd/ckpasswd
85
	@${CHMOD} 4755 ${PREFIX}/news/bin/auth/passwd/ckpasswd
99
	@${CHMOD} 4755 ${PREFIX}/news/bin/auth/passwd/ckpasswd
86
	@(if [ ! -f ${PREFIX}/news/db/history ] ; then \
100
	@(if [ ! -f ${PREFIX}/news/db/history ] ; then \
Lines 90-96 Link Here
90
	    ${CHMOD} 644 history ; \
104
	    ${CHMOD} 644 history ; \
91
	    ${CHOWN} news:news history ; \
105
	    ${CHOWN} news:news history ; \
92
	    su -fm news -c "../bin/makedbz -i" ; \
106
	    su -fm news -c "../bin/makedbz -i" ; \
93
	    for s in dir hash index ; do \
107
	    for s in ${DBZ_FILES}  ; do \
94
		${MV} history.n.$${s} history.$${s} ; \
108
		${MV} history.n.$${s} history.$${s} ; \
95
	    done ; \
109
	    done ; \
96
	fi)
110
	fi)
(-)inn/pkg-install (-2 / +2 lines)
Lines 1-12 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
2
3
PKGNAME=$1
3
PKGNAME=$1
4
[ ! -n PKG_PREFIX ] && exit 1
4
5
5
case $2 in
6
case $2 in
6
    PRE-INSTALL)
7
    PRE-INSTALL)
7
	;;
8
	;;
8
    POST-INSTALL)
9
    POST-INSTALL)
9
	NEWSBASE=${PKG_PREFIX:-/usr/local}/news
10
	NEWSBASE=${PKG_PREFIX}/news
10
        install -d -o news -g news -m 755 \
11
        install -d -o news -g news -m 755 \
11
	    ${NEWSBASE}/run \
12
	    ${NEWSBASE}/run \
12
	    ${NEWSBASE}/spool \
13
	    ${NEWSBASE}/spool \
Lines 25-28 Link Here
25
	;;
26
	;;
26
esac
27
esac
27
exit 0
28
exit 0
28
(-)inn/pkg-plist (-11 / +12 lines)
Lines 104-111 Link Here
104
news/db/active.times
104
news/db/active.times
105
news/db/history
105
news/db/history
106
news/db/history.dir
106
news/db/history.dir
107
news/db/history.hash
107
%%SUB_WITHOUT_TAGGED_HASH%%news/db/history.hash
108
news/db/history.index
108
%%SUB_WITHOUT_TAGGED_HASH%%news/db/history.index
109
%%SUB_WITH_TAGGED_HASH%%news/db/history.pag
109
news/db/newsgroups
110
news/db/newsgroups
110
news/doc/CONTRIBUTORS
111
news/doc/CONTRIBUTORS
111
news/doc/GPL
112
news/doc/GPL
Lines 186-200 Link Here
186
news/lib/libinn.a
187
news/lib/libinn.a
187
news/lib/libinnhist.a
188
news/lib/libinnhist.a
188
news/lib/libstorage.a
189
news/lib/libstorage.a
189
%%PORTDOCS%%share/doc/inn/CONTRIBUTORS
190
%%PORTDOCS%%%%DOCSDIR%%/CONTRIBUTORS
190
%%PORTDOCS%%share/doc/inn/HACKING
191
%%PORTDOCS%%%%DOCSDIR%%/HACKING
191
%%PORTDOCS%%share/doc/inn/INSTALL
192
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
192
%%PORTDOCS%%share/doc/inn/LICENSE
193
%%PORTDOCS%%%%DOCSDIR%%/LICENSE
193
%%PORTDOCS%%share/doc/inn/MANIFEST
194
%%PORTDOCS%%%%DOCSDIR%%/MANIFEST
194
%%PORTDOCS%%share/doc/inn/NEWS
195
%%PORTDOCS%%%%DOCSDIR%%/NEWS
195
%%PORTDOCS%%share/doc/inn/README
196
%%PORTDOCS%%%%DOCSDIR%%/README
196
%%PORTDOCS%%share/doc/inn/TODO
197
%%PORTDOCS%%%%DOCSDIR%%/TODO
197
%%PORTDOCS%%@dirrm share/doc/inn
198
%%PORTDOCS%%@dirrm %%DOCSDIR%%
198
@dirrm news/tmp
199
@dirrm news/tmp
199
@dirrm news/spool/overview
200
@dirrm news/spool/overview
200
@dirrm news/spool/outgoing
201
@dirrm news/spool/outgoing

Return to bug 55108