[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / net / fwknop

File: [cvs.NetBSD.org] / pkgsrc / net / fwknop / Makefile (download)

Revision 1.1, Tue May 1 21:10:42 2018 UTC (10 months, 3 weeks ago) by khorben
Branch: MAIN
CVS Tags: pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, HEAD

Import net/fwknop version 2.6.9 from wip

fwknop stands for the "FireWall KNock OPerator", and implements an authorization
scheme called Single Packet Authorization (SPA). This method of authorization is
based around a default-drop packet filter (fwknop supports iptables and
firewalld on Linux, ipfw on FreeBSD and Mac OS X, and PF on OpenBSD) and
libpcap. SPA is essentially next generation port knocking.

# $NetBSD: Makefile,v 1.1 2018/05/01 21:10:42 khorben Exp $

DISTNAME=	fwknop-2.6.9
CATEGORIES=	net
MASTER_SITES=	${MASTER_SITE_GITHUB:=mrash/}

MAINTAINER=	khorben@defora.org
HOMEPAGE=	https://github.com/mrash/fwknop/
COMMENT=	Port knocking via Single Packet Authorization (SPA)
LICENSE=	gnu-gpl-v2

DEPENDS+=	gnupg-[0-9]*:../../security/gnupg
DEPENDS+=	wget-[0-9]*:../../net/wget

USE_TOOLS+=	aclocal autoconf automake autoheader makeinfo

GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=--infodir=${PREFIX}/${PKGINFODIR}

EGDIR=		${PREFIX}/share/examples/fwknop
CONF_FILES+=	${EGDIR}/access.conf \
		${PKG_SYSCONFDIR}/fwknop/access.conf
CONF_FILES+=	${EGDIR}/fwknopd.conf \
		${PKG_SYSCONFDIR}/fwknop/fwknopd.conf
INSTALLATION_DIRS+=	${EGDIR}

INFO_FILES=	yes

WRKSRC=		${WRKDIR}/fwknop-2.6.9

pre-configure:
	cd ${WRKSRC} && sh autogen.sh

post-install:
	${MV} ${DESTDIR}${PKG_SYSCONFDIR}/fwknop/access.conf ${DESTDIR}${EGDIR}/
	${MV} ${DESTDIR}${PKG_SYSCONFDIR}/fwknop/fwknopd.conf ${DESTDIR}${EGDIR}/

.include "../../net/libpcap/buildlink3.mk"
.include "../../security/gpgme/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"