Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dialup/rp-l2tp/files/, net-dialup/rp-l2tp/
Date: Mon, 02 Apr 2018 10:21:51
Message-Id: 1522663336.a7305139e77019c29d1419498b769f0564e363ba.pacho@gentoo
1 commit: a7305139e77019c29d1419498b769f0564e363ba
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 2 10:02:16 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 2 10:02:16 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7305139
7
8 net-dialup/rp-l2tp: Fix parallel build (#567744 by Felix Janda)
9
10 Package-Manager: Portage-2.3.27, Repoman-2.3.9
11
12 net-dialup/rp-l2tp/files/rp-l2tp-0.4-build.patch | 12 ++++++------
13 .../rp-l2tp/files/rp-l2tp-0.4-parallel-build.patch | 12 ++++++++++++
14 net-dialup/rp-l2tp/rp-l2tp-0.4-r4.ebuild | 22 ++++++++++++----------
15 3 files changed, 30 insertions(+), 16 deletions(-)
16
17 diff --git a/net-dialup/rp-l2tp/files/rp-l2tp-0.4-build.patch b/net-dialup/rp-l2tp/files/rp-l2tp-0.4-build.patch
18 index 7bb534b6794..6ba8630e43d 100644
19 --- a/net-dialup/rp-l2tp/files/rp-l2tp-0.4-build.patch
20 +++ b/net-dialup/rp-l2tp/files/rp-l2tp-0.4-build.patch
21 @@ -1,5 +1,5 @@
22 ---- Makefile.in.orig 2014-06-24 15:20:47.028342728 +0400
23 -+++ Makefile.in 2014-06-24 15:21:07.468320934 +0400
24 +--- a/Makefile.in.orig 2014-06-24 15:20:47.028342728 +0400
25 ++++ b/Makefile.in 2014-06-24 15:21:07.468320934 +0400
26 @@ -39,8 +39,8 @@
27
28 libl2tp.a: $(OBJS)
29 @@ -11,8 +11,8 @@
30
31 l2tpd: libl2tp.a libevent/libevent.a
32 $(MAKE) -C handlers
33 ---- libevent/Makefile.in.orig 2002-09-30 23:45:00.000000000 +0400
34 -+++ libevent/Makefile.in 2014-06-24 15:24:31.535105268 +0400
35 +--- a/libevent/Makefile.in.orig 2002-09-30 23:45:00.000000000 +0400
36 ++++ b/libevent/Makefile.in 2014-06-24 15:24:31.535105268 +0400
37 @@ -18,20 +18,20 @@
38
39 libevent.a: $(OBJS)
40 @@ -39,8 +39,8 @@
41
42 clean: FORCE
43 rm -f *.a *.o *~
44 ---- handlers/Makefile.in.orig 2014-06-24 15:31:35.186667624 +0400
45 -+++ handlers/Makefile.in 2014-06-24 15:32:26.659615281 +0400
46 +--- a/handlers/Makefile.in.orig 2014-06-24 15:31:35.186667624 +0400
47 ++++ b/handlers/Makefile.in 2014-06-24 15:32:26.659615281 +0400
48 @@ -20,19 +20,19 @@
49 all: $(HANDLERS) l2tp-control
50
51
52 diff --git a/net-dialup/rp-l2tp/files/rp-l2tp-0.4-parallel-build.patch b/net-dialup/rp-l2tp/files/rp-l2tp-0.4-parallel-build.patch
53 new file mode 100644
54 index 00000000000..cfbb096bef7
55 --- /dev/null
56 +++ b/net-dialup/rp-l2tp/files/rp-l2tp-0.4-parallel-build.patch
57 @@ -0,0 +1,12 @@
58 +--- a/Makefile.in~ 2018-04-02 11:58:30.000000000 +0200
59 ++++ b/Makefile.in 2018-04-02 12:00:15.173470572 +0200
60 +@@ -42,8 +42,7 @@
61 + $(AR) -rc $@ $^
62 + @RANLIB@ $@ || true
63 +
64 +-l2tpd: libl2tp.a libevent/libevent.a
65 +- $(MAKE) -C handlers
66 ++l2tpd: libl2tp.a libevent/libevent.a handlers
67 + @CC@ $(LDFLAGS) -o l2tpd -rdynamic $(OBJS) $(EXTRA_LIBS)
68 +
69 + libevent/libevent.a:
70
71 diff --git a/net-dialup/rp-l2tp/rp-l2tp-0.4-r4.ebuild b/net-dialup/rp-l2tp/rp-l2tp-0.4-r4.ebuild
72 index cfe036f1c58..7d468429c0a 100644
73 --- a/net-dialup/rp-l2tp/rp-l2tp-0.4-r4.ebuild
74 +++ b/net-dialup/rp-l2tp/rp-l2tp-0.4-r4.ebuild
75 @@ -1,9 +1,8 @@
76 -# Copyright 1999-2016 Gentoo Foundation
77 +# Copyright 1999-2018 Gentoo Foundation
78 # Distributed under the terms of the GNU General Public License v2
79
80 -EAPI=5
81 -
82 -inherit eutils toolchain-funcs
83 +EAPI=6
84 +inherit toolchain-funcs
85
86 DESCRIPTION="User-space implementation of L2TP for Linux and other UNIX systems"
87 HOMEPAGE="https://sourceforge.net/projects/rp-l2tp/"
88 @@ -13,19 +12,22 @@ LICENSE="GPL-2"
89 KEYWORDS="amd64 ~ppc x86"
90 SLOT="0"
91
92 +PATCHES=(
93 + "${FILESDIR}/${P}-gentoo.patch"
94 + "${FILESDIR}/${P}-flags.patch"
95 + "${FILESDIR}/${P}-build.patch"
96 + "${FILESDIR}/${P}-parallel-build.patch"
97 +)
98 +
99 src_prepare() {
100 tc-export AR CC RANLIB
101 - epatch \
102 - "${FILESDIR}/${P}-gentoo.patch" \
103 - "${FILESDIR}/${P}-flags.patch" \
104 - "${FILESDIR}/${P}-build.patch"
105 - epatch_user
106 + default
107 }
108
109 src_install() {
110 emake RPM_INSTALL_ROOT="${D}" install
111
112 - dodoc README
113 + einstalldocs
114 newdoc l2tp.conf rp-l2tpd.conf
115 docinto libevent
116 dodoc libevent/Doc/*