Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dialup/pptpd/, net-dialup/pptpd/files/
Date: Thu, 28 Apr 2016 22:00:35
Message-Id: 1461880772.607a7c48f4e29b41999c85e90695c58c31234263.wizardedit@gentoo
1 commit: 607a7c48f4e29b41999c85e90695c58c31234263
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 28 21:49:00 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 28 21:59:32 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=607a7c48
7
8 net-dialup/pptpd: use #!/sbin/openrc-run instead of #!/sbin/runscript
9
10 Gentoo-Bug: https://bugs.gentoo.org/573846
11
12 Package-Manager: portage-2.2.26
13
14 net-dialup/pptpd/files/pptpd-init-r2 | 2 +-
15 net-dialup/pptpd/pptpd-1.4.0-r1.ebuild | 74 ++++++++++++++++++++++++++++++++++
16 2 files changed, 75 insertions(+), 1 deletion(-)
17
18 diff --git a/net-dialup/pptpd/files/pptpd-init-r2 b/net-dialup/pptpd/files/pptpd-init-r2
19 index b1f8d29..6bbf9d6 100644
20 --- a/net-dialup/pptpd/files/pptpd-init-r2
21 +++ b/net-dialup/pptpd/files/pptpd-init-r2
22 @@ -1,4 +1,4 @@
23 -#!/sbin/runscript
24 +#!/sbin/openrc-run
25
26 depend() {
27 need net
28
29 diff --git a/net-dialup/pptpd/pptpd-1.4.0-r1.ebuild b/net-dialup/pptpd/pptpd-1.4.0-r1.ebuild
30 new file mode 100644
31 index 0000000..42f864a
32 --- /dev/null
33 +++ b/net-dialup/pptpd/pptpd-1.4.0-r1.ebuild
34 @@ -0,0 +1,74 @@
35 +# Copyright 1999-2016 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +# $Id$
38 +
39 +EAPI="5"
40 +
41 +inherit autotools eutils flag-o-matic
42 +
43 +DESCRIPTION="Linux Point-to-Point Tunnelling Protocol Server"
44 +HOMEPAGE="http://poptop.sourceforge.net/"
45 +SRC_URI="mirror://sourceforge/poptop/${P}.tar.gz"
46 +
47 +SLOT="0"
48 +LICENSE="GPL-2"
49 +KEYWORDS="amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86"
50 +IUSE="gre-extreme-debug tcpd"
51 +
52 +DEPEND="net-dialup/ppp:=
53 + tcpd? ( sys-apps/tcp-wrappers )"
54 +RDEPEND="${DEPEND}"
55 +
56 +DOCS=( AUTHORS ChangeLog NEWS README TODO )
57 +
58 +src_prepare() {
59 + epatch "${FILESDIR}/${P}-gentoo.patch"
60 + epatch "${FILESDIR}/${P}-sandbox-fix.patch"
61 +
62 + # Match pptpd-logwtmp.so's version with pppd's version (#89895)
63 + local PPPD_VER=`best_version net-dialup/ppp`
64 + PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR}
65 + PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision
66 + sed -i -e "s:\\(#define[ \\t]*VERSION[ \\t]*\\)\".*\":\\1\"${PPPD_VER}\":" plugins/patchlevel.h || die
67 +
68 + # Automake 1.13, compatibility, bug #469476
69 + sed -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADER/' configure.in || die 'sed on configure.ac failed'
70 +
71 + # remove 'missing' script to prevent warnings
72 + rm missing || die 'remove missing script failed'
73 +
74 + # respect compiler, bug #461722
75 + tc-export CC
76 +
77 + # Apply user patches
78 + epatch_user
79 +
80 + eautoreconf
81 +}
82 +
83 +src_configure() {
84 + use gre-extreme-debug && append-cppflags "-DLOG_DEBUG_GRE_ACCEPTING_PACKET"
85 + econf \
86 + --enable-bcrelay \
87 + $(use tcpd && echo "--with-libwrap")
88 +}
89 +
90 +src_compile() {
91 + emake COPTS="${CFLAGS}"
92 +}
93 +
94 +src_install () {
95 + default
96 +
97 + insinto /etc
98 + doins samples/pptpd.conf
99 +
100 + insinto /etc/ppp
101 + doins samples/options.pptpd
102 +
103 + newinitd "${FILESDIR}/pptpd-init-r2" pptpd
104 + newconfd "${FILESDIR}/pptpd-confd" pptpd
105 +
106 + dodoc README.*
107 + dodoc -r samples
108 +}