Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/vpnc/files/, net-misc/vpnc/
Date: Wed, 23 Sep 2015 13:04:37
Message-Id: 1443013469.2ae6a66dbaf6fc2440beefff98bc7f30a14128be.jlec@gentoo
1 commit: 2ae6a66dbaf6fc2440beefff98bc7f30a14128be
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 23 12:59:52 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 23 13:04:29 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ae6a66d
7
8 net-misc/vpnc: Drop old
9
10 obsoletes:
11
12 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=380399
13 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=518254
14
15 Package-Manager: portage-2.2.21
16 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
17
18 net-misc/vpnc/Manifest | 1 -
19 .../vpnc/files/vpnc-0.5.3_p514-as-needed.patch | 47 --------------
20 net-misc/vpnc/vpnc-0.5.3_p527-r1.ebuild | 74 ----------------------
21 3 files changed, 122 deletions(-)
22
23 diff --git a/net-misc/vpnc/Manifest b/net-misc/vpnc/Manifest
24 index abd3719..36e1f43 100644
25 --- a/net-misc/vpnc/Manifest
26 +++ b/net-misc/vpnc/Manifest
27 @@ -1,2 +1 @@
28 -DIST vpnc-0.5.3_p527.tar.xz 98740 SHA256 4076e40b3be37ba95c393cc5e21cccf87540e994275bd336a4ec0c6b4c3d54de SHA512 6c657039c4f914b03214912ef3471fae755b4dcbf771c3653ed00d90bb044fa83dbca7a5cda9ac0c9389baae96c658566c8b3f3a4b94c078dda8387935532c9f WHIRLPOOL 61aaf00f63e531eebf3583492f288ee339c446b0a273f1ff5c008dc37ab9f74749ee3c74ea0f110018ef764448c838064de6140743941ff17039e4288cfe66e8
29 DIST vpnc-0.5.3_p550.tar.xz 101860 SHA256 5d7582eb3d7ead3cb0732a404ce10f471a65c48d0bb4cb2dd5c525273bf0f4b5 SHA512 95150c743c61a962c36591bb874c77f2c28f341c0a1290dba4e878a460d22d762dd88f7cfc0aa9d17ace71a8b826d9fd13554c23b5123dee6009e9fffcd2de55 WHIRLPOOL 8194e0dcf2c0bd1910b4b110dd475024d5cc351d86dec58b33811c37f9bcbc2702c4fede861a6318c54dfb7d19ff2d2265da86d573181a02f433e131184b9bd3
30
31 diff --git a/net-misc/vpnc/files/vpnc-0.5.3_p514-as-needed.patch b/net-misc/vpnc/files/vpnc-0.5.3_p514-as-needed.patch
32 deleted file mode 100644
33 index 18bc90a..0000000
34 --- a/net-misc/vpnc/files/vpnc-0.5.3_p514-as-needed.patch
35 +++ /dev/null
36 @@ -1,47 +0,0 @@
37 - Makefile | 12 ++++++------
38 - 1 files changed, 6 insertions(+), 6 deletions(-)
39 -
40 -diff --git a/Makefile b/Makefile
41 -index 270d7e1..578884e 100644
42 ---- a/Makefile
43 -+++ b/Makefile
44 -@@ -60,16 +60,16 @@ BINSRCS = $(addsuffix .c,$(BINS))
45 - VERSION := $(shell sh mk-version)
46 - RELEASE_VERSION := $(shell cat VERSION)
47 -
48 --CC=gcc
49 -+CC?=gcc
50 - CFLAGS ?= -O3 -g
51 - CFLAGS += -W -Wall -Wmissing-declarations -Wwrite-strings
52 - CFLAGS += $(shell libgcrypt-config --cflags) $(CRYPTO_CFLAGS)
53 - CPPFLAGS += -DVERSION=\"$(VERSION)\"
54 - LDFLAGS ?= -g
55 --LDFLAGS += $(shell libgcrypt-config --libs) $(CRYPTO_LDADD)
56 -+LIBS += $(shell libgcrypt-config --libs) $(CRYPTO_LDADD)
57 -
58 - ifeq ($(shell uname -s), SunOS)
59 --LDFLAGS += -lnsl -lresolv -lsocket
60 -+LIBS += -lnsl -lresolv -lsocket
61 - endif
62 - ifneq (,$(findstring Apple,$(shell $(CC) --version)))
63 - # enabled in FSF GCC, disabled by default in Apple GCC
64 -@@ -79,16 +79,16 @@ endif
65 - all : $(BINS) vpnc.8
66 -
67 - vpnc : $(OBJS) vpnc.o
68 -- $(CC) -o $@ $^ $(LDFLAGS)
69 -+ $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
70 -
71 - vpnc.8 : vpnc.8.template makeman.pl vpnc
72 - ./makeman.pl
73 -
74 - cisco-decrypt : cisco-decrypt.o decrypt-utils.o
75 -- $(CC) -o $@ $^ $(LDFLAGS)
76 -+ $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
77 -
78 - test-crypto : sysdep.o test-crypto.o crypto.o $(CRYPTO_OBJS)
79 -- $(CC) -o $@ $^ $(LDFLAGS)
80 -+ $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
81 -
82 - .depend: $(SRCS) $(BINSRCS)
83 - $(CC) -MM $(SRCS) $(BINSRCS) $(CFLAGS) $(CPPFLAGS) > $@
84
85 diff --git a/net-misc/vpnc/vpnc-0.5.3_p527-r1.ebuild b/net-misc/vpnc/vpnc-0.5.3_p527-r1.ebuild
86 deleted file mode 100644
87 index a18a11f..0000000
88 --- a/net-misc/vpnc/vpnc-0.5.3_p527-r1.ebuild
89 +++ /dev/null
90 @@ -1,74 +0,0 @@
91 -# Copyright 1999-2015 Gentoo Foundation
92 -# Distributed under the terms of the GNU General Public License v2
93 -# $Id$
94 -
95 -EAPI=5
96 -
97 -inherit eutils linux-info systemd toolchain-funcs
98 -
99 -DESCRIPTION="Free client for Cisco VPN routing software"
100 -HOMEPAGE="http://www.unix-ag.uni-kl.de/~massar/vpnc/"
101 -SRC_URI="https://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz"
102 -
103 -LICENSE="GPL-2 BSD"
104 -SLOT="0"
105 -KEYWORDS="amd64 arm ppc ppc64 sparc x86"
106 -IUSE="resolvconf +gnutls selinux"
107 -
108 -DEPEND="
109 - dev-lang/perl
110 - dev-libs/libgcrypt:0=
111 - >=sys-apps/iproute2-2.6.19.20061214[-minimal]
112 - gnutls? ( net-libs/gnutls )
113 - !gnutls? ( dev-libs/openssl:0= )"
114 -RDEPEND="${DEPEND}
115 - resolvconf? ( net-dns/openresolv )
116 - selinux? ( sec-policy/selinux-vpn )
117 -"
118 -
119 -RESTRICT="!gnutls? ( bindist )"
120 -
121 -CONFIG_CHECK="~TUN"
122 -
123 -src_prepare() {
124 - if use gnutls; then
125 - elog "Will build with GnuTLS (default) instead of OpenSSL so you may even redistribute binaries."
126 - elog "See the Makefile itself and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440318"
127 - else
128 - sed -i -e '/^#OPENSSL_GPL_VIOLATION/s:#::g' "${S}"/Makefile || die
129 - ewarn "Building SSL support with OpenSSL instead of GnuTLS. This means that"
130 - ewarn "you are not allowed to re-distibute the binaries due to conflicts between BSD license and GPL,"
131 - ewarn "see the vpnc Makefile and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440318"
132 - fi
133 -
134 - epatch "${FILESDIR}"/${PN}-0.5.3_p514-as-needed.patch
135 -
136 - sed -e 's:test/cert0.pem::g' -i Makefile || die
137 -
138 - tc-export CC
139 -
140 - sed \
141 - -e 's:/var/run:/run:g' \
142 - -i ChangeLog config.c TODO || die
143 -}
144 -
145 -src_install() {
146 - emake PREFIX="/usr" DESTDIR="${D}" install
147 - dodoc README TODO VERSION
148 - keepdir /etc/vpnc/scripts.d
149 - newinitd "${FILESDIR}/vpnc-3.init" vpnc
150 - newconfd "${FILESDIR}/vpnc.confd" vpnc
151 - sed -e "s:/usr/local:/usr:" -i "${D}"/etc/vpnc/vpnc-script || die
152 -
153 - systemd_dotmpfilesd "${FILESDIR}"/vpnc-tmpfiles.conf
154 - systemd_newunit "${FILESDIR}"/vpnc.service vpnc@.service
155 -
156 - # COPYING file resides here, should not be installed
157 - rm -rf "${ED}"/usr/share/doc/vpnc/ || die
158 -}
159 -
160 -pkg_postinst() {
161 - elog "You can generate a configuration file from the original Cisco profiles of your"
162 - elog "connection by using /usr/bin/pcf2vpnc to convert the .pcf file"
163 - elog "A guide is available at https://wiki.gentoo.org/wiki/Vpnc"
164 -}