# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/clockspeed/clockspeed-0.62-r4.ebuild,v 1.4 2008/01/25 19:58:48 armin76 Exp $ inherit eutils flag-o-matic DESCRIPTION="A simple Network Time Protocol (NTP) client" HOMEPAGE="http://cr.yp.to/clockspeed.html" SRC_URI="http://cr.yp.to/clockspeed/${P}.tar.gz" LICENSE="as-is" SLOT="0" KEYWORDS="~amd64 ~mips x86" IUSE="static selinux" RESTRICT="test" DEPEND="sys-apps/groff" RDEPEND="selinux? ( sec-policy/selinux-clockspeed )" # this is the trailing part of the name for the latest leapseconds file. LEAPSECONDS_DATE="20060525" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/${P}-gentoo.patch echo "$(tc-getCC) ${CFLAGS} ${ASFLAGS}" > conf-cc use static && append-ldflags -static echo "$(tc-getCC) ${LDFLAGS}" > conf-ld } src_install() { dobin clockspeed clockadd clockview sntpclock taiclock taiclockd || die "dobin" dosbin "${FILESDIR}"/ntpclockset || die "dosbin" doman *.1 dodoc BLURB CHANGES INSTALL README THANKS TODO insinto /var/lib/clockspeed newins "${FILESDIR}"/leapsecs.dat."$LEAPSECONDS_DATE" leapsecs.dat }