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/diald/, net-dialup/diald/files/
Date: Thu, 28 Apr 2016 22:00:29
Message-Id: 1461880772.e7136174409ecbaf4ad4ae2bf7d9a0f965ff645b.wizardedit@gentoo
1 commit: e7136174409ecbaf4ad4ae2bf7d9a0f965ff645b
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 28 21:12:06 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=e7136174
7
8 net-dialup/diald: 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/diald/diald-1.0-r3.ebuild | 59 ++++++++++++++++++++++++++++++++++++
15 net-dialup/diald/files/diald-init | 4 +--
16 2 files changed, 61 insertions(+), 2 deletions(-)
17
18 diff --git a/net-dialup/diald/diald-1.0-r3.ebuild b/net-dialup/diald/diald-1.0-r3.ebuild
19 new file mode 100644
20 index 0000000..35134f1
21 --- /dev/null
22 +++ b/net-dialup/diald/diald-1.0-r3.ebuild
23 @@ -0,0 +1,59 @@
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 eutils autotools pam
31 +
32 +DESCRIPTION="Daemon that provides on demand IP links via SLIP or PPP"
33 +HOMEPAGE="http://diald.sourceforge.net"
34 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
35 +
36 +LICENSE="Old-MIT GPL-2" # GPL-2 only for init script
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~x86"
39 +IUSE="pam"
40 +
41 +DEPEND="pam? ( virtual/pam )
42 + sys-apps/tcp-wrappers"
43 +RDEPEND="${DEPEND}
44 + net-dialup/ppp"
45 +
46 +src_prepare() {
47 + eapply "${FILESDIR}/${P}-posix.patch"
48 + eapply "${FILESDIR}/${P}-gentoo.patch"
49 + if ! use pam; then
50 + eapply "${FILESDIR}/${P}-nopam.patch"
51 + rm "${S}"/README.pam
52 + cd "${S}"
53 + eautoconf
54 + fi
55 + eapply_user
56 +}
57 +
58 +src_install() {
59 + make \
60 + DESTDIR="${D}" \
61 + sysconfdir=/etc \
62 + bindir=/usr/bin \
63 + sbindir=/usr/sbin \
64 + mandir=/usr/share/man \
65 + libdir=/usr/lib/diald \
66 + BINGRP=root \
67 + ROOTUID=root \
68 + ROOTGRP=root \
69 + install || die "make failed"
70 + use pam && pamd_mimic_system diald auth account
71 +
72 + dodir /var/cache/diald
73 + mknod -m 0660 "${D}/var/cache/diald/diald.ctl" p
74 +
75 + dodoc BUGS CHANGES NOTES README* \
76 + THANKS TODO TODO.budget doc/diald-faq.txt
77 + docinto setup ; cp -pPR setup/* "${D}/usr/share/doc/${PF}/setup"
78 + docinto contrib ; cp -pPR contrib/* "${D}/usr/share/doc/${PF}/contrib"
79 +
80 + insinto /etc/diald ; doins "${FILESDIR}"/{diald.conf,diald.filter}
81 + newinitd "${FILESDIR}/diald-init" diald
82 +}
83
84 diff --git a/net-dialup/diald/files/diald-init b/net-dialup/diald/files/diald-init
85 index 6eefde3..e5bed84 100644
86 --- a/net-dialup/diald/files/diald-init
87 +++ b/net-dialup/diald/files/diald-init
88 @@ -1,5 +1,5 @@
89 -#!/sbin/runscript
90 -# Copyright 1999-2004 Gentoo Foundation
91 +#!/sbin/openrc-run
92 +# Copyright 1999-2016 Gentoo Foundation
93 # Distributed under the terms of the GNU General Public License v2
94 # $Id$