1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit readme.gentoo toolchain-funcs unpacker
9 DESCRIPTION="Synchronize local workstation with time offered by remote webservers"
10 HOMEPAGE="http://www.vervest.org/fiki/bin/view/HTP/DownloadC"
11 SRC_URI="http://www.vervest.org/htp/archive/c/${P}.tar.gz"
15 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~s390 ~sh ~x86 ~amd64-linux ~x86-linux"
20 DOC_CONTENTS="If you would like to run htpdate as a daemon, set
21 appropriate http servers in /etc/conf.d/htpdate!"
24 # Use more standard adjtimex() to fix uClibc builds.
25 sed -i 's:ntp_adjtime:adjtimex:g' htpdate.[8c] || die
29 emake CFLAGS="-Wall ${CFLAGS} ${LDFLAGS}" CC="$(tc-getCC)"
35 dodoc README Changelog
37 newconfd "${FILESDIR}"/htpdate.conf htpdate
38 newinitd "${FILESDIR}"/htpdate.init-r1 htpdate
40 readme.gentoo_create_doc