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-nds/ypserv/
Date: Tue, 03 May 2016 00:02:46
Message-Id: 1462233715.bc851043c6ccda2ae8a021990e6ef15f55d90290.wizardedit@gentoo
1 commit: bc851043c6ccda2ae8a021990e6ef15f55d90290
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 3 00:01:55 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Tue May 3 00:01:55 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc851043
7
8 net-nds/ypserv: remove old ebuild
9
10 Package-Manager: portage-2.2.26
11
12 net-nds/ypserv/ypserv-2.26.ebuild | 77 ---------------------------------------
13 1 file changed, 77 deletions(-)
14
15 diff --git a/net-nds/ypserv/ypserv-2.26.ebuild b/net-nds/ypserv/ypserv-2.26.ebuild
16 deleted file mode 100644
17 index 8eaa642..0000000
18 --- a/net-nds/ypserv/ypserv-2.26.ebuild
19 +++ /dev/null
20 @@ -1,77 +0,0 @@
21 -# Copyright 1999-2012 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -# $Id$
24 -
25 -EAPI="4"
26 -
27 -inherit autotools
28 -
29 -DESCRIPTION="Network Information Service server"
30 -HOMEPAGE="http://www.linux-nis.org/nis/"
31 -SRC_URI="mirror://kernel/linux/utils/net/NIS/${P}.tar.bz2"
32 -
33 -LICENSE="GPL-2"
34 -SLOT="0"
35 -KEYWORDS="amd64 ppc ppc64 x86"
36 -IUSE="slp"
37 -
38 -DEPEND=">=sys-libs/gdbm-1.8.0
39 - slp? ( net-libs/openslp )"
40 -RDEPEND="${DEPEND}
41 - || ( net-nds/rpcbind net-nds/portmap )"
42 -
43 -src_prepare() {
44 - # The configure script does not provide a command-line flag to control usage
45 - # of slp. Use a brutal method in case we need to disable it.
46 - if ! use slp; then
47 - sed -i -e 's/USE_SLP=1/USE_SLP=0/g' configure.in || die
48 - eautoreconf
49 - fi
50 -}
51 -
52 -src_install() {
53 - default
54 - dodoc AUTHORS ChangeLog NEWS README THANKS TODO
55 -
56 - insinto /etc
57 - doins etc/ypserv.conf etc/netgroup etc/netmasks
58 - insinto /var/yp
59 - newins etc/securenets securenets.default
60 -
61 - newconfd "${FILESDIR}/ypserv.confd" ypserv
62 - newconfd "${FILESDIR}/rpc.yppasswdd.confd" rpc.yppasswdd
63 - newconfd "${FILESDIR}/rpc.ypxfrd.confd" rpc.ypxfrd
64 -
65 - newinitd "${FILESDIR}/ypserv" ypserv
66 - newinitd "${FILESDIR}/rpc.yppasswdd-r1" rpc.yppasswdd
67 - newinitd "${FILESDIR}/rpc.ypxfrd-2.23" rpc.ypxfrd
68 -
69 - echo "CONFIG_PROTECT=\"/var/yp/Makefile\"" > "${T}"/10ypserv
70 - doenvd "${T}"/10ypserv
71 -}
72 -
73 -pkg_preinst() {
74 - # This ebuilds installs an env file which CONFIG_PROTECTs /var/yp/Makefile,
75 - # but if the user is migrating from older ypserv, this won't take effect
76 - # immediately. Keep the older setup with Makefile.dist file and ask the user
77 - # to migrate.
78 - if [ -f "${ROOT}/var/yp/Makefile.dist" ]; then
79 - mv "${D}/var/yp/Makefile" "${D}/var/yp/Makefile.dist" \
80 - || die "mv failed"
81 - cp "${ROOT}/var/yp/Makefile" "${D}/var/yp/Makefile" \
82 - || die "cp failed"
83 - elog "Please remove ${ROOT}/var/yp/Makefile.dist after making sure that"
84 - elog "${ROOT}/var/yp/Makefile looks fine to you. It is now"
85 - elog "CONFIG_PROTECTed, so further changes should be managed with"
86 - elog "usual config management tools like etc-update or dispatch-conf."
87 - fi
88 -}
89 -
90 -pkg_postinst() {
91 - einfo "To complete setup, you will need to edit /var/yp/securenets,"
92 - einfo "/etc/conf.d/ypserv, /etc/ypserv.conf, /etc/conf.d/rpc.yppasswdd"
93 - einfo "and possibly /var/yp/Makefile."
94 -
95 - einfo "To start the services at boot, you need to enable ypserv and optionally"
96 - einfo "the rpc.yppasswdd and/or rpc.ypxfrd services"
97 -}