1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit systemd toolchain-funcs
8 DESCRIPTION="simple & stable nscd replacement"
9 HOMEPAGE="https://busybox.net/~vda/unscd/README"
10 SRC_URI="https://busybox.net/~vda/unscd/nscd-${PV}.c"
14 KEYWORDS="~amd64 ~x86"
17 RDEPEND="sys-libs/glibc[nscd(+)]"
23 cp "${DISTDIR}"/nscd-${PV}.c ${PN}.c || die
32 newinitd "${FILESDIR}"/unscd.initd-r1 unscd
33 systemd_newtmpfilesd "${FILESDIR}"/unscd-tmpfiles.conf unscd.conf
34 systemd_dounit "${FILESDIR}"/unscd.service