unscd-0.52-r2.ebuild 721 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit systemd toolchain-funcs
  5. DESCRIPTION="simple & stable nscd replacement"
  6. HOMEPAGE="https://busybox.net/~vda/unscd/README"
  7. SRC_URI="https://busybox.net/~vda/unscd/nscd-${PV}.c"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 x86"
  11. IUSE=""
  12. RDEPEND="sys-libs/glibc[nscd(+)]"
  13. DEPEND="${RDEPEND}"
  14. S=${WORKDIR}
  15. src_unpack() {
  16. cp "${DISTDIR}"/nscd-${PV}.c ${PN}.c || die
  17. }
  18. src_compile() {
  19. tc-export CC
  20. emake unscd
  21. }
  22. src_install() {
  23. newinitd "${FILESDIR}"/unscd.initd-r1 unscd
  24. systemd_newtmpfilesd "${FILESDIR}"/unscd-tmpfiles.conf unscd.conf
  25. systemd_dounit "${FILESDIR}"/unscd.service
  26. dosbin unscd
  27. }