diff options
author | Sven Vermeulen <swift@gentoo.org> | 2014-05-28 16:17:58 +0000 |
---|---|---|
committer | Sven Vermeulen <swift@gentoo.org> | 2014-05-28 16:17:58 +0000 |
commit | cc0f887cac21b2100629825a9dae8ee4c88287a4 (patch) | |
tree | c2523f6a8fc4b7627287a2512667c1a00f21f561 /net-firewall/fwknop | |
parent | Version bump (diff) | |
download | gentoo-2-cc0f887cac21b2100629825a9dae8ee4c88287a4.tar.gz gentoo-2-cc0f887cac21b2100629825a9dae8ee4c88287a4.tar.bz2 gentoo-2-cc0f887cac21b2100629825a9dae8ee4c88287a4.zip |
Bump to 2.6.2 (bug #509672)
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x2EDD52403B68AF47)
Diffstat (limited to 'net-firewall/fwknop')
-rw-r--r-- | net-firewall/fwknop/ChangeLog | 7 | ||||
-rw-r--r-- | net-firewall/fwknop/fwknop-2.6.2.ebuild | 100 |
2 files changed, 106 insertions, 1 deletions
diff --git a/net-firewall/fwknop/ChangeLog b/net-firewall/fwknop/ChangeLog index 56a48c2d7301..913189d0d9ad 100644 --- a/net-firewall/fwknop/ChangeLog +++ b/net-firewall/fwknop/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-firewall/fwknop # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/fwknop/ChangeLog,v 1.1 2014/04/27 10:50:49 tomwij Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-firewall/fwknop/ChangeLog,v 1.2 2014/05/28 16:17:58 swift Exp $ + +*fwknop-2.6.2 (28 May 2014) + + 28 May 2014; Sven Vermeulen <swift@gentoo.org> +fwknop-2.6.2.ebuild: + Bump to 2.6.2 (bug #509672) *fwknop-2.6.1 (27 Apr 2014) diff --git a/net-firewall/fwknop/fwknop-2.6.2.ebuild b/net-firewall/fwknop/fwknop-2.6.2.ebuild new file mode 100644 index 000000000000..e22e71a6fa6e --- /dev/null +++ b/net-firewall/fwknop/fwknop-2.6.2.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/fwknop/fwknop-2.6.2.ebuild,v 1.1 2014/05/28 16:17:58 swift Exp $ + +EAPI=5 + +# does work with python 2.7, doesn't work with python 3.3 on my machine +# more feedback is welcome +PYTHON_COMPAT=( python2_7 ) +DISTUTILS_OPTIONAL=1 +inherit autotools distutils-r1 eutils systemd + +DESCRIPTION="Single Packet Authorization and Port Knocking application" +HOMEPAGE="http://www.cipherdyne.org/fwknop/" +SRC_URI="http://www.cipherdyne.org/${PN}/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="client extras gdbm gpg python server" + +RDEPEND="python? ( ${PYTHON_DEPS} ) + gpg? ( + dev-libs/libassuan + dev-libs/libgpg-error + ) +" +DEPEND="${RDEPEND} + gdbm? ( sys-libs/gdbm ) + gpg? ( app-crypt/gpgme ) + server? ( + net-libs/libpcap + net-firewall/iptables + ) +" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +DOCS=( ChangeLog README ) + +src_prepare() { + # Remove extra run/ subdir from localstatedir paths + # + # fwknopd's default location for digest-cache and pidfile is + # localstatedir/run/fwknop (see server/fwknopd_common.h). + # Such files (cache, pidfile) should be placed in /run/fwknop instead. + # fwknopd's default apparmor policy also assumes that these files are in + # /run/fwknop, i.e. localstatedir is /var and /var/run is a symlink to /run. + # Relying on /var/run -> /run symlink is not the best practice. + # This is why simply binding localstatedir to /var is not enough. + # Instead we strip hardcoded run/ subdir from localstatedir paths + # ans set localstatedir to /run below. + epatch "${FILESDIR}/fwknop-2.6.0-remove-extra-run-from-paths.patch" + + # Install example configs with .example suffix + if use server; then + sed -i 's/conf;/conf.example;/g' "${S}"/Makefile.am || die + fi + eautoreconf + + use python && distutils-r1_src_prepare +} + +src_configure() { + econf \ + --localstatedir=/run \ + --enable-digest-cache \ + $(use_enable client) \ + $(use_enable !gdbm file-cache) \ + $(use_enable server) \ + $(use_with gpg gpgme) +} + +src_compile() { + default + + if use python; then + cd "${S}"/python || die + distutils-r1_src_compile + fi +} + +src_install() { + default + + if use server; then + newinitd "${FILESDIR}/fwknopd.init" fwknopd + newconfd "${FILESDIR}/fwknopd.confd" fwknopd + systemd_newtmpfilesd "${FILESDIR}/fwknopd.tmpfiles.conf" fwknopd.conf + fi + + use extras && dodoc "${S}/extras/apparmor/usr.sbin.fwknopd" + + if use python; then + # Unset DOCS since distutils-r1.eclass interferes + DOCS=() + cd "${S}"/python || die + distutils-r1_src_install + fi +} |