2007-07-03 19:59:12 +00:00
|
|
|
# New ports collection makefile for: Diablo
|
|
|
|
# Date created: June 2nd 1997
|
|
|
|
# Whom: James FitzGibbon <jfitz@FreeBSD.org>
|
1997-06-02 19:52:11 +00:00
|
|
|
#
|
1999-08-30 14:33:04 +00:00
|
|
|
# $FreeBSD$
|
1997-06-02 19:52:11 +00:00
|
|
|
#
|
|
|
|
|
2000-04-09 17:33:32 +00:00
|
|
|
PORTNAME= diablo
|
2008-04-16 22:42:34 +00:00
|
|
|
PORTVERSION= 5.1
|
1997-06-02 19:52:11 +00:00
|
|
|
CATEGORIES= news
|
2000-06-26 12:29:49 +00:00
|
|
|
MASTER_SITES= http://www.openusenet.org/diablo/download/
|
|
|
|
DISTNAME= ${PKGNAME}-REL
|
1997-06-02 19:52:11 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2003-09-24 08:37:39 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 13:28:59 +00:00
|
|
|
COMMENT= A comprehensive newsfeeding and newsreading software package
|
1997-06-02 19:52:11 +00:00
|
|
|
|
|
|
|
BUILD_DEPENDS= xmake:${PORTSDIR}/devel/xmake
|
|
|
|
|
2000-06-26 12:29:49 +00:00
|
|
|
MAN5= diablo-kp.5 diablo-files.5
|
2001-03-22 08:40:18 +00:00
|
|
|
MAN8= dicmd.8 didump.8 dexpireover.8 dfeedinfo.8 dgrpctl.8 \
|
2000-06-26 12:29:49 +00:00
|
|
|
dilookup.8 diloadfromspool.8 doutq.8 dreadart.8 \
|
|
|
|
dreaderd.8 dpath.8 drcmd.8 dsyncgroups.8 dreadover.8 \
|
2003-02-22 03:42:05 +00:00
|
|
|
dkp.8 diablo.8 dexpire.8 dspoolout.8 dnewslink.8 \
|
2004-03-22 16:08:07 +00:00
|
|
|
doverctl.8 drequeue.8 dhisexpire.8
|
|
|
|
PORTDOCS= COPYRIGHT INSTALL README.READER README.SERVER RELEASE_NOTES
|
1997-06-02 19:52:11 +00:00
|
|
|
|
2007-07-16 12:28:07 +00:00
|
|
|
post-patch:
|
2004-03-22 16:08:07 +00:00
|
|
|
@${CP} ${SCRIPTDIR}/diablo.sh-sample ${WRKDIR}
|
2007-07-03 19:59:12 +00:00
|
|
|
@${REINPLACE_CMD} -E 's|%%PREFIX%%|${PREFIX}|g ;\
|
|
|
|
s|-g -O.?|${CFLAGS}| ; s|g?cc|${CC}|' \
|
2002-09-19 18:16:00 +00:00
|
|
|
${WRKDIR}/diablo.sh-sample ${WRKSRC}/XMakefile.inc
|
2007-07-03 19:59:12 +00:00
|
|
|
# Fix for GCC 4.2
|
|
|
|
@${REINPLACE_CMD} -e 's|VServerConfig\[\]|*VServerConfig|' \
|
|
|
|
${WRKSRC}/dreaderd/main.c
|
|
|
|
|
|
|
|
.if !defined(WITH_DES)
|
2004-03-22 16:08:07 +00:00
|
|
|
@${REINPLACE_CMD} -e 's| -ldes||g' ${WRKSRC}/XMakefile.inc
|
2001-03-22 08:40:18 +00:00
|
|
|
.endif
|
1997-06-02 19:52:11 +00:00
|
|
|
|
|
|
|
do-build:
|
2004-03-22 16:08:07 +00:00
|
|
|
@cd ${WRKSRC} && xmake all
|
1997-06-02 19:52:11 +00:00
|
|
|
|
|
|
|
pre-install:
|
2007-07-03 19:59:12 +00:00
|
|
|
${INSTALL} -d ${DOCDIR} ${PREFIX}/news ${PREFIX}/news/dbin
|
1997-06-02 19:52:11 +00:00
|
|
|
|
|
|
|
do-install:
|
2004-03-22 16:08:07 +00:00
|
|
|
@cd ${WRKSRC} && xmake install
|
2007-07-03 19:59:12 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/diablo.sh-sample ${PREFIX}/etc/rc.d
|
2004-03-22 16:08:07 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for file in ${PORTDOCS}
|
2007-07-03 19:59:12 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
1997-06-02 19:52:11 +00:00
|
|
|
.endfor
|
2004-03-22 16:08:07 +00:00
|
|
|
.endif
|
1997-06-02 19:52:11 +00:00
|
|
|
|
|
|
|
post-install:
|
2000-06-26 12:29:49 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2001-03-22 08:40:18 +00:00
|
|
|
@${RM} -rf ${PREFIX}/news/man
|
1997-06-02 19:52:11 +00:00
|
|
|
|
2007-07-03 19:59:12 +00:00
|
|
|
.include <bsd.port.mk>
|