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/dwun/files/, net-dialup/dwun/
Date: Thu, 28 Apr 2016 22:00:27
Message-Id: 1461880772.15b2f7e60003b468a57af486278c7a396b9ca4a2.wizardedit@gentoo
1 commit: 15b2f7e60003b468a57af486278c7a396b9ca4a2
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 28 21:19:33 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=15b2f7e6
7
8 net-dialup/dwun: 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/dwun/dwun-0.96e-r4.ebuild | 46 ++++++++++++++++++++++++++++++++++++
15 net-dialup/dwun/files/dwun | 4 ++--
16 2 files changed, 48 insertions(+), 2 deletions(-)
17
18 diff --git a/net-dialup/dwun/dwun-0.96e-r4.ebuild b/net-dialup/dwun/dwun-0.96e-r4.ebuild
19 new file mode 100644
20 index 0000000..60b23b9
21 --- /dev/null
22 +++ b/net-dialup/dwun/dwun-0.96e-r4.ebuild
23 @@ -0,0 +1,46 @@
24 +# Copyright 1999-2016 Gentoo Foundation
25 +# Distributed under the terms of the GNU General Public License v2
26 +# $Id$
27 +
28 +EAPI=6
29 +
30 +inherit toolchain-funcs
31 +
32 +DESCRIPTION="Dialer Without a Useful Name (DWUN)"
33 +HOMEPAGE="http://dwun.sourceforge.net/"
34 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
35 +
36 +LICENSE="MIT GPL-2" # GPL-2 only for init script
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~x86"
39 +
40 +DOCS=( AUTHORS ChangeLog QUICKSTART README TODO UPGRADING )
41 +
42 +src_prepare() {
43 + sed -i -e "s:TODO QUICKSTART README UPGRADING ChangeLog COPYING AUTHORS::" Makefile.in || die
44 + tc-export CC
45 +
46 + eapply_user
47 +}
48 +
49 +src_configure() {
50 + econf --with-docdir="share/doc/${PF}"
51 +}
52 +
53 +src_install() {
54 + default
55 +
56 + insinto /etc
57 + newins doc/examples/complete-rcfile dwunrc
58 + newins debian/dwunauth dwunauth
59 + newinitd "${FILESDIR}/dwun" dwun
60 +}
61 +
62 +pkg_postinst() {
63 + elog
64 + elog 'Make sure you have "net-dialup/ppp" merged if you intend to use dwun'
65 + elog "to control a standard PPP network link."
66 + elog "See /usr/share/doc/${P}/QUICKSTART for instructions on"
67 + elog "configuring dwun."
68 + elog
69 +}
70
71 diff --git a/net-dialup/dwun/files/dwun b/net-dialup/dwun/files/dwun
72 index a645220..d076f9e 100644
73 --- a/net-dialup/dwun/files/dwun
74 +++ b/net-dialup/dwun/files/dwun
75 @@ -1,5 +1,5 @@
76 -#!/sbin/runscript
77 -# Copyright 1999-2014 Gentoo Foundation
78 +#!/sbin/openrc-run
79 +# Copyright 1999-2016 Gentoo Foundation
80 # Distributed under the terms of the GNU General Public License v2
81 # $Id$