clockspeed-0.62-r6.ebuild 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright 1999-2013 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit eutils flag-o-matic
  5. DESCRIPTION="A simple Network Time Protocol (NTP) client"
  6. HOMEPAGE="http://cr.yp.to/clockspeed.html"
  7. # this is the trailing part of the name for the latest leapseconds file.
  8. LEAPSECONDS_DATE="20081114"
  9. SRC_URI="http://cr.yp.to/clockspeed/${P}.tar.gz
  10. https://dev.gentoo.org/~pacho/maintainer-needed/leapsecs.dat."$LEAPSECONDS_DATE""
  11. LICENSE="all-rights-reserved"
  12. SLOT="0"
  13. KEYWORDS="amd64 ~mips x86"
  14. IUSE="static selinux"
  15. RESTRICT="mirror bindist test"
  16. DEPEND="sys-apps/groff"
  17. RDEPEND="selinux? ( sec-policy/selinux-clockspeed )
  18. net-dns/djbdns"
  19. src_prepare() {
  20. epatch "${FILESDIR}"/${P}-gentoo.patch
  21. }
  22. src_configure() {
  23. echo "$(tc-getCC) ${CFLAGS} ${ASFLAGS}" > conf-cc
  24. use static && append-ldflags -static
  25. echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
  26. }
  27. src_install() {
  28. dobin clockspeed clockadd clockview sntpclock taiclock taiclockd
  29. dosbin "${FILESDIR}"/ntpclockset
  30. doman *.1
  31. dodoc BLURB CHANGES INSTALL README THANKS TODO
  32. insinto /var/lib/clockspeed
  33. newins "${DISTDIR}"/leapsecs.dat."$LEAPSECONDS_DATE" leapsecs.dat
  34. }