You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.2 KiB
46 lines
1.2 KiB
# Copyright 1999-2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit flag-o-matic toolchain-funcs
|
|
|
|
DESCRIPTION="Simple Network Time Protocol (NTP) client"
|
|
HOMEPAGE="https://cr.yp.to/clockspeed.html"
|
|
|
|
# this is the trailing part of the name for the latest leapseconds file.
|
|
LEAPSECONDS_DATE="20081114"
|
|
|
|
SRC_URI="https://cr.yp.to/clockspeed/${P}.tar.gz
|
|
https://dev.gentoo.org/~pacho/maintainer-needed/leapsecs.dat."$LEAPSECONDS_DATE""
|
|
|
|
# http://cr.yp.to/distributors.html
|
|
LICENSE="public-domain"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~mips x86"
|
|
IUSE="static selinux"
|
|
RESTRICT="mirror bindist test"
|
|
|
|
DEPEND="sys-apps/groff"
|
|
RDEPEND="selinux? ( sec-policy/selinux-clockspeed )
|
|
net-dns/djbdns"
|
|
|
|
PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
|
|
|
|
src_configure() {
|
|
echo "$(tc-getCC) ${CFLAGS} ${ASFLAGS}" > conf-cc || die
|
|
use static && append-ldflags -static
|
|
echo "$(tc-getCC) ${LDFLAGS}" > conf-ld || die
|
|
}
|
|
|
|
src_install() {
|
|
dobin clockspeed clockadd clockview sntpclock taiclock taiclockd
|
|
dosbin "${FILESDIR}"/ntpclockset
|
|
|
|
doman *.1
|
|
dodoc BLURB CHANGES INSTALL README THANKS TODO
|
|
|
|
insinto /var/lib/clockspeed
|
|
newins "${DISTDIR}"/leapsecs.dat."$LEAPSECONDS_DATE" leapsecs.dat
|
|
}
|