From d16f71a7fd7e2bb9fc44d81284681719a4c37707 Mon Sep 17 00:00:00 2001 From: "Andreas K. Hüttel" Date: Wed, 1 Nov 2017 20:03:52 +0100 Subject: sys-libs/pwdb: Add missing dependency on libnsl, bug 630410 Closes: https://bugs.gentoo.org/630410 Package-Manager: Portage-2.3.13, Repoman-2.3.4 --- sys-libs/pwdb/pwdb-0.62-r1.ebuild | 58 +++++++++++++++++++++++++++++++++++++++ sys-libs/pwdb/pwdb-0.62.ebuild | 57 -------------------------------------- 2 files changed, 58 insertions(+), 57 deletions(-) create mode 100644 sys-libs/pwdb/pwdb-0.62-r1.ebuild delete mode 100644 sys-libs/pwdb/pwdb-0.62.ebuild (limited to 'sys-libs/pwdb') diff --git a/sys-libs/pwdb/pwdb-0.62-r1.ebuild b/sys-libs/pwdb/pwdb-0.62-r1.ebuild new file mode 100644 index 000000000000..036cbd1cd4e3 --- /dev/null +++ b/sys-libs/pwdb/pwdb-0.62-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils toolchain-funcs flag-o-matic + +DESCRIPTION="Password database" +HOMEPAGE="https://packages.gentoo.org/package/sys-libs/pwdb" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="|| ( BSD GPL-2 )" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" +IUSE="selinux" +RESTRICT="test" #122603 + +# Note: NIS could probably be made conditional if anyone cared ... +RDEPEND="selinux? ( sys-libs/libselinux ) + net-libs/libnsl:0= + net-libs/libtirpc" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-build.patch + + use selinux && epatch "${FILESDIR}"/${P}-selinux.patch + + append-cppflags $($(tc-getPKG_CONFIG) --cflags libtirpc) + export LDLIBS=$($(tc-getPKG_CONFIG) --libs libtirpc) + + sed -i \ + -e "s/^DIRS = .*/DIRS = libpwdb/" \ + -e "s:EXTRAS += :EXTRAS += ${CFLAGS} :" \ + Makefile || die + sed -i \ + -e "s:=gcc:=$(tc-getCC):g" \ + -e "s:=ar:=$(tc-getAR):g" \ + -e "s:=ranlib:=$(tc-getRANLIB):g" \ + default.defs || die +} + +src_install() { + dodir /usr/$(get_libdir) /usr/include/pwdb + emake \ + INCLUDED="${D}"/usr/include/pwdb \ + LIBDIR="${D}"/usr/$(get_libdir) \ + LDCONFIG="echo" \ + install + + gen_usr_ldscript -a pwdb + + insinto /etc + doins conf/pwdb.conf + + dodoc CHANGES CREDITS README doc/*.txt + dohtml -r doc/html/* +} diff --git a/sys-libs/pwdb/pwdb-0.62.ebuild b/sys-libs/pwdb/pwdb-0.62.ebuild deleted file mode 100644 index 28bcc00b9e71..000000000000 --- a/sys-libs/pwdb/pwdb-0.62.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="4" - -inherit eutils toolchain-funcs flag-o-matic - -DESCRIPTION="Password database" -HOMEPAGE="https://packages.gentoo.org/package/sys-libs/pwdb" -SRC_URI="mirror://gentoo/${P}.tar.gz" - -LICENSE="|| ( BSD GPL-2 )" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" -IUSE="selinux" -RESTRICT="test" #122603 - -# Note: NIS could probably be made conditional if anyone cared ... -RDEPEND="selinux? ( sys-libs/libselinux ) - net-libs/libtirpc" -DEPEND="${RDEPEND}" - -src_prepare() { - epatch "${FILESDIR}"/${P}-build.patch - - use selinux && epatch "${FILESDIR}"/${P}-selinux.patch - - append-cppflags $($(tc-getPKG_CONFIG) --cflags libtirpc) - export LDLIBS=$($(tc-getPKG_CONFIG) --libs libtirpc) - - sed -i \ - -e "s/^DIRS = .*/DIRS = libpwdb/" \ - -e "s:EXTRAS += :EXTRAS += ${CFLAGS} :" \ - Makefile || die - sed -i \ - -e "s:=gcc:=$(tc-getCC):g" \ - -e "s:=ar:=$(tc-getAR):g" \ - -e "s:=ranlib:=$(tc-getRANLIB):g" \ - default.defs || die -} - -src_install() { - dodir /usr/$(get_libdir) /usr/include/pwdb - emake \ - INCLUDED="${D}"/usr/include/pwdb \ - LIBDIR="${D}"/usr/$(get_libdir) \ - LDCONFIG="echo" \ - install - - gen_usr_ldscript -a pwdb - - insinto /etc - doins conf/pwdb.conf - - dodoc CHANGES CREDITS README doc/*.txt - dohtml -r doc/html/* -} -- cgit v1.2.3-65-gdbad