Gentoo Archives: gentoo-commits

From: "Sven Vermeulen (swift)" <swift@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-firewall/fwknop: fwknop-2.6.2.ebuild ChangeLog
Date: Wed, 28 May 2014 16:18:02
Message-Id: 20140528161758.A0F9C2004E@flycatcher.gentoo.org
1 swift 14/05/28 16:17:58
2
3 Modified: ChangeLog
4 Added: fwknop-2.6.2.ebuild
5 Log:
6 Bump to 2.6.2 (bug #509672)
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x2EDD52403B68AF47)
9
10 Revision Changes Path
11 1.2 net-firewall/fwknop/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/fwknop/ChangeLog?rev=1.2&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/fwknop/ChangeLog?rev=1.2&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/fwknop/ChangeLog?r1=1.1&r2=1.2
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-firewall/fwknop/ChangeLog,v
20 retrieving revision 1.1
21 retrieving revision 1.2
22 diff -u -r1.1 -r1.2
23 --- ChangeLog 27 Apr 2014 10:50:49 -0000 1.1
24 +++ ChangeLog 28 May 2014 16:17:58 -0000 1.2
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-firewall/fwknop
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/fwknop/ChangeLog,v 1.1 2014/04/27 10:50:49 tomwij Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/fwknop/ChangeLog,v 1.2 2014/05/28 16:17:58 swift Exp $
30 +
31 +*fwknop-2.6.2 (28 May 2014)
32 +
33 + 28 May 2014; Sven Vermeulen <swift@g.o> +fwknop-2.6.2.ebuild:
34 + Bump to 2.6.2 (bug #509672)
35
36 *fwknop-2.6.1 (27 Apr 2014)
37
38
39
40
41 1.1 net-firewall/fwknop/fwknop-2.6.2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/fwknop/fwknop-2.6.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/fwknop/fwknop-2.6.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: fwknop-2.6.2.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-firewall/fwknop/fwknop-2.6.2.ebuild,v 1.1 2014/05/28 16:17:58 swift Exp $
51
52 EAPI=5
53
54 # does work with python 2.7, doesn't work with python 3.3 on my machine
55 # more feedback is welcome
56 PYTHON_COMPAT=( python2_7 )
57 DISTUTILS_OPTIONAL=1
58 inherit autotools distutils-r1 eutils systemd
59
60 DESCRIPTION="Single Packet Authorization and Port Knocking application"
61 HOMEPAGE="http://www.cipherdyne.org/fwknop/"
62 SRC_URI="http://www.cipherdyne.org/${PN}/download/${P}.tar.gz"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~x86"
67 IUSE="client extras gdbm gpg python server"
68
69 RDEPEND="python? ( ${PYTHON_DEPS} )
70 gpg? (
71 dev-libs/libassuan
72 dev-libs/libgpg-error
73 )
74 "
75 DEPEND="${RDEPEND}
76 gdbm? ( sys-libs/gdbm )
77 gpg? ( app-crypt/gpgme )
78 server? (
79 net-libs/libpcap
80 net-firewall/iptables
81 )
82 "
83
84 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
85
86 DOCS=( ChangeLog README )
87
88 src_prepare() {
89 # Remove extra run/ subdir from localstatedir paths
90 #
91 # fwknopd's default location for digest-cache and pidfile is
92 # localstatedir/run/fwknop (see server/fwknopd_common.h).
93 # Such files (cache, pidfile) should be placed in /run/fwknop instead.
94 # fwknopd's default apparmor policy also assumes that these files are in
95 # /run/fwknop, i.e. localstatedir is /var and /var/run is a symlink to /run.
96 # Relying on /var/run -> /run symlink is not the best practice.
97 # This is why simply binding localstatedir to /var is not enough.
98 # Instead we strip hardcoded run/ subdir from localstatedir paths
99 # ans set localstatedir to /run below.
100 epatch "${FILESDIR}/fwknop-2.6.0-remove-extra-run-from-paths.patch"
101
102 # Install example configs with .example suffix
103 if use server; then
104 sed -i 's/conf;/conf.example;/g' "${S}"/Makefile.am || die
105 fi
106 eautoreconf
107
108 use python && distutils-r1_src_prepare
109 }
110
111 src_configure() {
112 econf \
113 --localstatedir=/run \
114 --enable-digest-cache \
115 $(use_enable client) \
116 $(use_enable !gdbm file-cache) \
117 $(use_enable server) \
118 $(use_with gpg gpgme)
119 }
120
121 src_compile() {
122 default
123
124 if use python; then
125 cd "${S}"/python || die
126 distutils-r1_src_compile
127 fi
128 }
129
130 src_install() {
131 default
132
133 if use server; then
134 newinitd "${FILESDIR}/fwknopd.init" fwknopd
135 newconfd "${FILESDIR}/fwknopd.confd" fwknopd
136 systemd_newtmpfilesd "${FILESDIR}/fwknopd.tmpfiles.conf" fwknopd.conf
137 fi
138
139 use extras && dodoc "${S}/extras/apparmor/usr.sbin.fwknopd"
140
141 if use python; then
142 # Unset DOCS since distutils-r1.eclass interferes
143 DOCS=()
144 cd "${S}"/python || die
145 distutils-r1_src_install
146 fi
147 }