aboutsummaryrefslogtreecommitdiffstats
path: root/news/diablo/Makefile
diff options
context:
space:
mode:
authorriggs <riggs@FreeBSD.org>2014-09-07 15:23:56 +0800
committerriggs <riggs@FreeBSD.org>2014-09-07 15:23:56 +0800
commit93c592be2bcaa4a3517adf31ca953d782f3ca6f3 (patch)
tree83466a69d8ac6b63d32fd44e2b6b2412596a5308 /news/diablo/Makefile
parent22d78b69eb75b55f57ae2c649ba67b570d44e7c2 (diff)
downloadfreebsd-ports-gnome-93c592be2bcaa4a3517adf31ca953d782f3ca6f3.tar.gz
freebsd-ports-gnome-93c592be2bcaa4a3517adf31ca953d782f3ca6f3.tar.zst
freebsd-ports-gnome-93c592be2bcaa4a3517adf31ca953d782f3ca6f3.zip
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
Diffstat (limited to 'news/diablo/Makefile')
-rw-r--r--news/diablo/Makefile61
1 files changed, 61 insertions, 0 deletions
diff --git a/news/diablo/Makefile b/news/diablo/Makefile
new file mode 100644
index 000000000000..642a6ab327c3
--- /dev/null
+++ b/news/diablo/Makefile
@@ -0,0 +1,61 @@
+# 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>