1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="musl-nscd is an implementation of the NSCD protocol for the musl libc"
9 HOMEPAGE="https://github.com/pikhq/musl-nscd"
11 if [[ ${PV} == "9999" ]] ; then
13 EGIT_REPO_URI="https://github.com/pikhq/musl-nscd"
16 SRC_URI="https://github.com/pikhq/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
17 KEYWORDS="~amd64 ~x86"
31 sed -i '/LDFLAGS_AUTO=-s/d' configure || die 'Cannot patch configure file'
36 emake DESTDIR="${D}" install-headers
38 emake DESTDIR="${D}" install
40 newinitd "${FILESDIR}"/nscd.initd nscd
41 systemd_dounit "${FILESDIR}"/nscd.service
42 systemd_newtmpfilesd "${FILESDIR}"/nscd.tmpfilesd nscd.conf