blob: 338a64d53c2239d00cddc1b2b371b7f48f26b758 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# New ports collection makefile for: Diablo
# Date created: June 2nd 1997
# Whom: James FitzGibbon <jfitz@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= diablo
PORTVERSION= 5.1
CATEGORIES= news
MASTER_SITES= http://www.openusenet.org/diablo/download/
DISTNAME= ${PKGNAME}-REL
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= A comprehensive newsfeeding and newsreading software package
BUILD_DEPENDS= xmake:${PORTSDIR}/devel/xmake
MAN5= diablo-kp.5 diablo-files.5
MAN8= dicmd.8 didump.8 dexpireover.8 dfeedinfo.8 dgrpctl.8 \
dilookup.8 diloadfromspool.8 doutq.8 dreadart.8 \
dreaderd.8 dpath.8 drcmd.8 dsyncgroups.8 dreadover.8 \
dkp.8 diablo.8 dexpire.8 dspoolout.8 dnewslink.8 \
doverctl.8 drequeue.8 dhisexpire.8
PORTDOCS= COPYRIGHT INSTALL README.READER README.SERVER RELEASE_NOTES
post-patch:
@${CP} ${SCRIPTDIR}/diablo.sh-sample ${WRKDIR}
@${REINPLACE_CMD} -E 's|%%PREFIX%%|${PREFIX}|g ;\
s|-g -O.?|${CFLAGS}| ; s|g?cc|${CC}|' \
${WRKDIR}/diablo.sh-sample ${WRKSRC}/XMakefile.inc
# Fix for GCC 4.2
@${REINPLACE_CMD} -e 's|VServerConfig\[\]|*VServerConfig|' \
${WRKSRC}/dreaderd/main.c
.if !defined(WITH_DES)
@${REINPLACE_CMD} -e 's| -ldes||g' ${WRKSRC}/XMakefile.inc
.endif
do-build:
@cd ${WRKSRC} && xmake all
pre-install:
${INSTALL} -d ${DOCDIR} ${PREFIX}/news ${PREFIX}/news/dbin
do-install:
@cd ${WRKSRC} && xmake install
${INSTALL_SCRIPT} ${WRKDIR}/diablo.sh-sample ${PREFIX}/etc/rc.d
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
post-install:
@${CAT} ${PKGMESSAGE}
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${RM} -rf ${PREFIX}/news/man
.include <bsd.port.mk>
|