Gentoo Archives: gentoo-commits

From: "Mike Gilbert (floppym)" <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dialup/xl2tpd: xl2tpd-1.3.1-r3.ebuild ChangeLog
Date: Mon, 29 Jul 2013 00:01:51
Message-Id: 20130729000143.C63F62171D@flycatcher.gentoo.org
1 floppym 13/07/29 00:01:43
2
3 Modified: ChangeLog
4 Added: xl2tpd-1.3.1-r3.ebuild
5 Log:
6 Install systemd unit, bug 477800 by nE0sIghT.
7
8 (Portage version: 2.2.0_alpha190/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
9
10 Revision Changes Path
11 1.38 net-dialup/xl2tpd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/xl2tpd/ChangeLog?rev=1.38&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/xl2tpd/ChangeLog?rev=1.38&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/xl2tpd/ChangeLog?r1=1.37&r2=1.38
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-dialup/xl2tpd/ChangeLog,v
20 retrieving revision 1.37
21 retrieving revision 1.38
22 diff -u -r1.37 -r1.38
23 --- ChangeLog 13 Feb 2013 15:19:30 -0000 1.37
24 +++ ChangeLog 29 Jul 2013 00:01:43 -0000 1.38
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-dialup/xl2tpd
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/xl2tpd/ChangeLog,v 1.37 2013/02/13 15:19:30 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/xl2tpd/ChangeLog,v 1.38 2013/07/29 00:01:43 floppym Exp $
30 +
31 +*xl2tpd-1.3.1-r3 (29 Jul 2013)
32 +
33 + 29 Jul 2013; Mike Gilbert <floppym@g.o> +files/xl2tpd.conf,
34 + +files/xl2tpd.service, +xl2tpd-1.3.1-r3.ebuild:
35 + Install systemd unit, bug 477800 by nE0sIghT.
36
37 13 Feb 2013; Agostino Sarubbo <ago@g.o> xl2tpd-1.3.1-r2.ebuild:
38 Stable for x86, wrt to bug #454694
39
40
41
42 1.1 net-dialup/xl2tpd/xl2tpd-1.3.1-r3.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/xl2tpd/xl2tpd-1.3.1-r3.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/xl2tpd/xl2tpd-1.3.1-r3.ebuild?rev=1.1&content-type=text/plain
46
47 Index: xl2tpd-1.3.1-r3.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-dialup/xl2tpd/xl2tpd-1.3.1-r3.ebuild,v 1.1 2013/07/29 00:01:43 floppym Exp $
52
53 EAPI="5"
54
55 inherit eutils systemd toolchain-funcs vcs-snapshot
56
57 DESCRIPTION="A modern version of the Layer 2 Tunneling Protocol (L2TP) daemon"
58 HOMEPAGE="http://www.xelerance.com/services/software/xl2tpd/"
59 SRC_URI="https://github.com/xelerance/${PN}/tarball/v${PV} -> ${P}.tar.gz"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~ppc ~x86"
64 IUSE="dnsretry +kernel"
65
66 DEPEND="net-libs/libpcap"
67 RDEPEND="${DEPEND}
68 net-dialup/ppp"
69 DEPEND+=" kernel? ( >=sys-kernel/linux-headers-2.6.23 )"
70
71 src_prepare() {
72 epatch "${FILESDIR}/${PN}-1.3.0-LDFLAGS.patch"
73 epatch "${FILESDIR}/${PN}-1.3.1-CFLAGS.patch"
74 epatch "${FILESDIR}/${PN}-1.3.1-no-type-punning-b119c0da.patch"
75 epatch "${FILESDIR}/${PN}-1.3.1-kernelmode.patch"
76 sed -i Makefile -e 's| -O2||g' || die "sed Makefile"
77 # The below patch is questionable. Why wasn't it submitted upstream? If it
78 # ever breaks, it will just be removed. -darkside 20120914
79 use dnsretry && epatch "${FILESDIR}/${PN}-dnsretry.patch"
80 # Remove bundled headers
81 rm -r linux || die
82 }
83
84 src_compile() {
85 tc-export CC
86 export OSFLAGS="-DLINUX"
87 use kernel && OSFLAGS+=" -DUSE_KERNEL"
88 emake
89 }
90
91 src_install() {
92 emake PREFIX=/usr DESTDIR="${D}" install
93 dodoc CREDITS README.xl2tpd BUGS CHANGES TODO doc/README.patents doc/rfc2661.txt
94 insinto /etc/xl2tpd
95 newins doc/l2tpd.conf.sample l2tpd.conf
96 newins doc/l2tp-secrets.sample l2tp-secrets
97 fperms 0600 /etc/xl2tpd/l2tp-secrets
98 newinitd "${FILESDIR}"/xl2tpd-init-r1 xl2tpd
99 systemd_dounit "${FILESDIR}"/xl2tpd.service
100 systemd_dotmpfilesd "${FILESDIR}"/xl2tpd.conf
101 }