1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00
freebsd-ports/news/diablo/Makefile
Thomas Zander d2600dae47 Resurrect news/diablo
- Stagify
- Assign maintainership to  Nikolai Lifanov <lifanov@mail.lifanov.com>
- General cleanup of diablo port
- Add LICENSE
- Bump PORTREVISION

PR:		193239
Submitted by:	lifanov@mail.lifanov.com
2014-09-07 07:23:56 +00:00

62 lines
1.7 KiB
Makefile

# Created by: James FitzGibbon <jfitz@FreeBSD.org>
# $FreeBSD$
PORTNAME= diablo
PORTVERSION= 5.1
PORTREVISION= 1
CATEGORIES= news
MASTER_SITES= http://www.openusenet.org/diablo/download/
DISTNAME= ${PORTNAME}-${PORTVERSION}-REL
MAINTAINER= lifanov@mail.lifanov.com
COMMENT= Comprehensive newsfeeding and newsreading software package
LICENSE= BSD3CLAUSE
BUILD_DEPENDS= xmake:${PORTSDIR}/devel/xmake
PORTDOCS= COPYRIGHT INSTALL README.READER README.SERVER RELEASE_NOTES
OPTIONS_DEFINE= DES DOCS
DES_DESC= DES encryption support
USES= tar:tgz
.include <bsd.port.options.mk>
post-patch:
${CP} ${FILESDIR}/diablo.sh-sample ${WRKDIR}
${REINPLACE_CMD} -E 's|%%PREFIX%%|${STAGEDIR}${PREFIX}|g ;\
s|-g -O.?|${CFLAGS}| ; s|g?cc|${CC}|' \
${WRKSRC}/XMakefile.inc
${REINPLACE_CMD} -E 's|%%PREFIX%%|${PREFIX}|g' \
${WRKDIR}/diablo.sh-sample ${WRKSRC}/XMakefile.inst
# 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} ${STAGEDIR}${PREFIX}/news/dbin
${MKDIR} ${STAGEDIR}${PREFIX}/news/dqueue
${MKDIR} ${STAGEDIR}${PREFIX}/news/spool
${MKDIR} ${STAGEDIR}${PREFIX}/news/spool/news
${MKDIR} ${STAGEDIR}${PREFIX}/news/spool/cache
${MKDIR} ${STAGEDIR}${PREFIX}/news/spool/group
${MKDIR} ${STAGEDIR}${PREFIX}/news/spool/postq
(cd ${WRKSRC} && xmake install)
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/news/dbin/*
${INSTALL_SCRIPT} ${WRKDIR}/diablo.sh-sample ${STAGEDIR}${PREFIX}/etc/rc.d
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>