# $FreeBSD: tags/RELEASE_12_1_0/net/nncp/Makefile 505321 2019-06-29 03:51:13Z tobik $

PORTNAME=	nncp
DISTVERSION=	4.0
CATEGORIES=	net
MASTER_SITES=	http://www.nncpgo.org/download/

MAINTAINER=	stargrave@stargrave.org
COMMENT=	Utilities for secure store-and-forward files, mail, command exchanging

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		go:no_targets tar:xz
MAKEFILE=	BSDmakefile
USE_RC_SUBR=	nncp-caller nncp-daemon nncp-toss
INSTALL_TARGET=	install-strip

SUB_FILES=	pkg-message pkg-install pkg-deinstall

OPTIONS_DEFINE=	DOCS

PORTDOCS=	AUTHORS NEWS NEWS.RU README README.RU THANKS
INFO=		nncp
MAKE_ARGS=	INFODIR=${STAGEDIR}${PREFIX}/${INFO_PATH}

post-install:
	${INSTALL_DATA} ${FILESDIR}/nncp.newsyslog.conf.sample ${STAGEDIR}${PREFIX}/etc/nncp.conf.sample

.include <bsd.port.mk>
