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: Sat, 23 Feb 2019 06:18:45
Message-Id: 1550902698.d3ad48cc7e165cea71380a0243264fcf5f0a290a.graaff@gentoo
1 commit: d3ad48cc7e165cea71380a0243264fcf5f0a290a
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 22 06:33:03 2019 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 23 06:18:18 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3ad48cc
7
8 net-vpn/libreswan: cleanup
9
10 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 net-vpn/libreswan/Manifest | 1 -
14 net-vpn/libreswan/libreswan-3.25.ebuild | 114 --------------------------------
15 2 files changed, 115 deletions(-)
16
17 diff --git a/net-vpn/libreswan/Manifest b/net-vpn/libreswan/Manifest
18 index a28107d3859..3a8dc89ba1f 100644
19 --- a/net-vpn/libreswan/Manifest
20 +++ b/net-vpn/libreswan/Manifest
21 @@ -1,2 +1 @@
22 -DIST libreswan-3.25.tar.gz 3988630 BLAKE2B 8479b5b0d7d49055b7dcefa6c3b2f469b0aa60005e05446d5c1c6f73a32c904835422248c6ead2a1c2dc83b63794fd50f7461fd22c4206414b5890c01b99b722 SHA512 246649cb5bef1d0690217d1080f3f6f175a0d7a5f27e5a7affdf291b2f418a11937e96b64716a33e6312530409a2c1b10b90e2fa5ec339a27c94c990d86ed517
23 DIST libreswan-3.27.tar.gz 3720103 BLAKE2B 51ee792cd3fb8330a9cfee0b1a27e48c9a8c8fd3346e8c06fe0a911c813c400ef62d68b1d06bb849695aad5f4d5a496dc444b2543aa9ffbc59d373081c0b85e5 SHA512 b92ecfd08b9d19dc801032176eff3dd07f625223d4f0dd07ff10f639644573430a55f7aebfcc8b9d2424e194ca9d06b17ad5a13dad5dc6f659d19bc5d32520f5
24
25 diff --git a/net-vpn/libreswan/libreswan-3.25.ebuild b/net-vpn/libreswan/libreswan-3.25.ebuild
26 deleted file mode 100644
27 index a8085009764..00000000000
28 --- a/net-vpn/libreswan/libreswan-3.25.ebuild
29 +++ /dev/null
30 @@ -1,114 +0,0 @@
31 -# Copyright 1999-2018 Gentoo Foundation
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=6
35 -
36 -inherit systemd toolchain-funcs
37 -
38 -SRC_URI="https://download.libreswan.org/${P}.tar.gz"
39 -KEYWORDS="amd64 ~ppc x86"
40 -
41 -DESCRIPTION="IPsec implementation for Linux, fork of Openswan"
42 -HOMEPAGE="https://libreswan.org/"
43 -
44 -LICENSE="GPL-2 BSD-4 RSA DES"
45 -SLOT="0"
46 -IUSE="caps curl dnssec ldap pam seccomp selinux systemd test"
47 -
48 -COMMON_DEPEND="
49 - dev-libs/gmp:0=
50 - dev-libs/libevent:0=
51 - dev-libs/nspr
52 - caps? ( sys-libs/libcap-ng )
53 - curl? ( net-misc/curl )
54 - dnssec? ( net-dns/unbound:= net-libs/ldns )
55 - ldap? ( net-nds/openldap )
56 - pam? ( sys-libs/pam )
57 - seccomp? ( sys-libs/libseccomp )
58 - selinux? ( sys-libs/libselinux )
59 - systemd? ( sys-apps/systemd:0= )
60 -"
61 -DEPEND="${COMMON_DEPEND}
62 - app-text/docbook-xml-dtd:4.1.2
63 - app-text/xmlto
64 - dev-libs/nss
65 - sys-devel/bison
66 - sys-devel/flex
67 - virtual/pkgconfig
68 - test? ( dev-python/setproctitle )
69 -"
70 -RDEPEND="${COMMON_DEPEND}
71 - dev-libs/nss[utils(+)]
72 - sys-apps/iproute2
73 - !net-misc/openswan
74 - !net-vpn/strongswan
75 - selinux? ( sec-policy/selinux-ipsec )
76 -"
77 -
78 -usetf() {
79 - usex "$1" true false
80 -}
81 -
82 -src_prepare() {
83 - eapply "${FILESDIR}/${P}-no-curl.patch"
84 -
85 - sed -i -e 's:/sbin/runscript:/sbin/openrc-run:' initsystems/openrc/ipsec.init.in || die
86 - sed -i -e '/^install/ s/postcheck//' -e '/^doinstall/ s/oldinitdcheck//' initsystems/systemd/Makefile || die
87 - default
88 -}
89 -
90 -src_configure() {
91 - tc-export AR CC
92 - export INC_USRLOCAL=/usr
93 - export INC_MANDIR=share/man
94 - export FINALEXAMPLECONFDIR=/usr/share/doc/${PF}
95 - export FINALDOCDIR=/usr/share/doc/${PF}/html
96 - export INITSYSTEM=openrc
97 - export INC_RCDIRS=
98 - export INC_RCDEFAULT=/etc/init.d
99 - export USERCOMPILE=
100 - export USERLINK=
101 - export USE_DNSSEC=$(usetf dnssec)
102 - export USE_LABELED_IPSEC=$(usetf selinux)
103 - export USE_LIBCAP_NG=$(usetf caps)
104 - export USE_LIBCURL=$(usetf curl)
105 - export USE_LINUX_AUDIT=$(usetf selinux)
106 - export USE_LDAP=$(usetf ldap)
107 - export USE_SECCOMP=$(usetf seccomp)
108 - export USE_SYSTEMD_WATCHDOG=$(usetf systemd)
109 - export SD_WATCHDOGSEC=$(usex systemd 200 0)
110 - export USE_XAUTHPAM=$(usetf pam)
111 - export DEBUG_CFLAGS=
112 - export OPTIMIZE_CFLAGS=
113 - export WERROR_CFLAGS=
114 -}
115 -
116 -src_compile() {
117 - emake all
118 - emake -C initsystems INITSYSTEM=systemd UNITDIR="$(systemd_get_systemunitdir)" all
119 -}
120 -
121 -src_test() {
122 - : # integration tests only that require set of kvms to be set up
123 -}
124 -
125 -src_install() {
126 - default
127 - emake -C initsystems INITSYSTEM=systemd UNITDIR="$(systemd_get_systemunitdir)" DESTDIR="${D}" install
128 -
129 - echo "include /etc/ipsec.d/*.secrets" > "${D}"/etc/ipsec.secrets
130 - fperms 0600 /etc/ipsec.secrets
131 -
132 - dodoc -r docs
133 -
134 - find "${D}" -type d -empty -delete || die
135 -}
136 -
137 -pkg_postinst() {
138 - local IPSEC_CONFDIR=${ROOT%/}/etc/ipsec.d
139 - if [[ ! -f ${IPSEC_CONFDIR}/cert8.db ]]; then
140 - ebegin "Setting up NSS database in ${IPSEC_CONFDIR}"
141 - certutil -N -d "${IPSEC_CONFDIR}" -f <(echo)
142 - eend $?
143 - fi
144 -}