aboutsummaryrefslogtreecommitdiff
path: root/news/leafnode+/Makefile
blob: e94bea7fdb031f7d417f21ccd03a02ee4ebc476a (plain) (blame)
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
# New ports collection makefile for:	leafnode+
# Version required:	2.3
# Date created:		19 November 1998
# Whom:			Tom Hukins <tom@eborcom.com>
#
# $Id: Makefile,v 1.2 1998/12/28 23:19:50 mph Exp $
#

DISTNAME=	leafnode+-2.3
CATEGORIES=	news
MASTER_SITES=	ftp://ftp.big.or.jp/pub/usr2/jam/leafnode/ \
		ftp://ftp.win.or.jp/pub/network/news/misc/

MAINTAINER=	tom@eborcom.com

MAN8=		checkgroups.8 fetchnews.8 leafnode.8 texpire.8

.if defined(NOPORTDOCS)
PLIST=	${PKGDIR}/PLIST.nodocs
.endif

post-patch:
.for file in FAQ INSTALL README leafnode.8
	@${MV} ${WRKSRC}/${file} ${WRKSRC}/${file}.bak
	@${SED} < ${WRKSRC}/${file}.bak > ${WRKSRC}/${file} s+!!PREFIX!!+${PREFIX}+g
.endfor

do-install:
.for file in leafnode fetchnews texpire checkgroups leaftool
	@${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/sbin
.endfor
.for file in checkgroups.8 fetchnews.8 leafnode.8 texpire.8
	@${INSTALL_MAN} ${WRKSRC}/${file} ${PREFIX}/man/man8
.endfor
.if !defined{NOPORTDOCS}
	@${ECHO} "===>  Copying documents to ${PREFIX}/share/doc/leafnode+"
	@${MKDIR} ${PREFIX}/share/doc/leafnode+
.for file in Changes FAQ INSTALL README config.example
	@${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/leafnode+
.endfor
.endif

post-install:
	@test -d /var/spool/news -a -d ${PREFIX}/lib/leafnode || \
		${CAT} ${FILESDIR}/INSTALL.mesg

.include <bsd.port.mk>