Gentoo Archives: gentoo-commits

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