summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-06-13 08:46:07 +0000
committerSam James <sam@gentoo.org>2021-06-13 11:07:32 +0000
commit837b17a57bac1d271b4a3511772ab8df7e2d58d7 (patch)
treea949bf2856926ec12139fcf47cbb253e888df237 /sys-libs/musl-nscd
parentapp-office/texstudio: drop 3.0.5-r1, 3.1.0-r1 (diff)
downloadgentoo-837b17a57bac1d271b4a3511772ab8df7e2d58d7.tar.gz
gentoo-837b17a57bac1d271b4a3511772ab8df7e2d58d7.tar.bz2
gentoo-837b17a57bac1d271b4a3511772ab8df7e2d58d7.zip
sys-libs/musl-nscd: add 1.0.3
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-libs/musl-nscd')
-rw-r--r--sys-libs/musl-nscd/Manifest1
-rw-r--r--sys-libs/musl-nscd/musl-nscd-1.0.3.ebuild48
2 files changed, 49 insertions, 0 deletions
diff --git a/sys-libs/musl-nscd/Manifest b/sys-libs/musl-nscd/Manifest
index 72daae63035d..1ec7646eb383 100644
--- a/sys-libs/musl-nscd/Manifest
+++ b/sys-libs/musl-nscd/Manifest
@@ -1 +1,2 @@
DIST musl-nscd-1.0.2.tar.gz 44912 BLAKE2B 8a496c941232ba617b8468351cbbb780b1decc2c162210f939abb3baa430a5f5a79e21fcd3aadac2cbe62820452fc18001edc7ebc13cae7a6ab768353c45235f SHA512 45cd73f1e0eee7b32c3dcdfa96c0a11379f6208389b87fee97016af0ecb19e9e7d2a2f10e0df6e5ed8a6ad4bbbef70c01cd31ac3631fb1bcce6e69bf48843a3d
+DIST musl-nscd-1.0.3.tar.gz 45023 BLAKE2B de3985878745497f0f6904efba0ecf1c5d4ab96dd190fe0b776459db946749858821f51e75d457172da75cd68c5bba22143647b269473f35d41e0ab9bbac3e36 SHA512 b931a28d70bbcc19a5b592449e7400ee61d5af93511d44e2e63416010b3938f1d350a965b0ad876699bed406926d3180a0380868279e13d3456e2264c80a4b7d
diff --git a/sys-libs/musl-nscd/musl-nscd-1.0.3.ebuild b/sys-libs/musl-nscd/musl-nscd-1.0.3.ebuild
new file mode 100644
index 000000000000..fb9101f102ec
--- /dev/null
+++ b/sys-libs/musl-nscd/musl-nscd-1.0.3.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit systemd tmpfiles
+
+DESCRIPTION="musl-nscd is an implementation of the NSCD protocol for the musl libc"
+HOMEPAGE="https://github.com/pikhq/musl-nscd"
+
+if [[ ${PV} == *9999 ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/pikhq/musl-nscd"
+ EGIT_BRANCH=master
+else
+ SRC_URI="https://github.com/pikhq/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="minimal"
+
+DEPEND="
+ !sys-libs/glibc
+ !sys-libs/uclibc"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.0.2-fno-common.patch )
+
+src_prepare() {
+ default
+
+ sed -i '/LDFLAGS_AUTO=-s/d' configure || die "Cannot patch configure file"
+}
+
+src_install() {
+ if use minimal; then
+ emake DESTDIR="${D}" install-headers
+ else
+ emake DESTDIR="${D}" install
+
+ newinitd "${FILESDIR}"/nscd.initd nscd
+ systemd_dounit "${FILESDIR}"/nscd.service
+ newtmpfiles "${FILESDIR}"/nscd.tmpfilesd nscd.conf
+
+ dodoc README
+ fi
+}