# Created by: nagilum
# $FreeBSD: tags/RELEASE_10_2_0/net/nstxd/Makefile 360664 2014-07-04 21:44:04Z adamw $

PORTNAME=	nstxd
PORTVERSION=	1.1b6
CATEGORIES=	net
MASTER_SITES=	http://www.nagilum.org/nstx/ \
		http://ftp.debian.org/debian/pool/main/n/nstx/
DISTNAME=	nstx_1.1-beta6.orig

PATCH_SITES=	http://www.nagilum.org/nstx/  \
		http://ftp.debian.org/debian/pool/main/n/nstx/
PATCH_DIST_STRIP=	-p1
PATCHFILES=	nstx_1.1-beta6-4.diff.gz

MAINTAINER=	freebsd@nagilum.org
COMMENT=	DNS tunnel server

USE_RC_SUBR+=	nstxd

WRKSRC=		${WRKDIR}/nstx-1.1-beta6
SUB_FILES=	pkg-message

ALL_TARGET=	nstxd
INSTALL_TARGET=	nstxd

OPTIONS_DEFINE=	DOCS

post-install:
	${INSTALL_PROGRAM} ${WRKSRC}/nstxd ${STAGEDIR}${PREFIX}/sbin
	${INSTALL_MAN} ${WRKSRC}/nstxd.8 ${STAGEDIR}${PREFIX}/man/man8/
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>
