2a58169b19
I am not touching the husky ports with a 10 foot pole. atp: stage, improve pkg-message crashmail: stage diablo: too wacky to stage, but convert WITH_* to OPTIONS, unmute commands that shouldn't be muted, use :MDOCS fidogate-ds: stage, OPTIONS, treat examples as EXAMPLES, not DOCS, handle /var/* in the plist properly golded+: stage, OPTIONS, protect examples behind %%PORTEXAMPLES%% nntpbtr: this was an unbelievably PITA stage, add missing prototypes, add missing return types, rename patch files to what they actually patch nntpcache: stage support, required lots of Makefile.in patching, call submakes correctly, handle config files properly nzbperl: stage, use OPTIONS, remove obsolete pkg-message papercut: stage, handle config file properly py-pynzb: stage, use OPTIONS helper to avoid bsd.port.options.mk inclusion s-news: stage slrnconf: stage slrnface: stage, install required files to datadir, not examplesdir, generate proper pkg-message sn: stage
64 lines
1.7 KiB
Makefile
64 lines
1.7 KiB
Makefile
# Created by: 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
|
|
|
|
NO_STAGE= yes
|
|
|
|
OPTIONS_DEFINE= DES DOCS
|
|
DES_DESC= DES encryption support
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
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 empty(PORT_OPTIONS:MDES)
|
|
${REINPLACE_CMD} -e 's| -ldes||g' ${WRKSRC}/XMakefile.inc
|
|
.endif
|
|
|
|
do-build:
|
|
(cd ${WRKSRC} && xmake all)
|
|
|
|
do-install:
|
|
${MKDIR} ${PREFIX}/news/dbin
|
|
(cd ${WRKSRC} && xmake install)
|
|
${INSTALL_SCRIPT} ${WRKDIR}/diablo.sh-sample ${PREFIX}/etc/rc.d
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${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>
|