Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-vpn/libreswan/
Date: Thu, 28 Jun 2018 22:27:49
Message-Id: 1530224797.069662c8b987b9a20db04269df8abbf3da02eb44.graaff@gentoo
1 commit: 069662c8b987b9a20db04269df8abbf3da02eb44
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 28 22:13:37 2018 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 28 22:26:37 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=069662c8
7
8 net-vpn/libreswan: cleanup
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 net-vpn/libreswan/Manifest | 1 -
13 net-vpn/libreswan/libreswan-3.21.ebuild | 106 ------------------------------
14 net-vpn/libreswan/libreswan-3.23.ebuild | 112 --------------------------------
15 3 files changed, 219 deletions(-)
16
17 diff --git a/net-vpn/libreswan/Manifest b/net-vpn/libreswan/Manifest
18 index fe47c748c8a..4f9ecefd119 100644
19 --- a/net-vpn/libreswan/Manifest
20 +++ b/net-vpn/libreswan/Manifest
21 @@ -1,3 +1,2 @@
22 -DIST libreswan-3.21.tar.gz 8945666 BLAKE2B 88a96310d54f44c28eb676689c76737a44bfaf17c02146297f1759f1019d8cbb6effc15175880c18bf08b265778a2aba9d055172ea710c259e14cbe2fd84c158 SHA512 f1ef002b3e0869920edfebfc8efd73d9a9f84f64a77ad4832f46b12dfdd3c31cdf48c1473522b63f155058592c46af05995756af5440ca3e9c0fa5207436e0fc
23 DIST libreswan-3.22.tar.gz 6910418 BLAKE2B c06134fa2d1096231797f1ea93de8ed61121472b10ae30ee9a843250dce4ef9f21e7d3bf63f38daf53fbfd8d1e435cfdc704743d0fdcbde8ecac137d9becac48 SHA512 93868327394527750590e1297443d3eb1c9a528d680348098fd2913123dac52c9fecd73b855ee00586c2516b8aa00f7f0d158d8e9b19d7487b5fb26432b86aff
24 DIST libreswan-3.23.tar.gz 3836073 BLAKE2B ffb27ed75618afcf39c36b7326bb1e4b70ea8337bb4b13951bef95dc13989613c226fe83e031eeba080f55f98262df432b776c3ac5b7b4fb740506f918172ed3 SHA512 3645af522ea9ac868c55bfadfd2cf27dc5acb247543f43290cbe677a90cd00316be6520ca2128b9aaecce2b0293710ae6a2bd710a7d93198b8cb81e32276ced8
25
26 diff --git a/net-vpn/libreswan/libreswan-3.21.ebuild b/net-vpn/libreswan/libreswan-3.21.ebuild
27 deleted file mode 100644
28 index 64faa1945d9..00000000000
29 --- a/net-vpn/libreswan/libreswan-3.21.ebuild
30 +++ /dev/null
31 @@ -1,106 +0,0 @@
32 -# Copyright 1999-2017 Gentoo Foundation
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=6
36 -
37 -inherit systemd toolchain-funcs
38 -
39 -SRC_URI="https://download.libreswan.org/${P}.tar.gz"
40 -KEYWORDS="amd64 ~ppc x86"
41 -
42 -DESCRIPTION="IPsec implementation for Linux, fork of Openswan"
43 -HOMEPAGE="https://libreswan.org/"
44 -
45 -LICENSE="GPL-2 BSD-4 RSA DES"
46 -SLOT="0"
47 -IUSE="caps curl dnssec ldap pam systemd test"
48 -
49 -COMMON_DEPEND="
50 - dev-libs/gmp:0=
51 - dev-libs/libevent:0=
52 - dev-libs/nspr
53 - caps? ( sys-libs/libcap-ng )
54 - curl? ( net-misc/curl )
55 - dnssec? ( net-dns/unbound net-libs/ldns )
56 - ldap? ( net-nds/openldap )
57 - pam? ( sys-libs/pam )
58 - systemd? ( sys-apps/systemd:0= )
59 -"
60 -DEPEND="${COMMON_DEPEND}
61 - app-text/docbook-xml-dtd:4.1.2
62 - app-text/xmlto
63 - dev-libs/nss
64 - sys-devel/bison
65 - sys-devel/flex
66 - virtual/pkgconfig
67 - test? ( dev-python/setproctitle )
68 -"
69 -RDEPEND="${COMMON_DEPEND}
70 - dev-libs/nss[utils(+)]
71 - sys-apps/iproute2
72 - !net-misc/openswan
73 - !net-vpn/strongswan
74 -"
75 -
76 -usetf() {
77 - usex "$1" true false
78 -}
79 -
80 -src_prepare() {
81 - sed -i -e 's:/sbin/runscript:/sbin/openrc-run:' initsystems/openrc/ipsec.init.in || die
82 - sed -i -e '/^install/ s/postcheck//' -e '/^doinstall/ s/oldinitdcheck//' initsystems/systemd/Makefile || die
83 - default
84 -}
85 -
86 -src_configure() {
87 - tc-export AR CC
88 - export INC_USRLOCAL=/usr
89 - export INC_MANDIR=share/man
90 - export FINALEXAMPLECONFDIR=/usr/share/doc/${PF}
91 - export FINALDOCDIR=/usr/share/doc/${PF}/html
92 - export INITSYSTEM=openrc
93 - export INC_RCDIRS=
94 - export INC_RCDEFAULT=/etc/init.d
95 - export USERCOMPILE=
96 - export USERLINK=
97 - export USE_DNSSEC=$(usetf dnssec)
98 - export USE_LIBCAP_NG=$(usetf caps)
99 - export USE_LIBCURL=$(usetf curl)
100 - export USE_LDAP=$(usetf ldap)
101 - export USE_SYSTEMD_WATCHDOG=$(usetf systemd)
102 - export SD_WATCHDOGSEC=$(usex systemd 200 0)
103 - export USE_XAUTHPAM=$(usetf pam)
104 - export DEBUG_CFLAGS=
105 - export OPTIMIZE_CFLAGS=
106 - export WERROR_CFLAGS=
107 -}
108 -
109 -src_compile() {
110 - emake all
111 - emake -C initsystems INITSYSTEM=systemd UNITDIR="$(systemd_get_systemunitdir)" all
112 -}
113 -
114 -src_test() {
115 - : # integration tests only that require set of kvms to be set up
116 -}
117 -
118 -src_install() {
119 - default
120 - emake -C initsystems INITSYSTEM=systemd UNITDIR="$(systemd_get_systemunitdir)" DESTDIR="${D}" install
121 -
122 - echo "include /etc/ipsec.d/*.secrets" > "${D}"/etc/ipsec.secrets
123 - fperms 0600 /etc/ipsec.secrets
124 -
125 - dodoc -r docs
126 -
127 - find "${D}" -type d -empty -delete || die
128 -}
129 -
130 -pkg_postinst() {
131 - local IPSEC_CONFDIR=${ROOT%/}/etc/ipsec.d
132 - if [[ ! -f ${IPSEC_CONFDIR}/cert8.db ]]; then
133 - ebegin "Setting up NSS database in ${IPSEC_CONFDIR}"
134 - certutil -N -d "${IPSEC_CONFDIR}" -f <(echo)
135 - eend $?
136 - fi
137 -}
138
139 diff --git a/net-vpn/libreswan/libreswan-3.23.ebuild b/net-vpn/libreswan/libreswan-3.23.ebuild
140 deleted file mode 100644
141 index b71d536ae10..00000000000
142 --- a/net-vpn/libreswan/libreswan-3.23.ebuild
143 +++ /dev/null
144 @@ -1,112 +0,0 @@
145 -# Copyright 1999-2018 Gentoo Foundation
146 -# Distributed under the terms of the GNU General Public License v2
147 -
148 -EAPI=6
149 -
150 -inherit systemd toolchain-funcs
151 -
152 -SRC_URI="https://download.libreswan.org/${P}.tar.gz"
153 -KEYWORDS="~amd64 ~ppc ~x86"
154 -
155 -DESCRIPTION="IPsec implementation for Linux, fork of Openswan"
156 -HOMEPAGE="https://libreswan.org/"
157 -
158 -LICENSE="GPL-2 BSD-4 RSA DES"
159 -SLOT="0"
160 -IUSE="caps curl dnssec ldap pam seccomp selinux systemd test"
161 -
162 -COMMON_DEPEND="
163 - dev-libs/gmp:0=
164 - dev-libs/libevent:0=
165 - dev-libs/nspr
166 - caps? ( sys-libs/libcap-ng )
167 - curl? ( net-misc/curl )
168 - dnssec? ( net-dns/unbound net-libs/ldns )
169 - ldap? ( net-nds/openldap )
170 - pam? ( sys-libs/pam )
171 - seccomp? ( sys-libs/libseccomp )
172 - selinux? ( sys-libs/libselinux )
173 - systemd? ( sys-apps/systemd:0= )
174 -"
175 -DEPEND="${COMMON_DEPEND}
176 - app-text/docbook-xml-dtd:4.1.2
177 - app-text/xmlto
178 - dev-libs/nss
179 - sys-devel/bison
180 - sys-devel/flex
181 - virtual/pkgconfig
182 - test? ( dev-python/setproctitle )
183 -"
184 -RDEPEND="${COMMON_DEPEND}
185 - dev-libs/nss[utils(+)]
186 - sys-apps/iproute2
187 - !net-misc/openswan
188 - !net-vpn/strongswan
189 - selinux? ( sec-policy/selinux-ipsec )
190 -"
191 -
192 -usetf() {
193 - usex "$1" true false
194 -}
195 -
196 -src_prepare() {
197 - sed -i -e 's:/sbin/runscript:/sbin/openrc-run:' initsystems/openrc/ipsec.init.in || die
198 - sed -i -e '/^install/ s/postcheck//' -e '/^doinstall/ s/oldinitdcheck//' initsystems/systemd/Makefile || die
199 - default
200 -}
201 -
202 -src_configure() {
203 - tc-export AR CC
204 - export INC_USRLOCAL=/usr
205 - export INC_MANDIR=share/man
206 - export FINALEXAMPLECONFDIR=/usr/share/doc/${PF}
207 - export FINALDOCDIR=/usr/share/doc/${PF}/html
208 - export INITSYSTEM=openrc
209 - export INC_RCDIRS=
210 - export INC_RCDEFAULT=/etc/init.d
211 - export USERCOMPILE=
212 - export USERLINK=
213 - export USE_DNSSEC=$(usetf dnssec)
214 - export USE_LABELED_IPSEC=$(usetf selinux)
215 - export USE_LIBCAP_NG=$(usetf caps)
216 - export USE_LIBCURL=$(usetf curl)
217 - export USE_LINUX_AUDIT=$(usetf selinux)
218 - export USE_LDAP=$(usetf ldap)
219 - export USE_SECCOMP=$(usetf seccomp)
220 - export USE_SYSTEMD_WATCHDOG=$(usetf systemd)
221 - export SD_WATCHDOGSEC=$(usex systemd 200 0)
222 - export USE_XAUTHPAM=$(usetf pam)
223 - export DEBUG_CFLAGS=
224 - export OPTIMIZE_CFLAGS=
225 - export WERROR_CFLAGS=
226 -}
227 -
228 -src_compile() {
229 - emake all
230 - emake -C initsystems INITSYSTEM=systemd UNITDIR="$(systemd_get_systemunitdir)" all
231 -}
232 -
233 -src_test() {
234 - : # integration tests only that require set of kvms to be set up
235 -}
236 -
237 -src_install() {
238 - default
239 - emake -C initsystems INITSYSTEM=systemd UNITDIR="$(systemd_get_systemunitdir)" DESTDIR="${D}" install
240 -
241 - echo "include /etc/ipsec.d/*.secrets" > "${D}"/etc/ipsec.secrets
242 - fperms 0600 /etc/ipsec.secrets
243 -
244 - dodoc -r docs
245 -
246 - find "${D}" -type d -empty -delete || die
247 -}
248 -
249 -pkg_postinst() {
250 - local IPSEC_CONFDIR=${ROOT%/}/etc/ipsec.d
251 - if [[ ! -f ${IPSEC_CONFDIR}/cert8.db ]]; then
252 - ebegin "Setting up NSS database in ${IPSEC_CONFDIR}"
253 - certutil -N -d "${IPSEC_CONFDIR}" -f <(echo)
254 - eend $?
255 - fi
256 -}