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, 27 Jan 2018 07:42:24
Message-Id: 1517038933.2a514ad0ed37672003e7e4e3390d064327f0b22d.graaff@gentoo
1 commit: 2a514ad0ed37672003e7e4e3390d064327f0b22d
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 27 07:34:44 2018 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 27 07:42:13 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a514ad0
7
8 net-vpn/libreswan: cleanup
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 net-vpn/libreswan/Manifest | 1 -
13 net-vpn/libreswan/libreswan-3.20.ebuild | 100 --------------------------------
14 2 files changed, 101 deletions(-)
15
16 diff --git a/net-vpn/libreswan/Manifest b/net-vpn/libreswan/Manifest
17 index afc66a0c0d3..6d171927d7d 100644
18 --- a/net-vpn/libreswan/Manifest
19 +++ b/net-vpn/libreswan/Manifest
20 @@ -1,3 +1,2 @@
21 -DIST libreswan-3.20.tar.gz 8898915 BLAKE2B 5b1d10e5eef757062604d0ccac2502114b81bfcadc4cec927e07ff89e859eea2559eabf6b734e63a8049506d81e3dc9c131594759e72d5e5f0d7b7eb87989689 SHA512 89f562412d03e0e9af1bceeda18ab73a749046c37e05dab719468cb537e16803a3b270781de9de88416b2d63b7b0fd85df0c593ca59c30ba3d681526f272fc93
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
25 diff --git a/net-vpn/libreswan/libreswan-3.20.ebuild b/net-vpn/libreswan/libreswan-3.20.ebuild
26 deleted file mode 100644
27 index 11837d0212d..00000000000
28 --- a/net-vpn/libreswan/libreswan-3.20.ebuild
29 +++ /dev/null
30 @@ -1,100 +0,0 @@
31 -# Copyright 1999-2017 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 systemd"
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 - systemd? ( sys-apps/systemd:0= )
58 -"
59 -DEPEND="${COMMON_DEPEND}
60 - app-text/docbook-xml-dtd:4.1.2
61 - app-text/xmlto
62 - dev-libs/nss
63 - sys-devel/bison
64 - sys-devel/flex
65 - virtual/pkgconfig
66 -"
67 -RDEPEND="${COMMON_DEPEND}
68 - dev-libs/nss[utils(+)]
69 - sys-apps/iproute2
70 - !net-misc/openswan
71 - !net-vpn/strongswan
72 -"
73 -
74 -usetf() {
75 - usex "$1" true false
76 -}
77 -
78 -src_prepare() {
79 - sed -i -e 's:/sbin/runscript:/sbin/openrc-run:' initsystems/openrc/ipsec.init.in || die
80 - default
81 -}
82 -
83 -src_configure() {
84 - tc-export AR CC
85 - export INC_USRLOCAL=/usr
86 - export INC_MANDIR=share/man
87 - export FINALEXAMPLECONFDIR=/usr/share/doc/${PF}
88 - export FINALDOCDIR=/usr/share/doc/${PF}/html
89 - export INITSYSTEM=openrc
90 - export INC_RCDIRS=
91 - export INC_RCDEFAULT=/etc/init.d
92 - export USERCOMPILE=
93 - export USERLINK=
94 - export USE_DNSSEC=$(usetf dnssec)
95 - export USE_LIBCAP_NG=$(usetf caps)
96 - export USE_LIBCURL=$(usetf curl)
97 - export USE_LDAP=$(usetf ldap)
98 - export USE_SYSTEMD_WATCHDOG=$(usetf systemd)
99 - export SD_WATCHDOGSEC=$(usex systemd 200 0)
100 - export USE_XAUTHPAM=$(usetf pam)
101 - export DEBUG_CFLAGS=
102 - export OPTIMIZE_CFLAGS=
103 - export WERROR_CFLAGS=
104 -}
105 -
106 -src_compile() {
107 - emake all
108 - emake -C initsystems INITSYSTEM=systemd UNITDIR="$(systemd_get_systemunitdir)" all
109 -}
110 -
111 -src_install() {
112 - default
113 - emake -C initsystems INITSYSTEM=systemd UNITDIR="$(systemd_get_systemunitdir)" DESTDIR="${D}" install
114 -
115 - echo "include /etc/ipsec.d/*.secrets" > "${D}"/etc/ipsec.secrets
116 - fperms 0600 /etc/ipsec.secrets
117 -
118 - dodoc -r docs
119 -
120 - find "${D}" -type d -empty -delete || die
121 -}
122 -
123 -pkg_postinst() {
124 - local IPSEC_CONFDIR=${ROOT%/}/etc/ipsec.d
125 - if [[ ! -f ${IPSEC_CONFDIR}/cert8.db ]]; then
126 - ebegin "Setting up NSS database in ${IPSEC_CONFDIR}"
127 - certutil -N -d "${IPSEC_CONFDIR}" -f <(echo)
128 - eend $?
129 - fi
130 -}