]> Cypherpunks.ru repositories - nncp.git/blobdiff - ports/nncp/Makefile
Ability to disable relaying with -via - option
[nncp.git] / ports / nncp / Makefile
index 36e9b04104247dc1730a11088c4858ebc4b05c18..971db0b504cfaf24db7d55aba98677ec3d07dac1 100644 (file)
@@ -1,13 +1,12 @@
-# $FreeBSD$
+# $FreeBSD: head/net/nncp/Makefile 460314 2018-01-29 16:17:45Z yuri $
 
 PORTNAME=      nncp
-PORTVERSION=   0.7
+DISTVERSION=   3.1
 CATEGORIES=    net
-MASTER_SITES=  http://www.nncpgo.org/download/ \
-               http://sourceforge.net/projects/nncp/files/
+MASTER_SITES=  http://www.nncpgo.org/download/
 
 MAINTAINER=    stargrave@stargrave.org
-COMMENT=       Utilities for secure store-and-forward files and mail exchanging
+COMMENT=       Utilities for secure store-and-forward files, mail and command exchanging
 
 LICENSE=       GPLv3+
 LICENSE_FILE=  ${WRKSRC}/COPYING
@@ -16,38 +15,17 @@ BUILD_DEPENDS=      go:lang/go
 
 USES=          tar:xz
 MAKEFILE=      BSDmakefile
-
 USE_RC_SUBR=   nncp-caller nncp-daemon nncp-toss
-REQUIRE=       DAEMON
+INSTALL_TARGET=        install-strip
 
-SUB_FILES=     pkg-message pkg-deinstall nncp.newsyslog.conf
+SUB_FILES=     pkg-message pkg-install pkg-deinstall
 
-PORTDOCS=      AUTHORS NEWS README THANKS
-INFO=          nncp
-INSTALL_TARGET=        install-strip
+OPTIONS_DEFINE=        DOCS
 
-PLIST_FILES=   bin/nncp-call \
-               bin/nncp-caller \
-               bin/nncp-check \
-               bin/nncp-daemon \
-               bin/nncp-file \
-               bin/nncp-freq \
-               bin/nncp-log \
-               bin/nncp-mail \
-               bin/nncp-mincfg \
-               bin/nncp-newcfg \
-               bin/nncp-pkt \
-               bin/nncp-reass \
-               bin/nncp-rm \
-               bin/nncp-stat \
-               bin/nncp-toss \
-               bin/nncp-xfer \
-               etc/newsyslog.conf.d/nncp.conf
-PLIST_DIRS=    /var/spool/nncp
+PORTDOCS=      AUTHORS NEWS NEWS.RU README README.RU THANKS
+INFO=          nncp
 
 post-install:
-       ${MKDIR} ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d
-       ${INSTALL_DATA} ${WRKDIR}/nncp.newsyslog.conf ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d/nncp.conf
-       ${MKDIR} ${STAGEDIR}/var/spool/nncp
+       ${INSTALL_DATA} ${FILESDIR}/nncp.newsyslog.conf.sample ${STAGEDIR}${PREFIX}/etc/nncp.conf.sample
 
 .include <bsd.port.mk>