1 |
commit: c897bebf137568c890a8549e62cbe4dcca462164 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 2 23:55:30 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 2 23:55:30 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c897bebf |
7 |
|
8 |
net-nds/ypbind: 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-nds/ypbind/files/ypbind.initd | 4 +-- |
15 |
net-nds/ypbind/ypbind-1.37.2-r1.ebuild | 65 ++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 67 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/net-nds/ypbind/files/ypbind.initd b/net-nds/ypbind/files/ypbind.initd |
19 |
index 26d5d9a..5642e3d 100644 |
20 |
--- a/net-nds/ypbind/files/ypbind.initd |
21 |
+++ b/net-nds/ypbind/files/ypbind.initd |
22 |
@@ -1,5 +1,5 @@ |
23 |
-#!/sbin/runscript |
24 |
-# Copyright 1999-2004 Gentoo Foundation |
25 |
+#!/sbin/openrc-run |
26 |
+# Copyright 1999-2016 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
# $Id$ |
29 |
|
30 |
|
31 |
diff --git a/net-nds/ypbind/ypbind-1.37.2-r1.ebuild b/net-nds/ypbind/ypbind-1.37.2-r1.ebuild |
32 |
new file mode 100644 |
33 |
index 0000000..8531a4c |
34 |
--- /dev/null |
35 |
+++ b/net-nds/ypbind/ypbind-1.37.2-r1.ebuild |
36 |
@@ -0,0 +1,65 @@ |
37 |
+# Copyright 1999-2016 Gentoo Foundation |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+# $Id$ |
40 |
+ |
41 |
+EAPI=5 |
42 |
+inherit readme.gentoo systemd |
43 |
+ |
44 |
+MY_P=${PN}-mt-${PV} |
45 |
+S="${WORKDIR}/${MY_P}" |
46 |
+ |
47 |
+DESCRIPTION="Multithreaded NIS bind service (ypbind-mt)" |
48 |
+HOMEPAGE="http://www.linux-nis.org/nis/ypbind-mt/index.html" |
49 |
+SRC_URI="http://www.linux-nis.org/download/ypbind-mt/${MY_P}.tar.bz2" |
50 |
+ |
51 |
+LICENSE="GPL-2" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86" |
54 |
+IUSE="debug dbus nls slp systemd" |
55 |
+ |
56 |
+RDEPEND=" |
57 |
+ debug? ( dev-libs/dmalloc ) |
58 |
+ dbus? ( dev-libs/dbus-glib ) |
59 |
+ slp? ( net-libs/openslp ) |
60 |
+ systemd? ( |
61 |
+ net-nds/rpcbind |
62 |
+ >=net-nds/yp-tools-2.12-r1 |
63 |
+ sys-apps/systemd ) |
64 |
+ !systemd? ( |
65 |
+ net-nds/yp-tools |
66 |
+ || ( net-nds/portmap net-nds/rpcbind ) ) |
67 |
+" |
68 |
+DEPEND="${RDEPEND} |
69 |
+ nls? ( sys-devel/gettext ) |
70 |
+" |
71 |
+ |
72 |
+DOC_CONTENTS=" |
73 |
+ If you are using dhcpcd, be sure to add the -Y option to |
74 |
+ dhcpcd_eth0 (or eth1, etc.) to keep dhcpcd from clobbering |
75 |
+ /etc/yp.conf. |
76 |
+" |
77 |
+ |
78 |
+src_prepare() { |
79 |
+ ! use systemd && export ac_cv_header_systemd_sd_daemon_h=no |
80 |
+} |
81 |
+ |
82 |
+src_configure() { |
83 |
+ econf \ |
84 |
+ $(use_enable nls) \ |
85 |
+ $(use_enable slp) \ |
86 |
+ $(use_with debug dmalloc) \ |
87 |
+ $(use_enable dbus dbus-nm) |
88 |
+} |
89 |
+ |
90 |
+src_install() { |
91 |
+ default |
92 |
+ |
93 |
+ insinto /etc |
94 |
+ newins etc/yp.conf yp.conf.example |
95 |
+ |
96 |
+ newconfd "${FILESDIR}/ypbind.confd-r1" ypbind |
97 |
+ newinitd "${FILESDIR}/ypbind.initd" ypbind |
98 |
+ use systemd && systemd_dounit "${FILESDIR}/ypbind.service" |
99 |
+ |
100 |
+ readme.gentoo_create_doc |
101 |
+} |