fwknop: update to version 2.6.10 This release brings: - [server] Add MAX_FW_TIMEOUT to access.conf stanzas to allow a maximum number of seconds for client-specified timeouts in SPA packets. This fixes issue #226 which was spotted by Jeremiah Rothschild. - [server] Bug fix in CMD_EXEC mode to make sure to call exit() upon any error from execvpe(). Without this fix, additional fwknopd processes would be started upon a user specifying a command without the necessary permissions. This bug was reported by Stephen Isard. - [build] Jeremie Courreges-Anglas and Ingo Feinerer contributed a patch to fix endian detection on OpenBSD systems based on information contained here: https://www.opengroup.org/austin/docs/austin_514.txt - [client/server] (Michael Stair) Added client and server infrastructure written in Erlang. See the erlang/ directory.diff -r1.3 -r1.4 pkgsrc/net/fwknop/Makefile
(khorben)
@@ -1,41 +1,42 @@ | @@ -1,41 +1,42 @@ | |||
1 | # $NetBSD: Makefile,v 1.3 2019/12/21 23:44:59 joerg Exp $ | 1 | # $NetBSD: Makefile,v 1.4 2021/05/29 22:39:45 khorben Exp $ | |
2 | 2 | |||
3 | DISTNAME= fwknop-2.6.9 | 3 | DISTNAME= fwknop-2.6.10 | |
4 | CATEGORIES= net | 4 | CATEGORIES= net | |
5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=mrash/} | 5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=mrash/} | |
6 | 6 | |||
7 | MAINTAINER= khorben@defora.org | 7 | MAINTAINER= khorben@defora.org | |
8 | HOMEPAGE= https://github.com/mrash/fwknop/ | 8 | HOMEPAGE= https://github.com/mrash/fwknop/ | |
9 | COMMENT= Port knocking via Single Packet Authorization (SPA) | 9 | COMMENT= Port knocking via Single Packet Authorization (SPA) | |
10 | LICENSE= gnu-gpl-v2 | 10 | LICENSE= gnu-gpl-v2 | |
11 | 11 | |||
12 | DEPENDS+= gnupg-[0-9]*:../../security/gnupg | 12 | DEPENDS+= gnupg-[0-9]*:../../security/gnupg | |
13 | DEPENDS+= wget-[0-9]*:../../net/wget | 13 | DEPENDS+= wget-[0-9]*:../../net/wget | |
14 | 14 | |||
15 | USE_TOOLS+= aclocal autoconf automake autoheader makeinfo | 15 | USE_TOOLS+= aclocal autoconf automake autoheader makeinfo | |
16 | 16 | |||
17 | USE_LIBTOOL= yes | 17 | USE_LIBTOOL= yes | |
18 | GNU_CONFIGURE= yes | 18 | GNU_CONFIGURE= yes | |
19 | CONFIGURE_ARGS+= --infodir=${PREFIX}/${PKGINFODIR} | 19 | CONFIGURE_ARGS+= --infodir=${PREFIX}/${PKGINFODIR} | |
20 | 20 | |||
21 | RCD_SCRIPTS= fwknopd | |||
21 | EGDIR= ${PREFIX}/share/examples/fwknop | 22 | EGDIR= ${PREFIX}/share/examples/fwknop | |
22 | CONF_FILES+= ${EGDIR}/access.conf \ | 23 | CONF_FILES_PERMS+= ${EGDIR}/access.conf \ | |
23 | ${PKG_SYSCONFDIR}/fwknop/access.conf | 24 | ${PKG_SYSCONFDIR}/fwknop/access.conf \ | |
24 | CONF_FILES+= ${EGDIR}/fwknopd.conf \ | 25 | ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0600 | |
25 | ${PKG_SYSCONFDIR}/fwknop/fwknopd.conf | 26 | CONF_FILES_PERMS+= ${EGDIR}/fwknopd.conf \ | |
27 | ${PKG_SYSCONFDIR}/fwknop/fwknopd.conf \ | |||
28 | ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0600 | |||
26 | INSTALLATION_DIRS+= ${EGDIR} | 29 | INSTALLATION_DIRS+= ${EGDIR} | |
27 | 30 | |||
28 | INFO_FILES= yes | 31 | INFO_FILES= yes | |
29 | 32 | |||
30 | WRKSRC= ${WRKDIR}/fwknop-2.6.9 | |||
31 | ||||
32 | pre-configure: | 33 | pre-configure: | |
33 | cd ${WRKSRC} && sh autogen.sh | 34 | cd ${WRKSRC} && sh autogen.sh | |
34 | 35 | |||
35 | post-install: | 36 | post-install: | |
36 | ${MV} ${DESTDIR}${PKG_SYSCONFDIR}/fwknop/access.conf ${DESTDIR}${EGDIR}/ | 37 | ${MV} ${DESTDIR}${PKG_SYSCONFDIR}/fwknop/access.conf ${DESTDIR}${EGDIR}/ | |
37 | ${MV} ${DESTDIR}${PKG_SYSCONFDIR}/fwknop/fwknopd.conf ${DESTDIR}${EGDIR}/ | 38 | ${MV} ${DESTDIR}${PKG_SYSCONFDIR}/fwknop/fwknopd.conf ${DESTDIR}${EGDIR}/ | |
38 | 39 | |||
39 | .include "../../net/libpcap/buildlink3.mk" | 40 | .include "../../net/libpcap/buildlink3.mk" | |
40 | .include "../../security/gpgme/buildlink3.mk" | 41 | .include "../../security/gpgme/buildlink3.mk" | |
41 | .include "../../mk/bsd.pkg.mk" | 42 | .include "../../mk/bsd.pkg.mk" |
@@ -1,8 +1,6 @@ | @@ -1,8 +1,6 @@ | |||
1 | $NetBSD: distinfo,v 1.1 2018/05/01 21:10:42 khorben Exp $ | 1 | $NetBSD: distinfo,v 1.2 2021/05/29 22:39:45 khorben Exp $ | |
2 | 2 | |||
3 | SHA1 (fwknop-2.6.9.tar.gz) = d306c206bc0afd26cad3567584d5017348ebc13e | 3 | SHA1 (fwknop-2.6.10.tar.gz) = b0a70f5626e6e27a41259fc4f07e19c39da5df73 | |
4 | RMD160 (fwknop-2.6.9.tar.gz) = 6409bc7fa4880070502e3c92ff60bf3aa3968b3f | 4 | RMD160 (fwknop-2.6.10.tar.gz) = ee14efc6e43cc9ac32f489f257ab2b19257092cd | |
5 | SHA512 (fwknop-2.6.9.tar.gz) = 4706560d44c911c8604059d88dded9c1b8c333399d90ec7dc366c0fba96c79680bdbf1b8b5e76cc34aaf3a1e58fff80db8f5f20c96d57481bdb476a9b99f4d1b | 5 | SHA512 (fwknop-2.6.10.tar.gz) = e6c34dad012921fc0773826c769df322f06fd9310e8f263d8b786d2acda0310763db566324a436ea539b5e0bd6a08ce22e9499f6566d61d6309d84927faa4cf4 | |
6 | Size (fwknop-2.6.9.tar.gz) = 3043542 bytes | 6 | Size (fwknop-2.6.10.tar.gz) = 3030310 bytes | |
7 | SHA1 (patch-common_netinet__common.h) = 14aba8c993916b6ce4bd035326e1b74735333c8b | |||
8 | SHA1 (patch-configure.ac) = a17c487cb4f294f3800b5557ccb8124c64c679c4 |
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: fwknopd.sh,v 1.1 2021/05/29 22:39:46 khorben Exp $
#
# Startup script for fwknopd
#
# PROVIDE: fwknopd
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# You will need to set some variables in /etc/rc.conf to start fwknopd:
#
# fwknopd=YES
#
# Optionally, "fwknopd_flags" contains additional parameters for the service.
# See fwknopd(8) for possible options.
. /etc/rc.subr
name="fwknopd"
rcvar=${name}
command="@PREFIX@/bin/${name}"
required_files="@PKG_SYSCONFDIR@/fwknop/fwknopd.conf"
fwknopd_flags=
load_rc_config $name
run_rc_command "$1"