diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2011-07-11 04:56:32 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2011-07-11 04:56:32 +0000 |
commit | 12e8f7d70f82d2287ec6cfa989f399ebf505b883 (patch) | |
tree | 8ba8dca53856323595edb43e04f2fbef99f4e789 /net-misc/ntp | |
parent | Missed contact line for previous commit. (diff) | |
download | historical-12e8f7d70f82d2287ec6cfa989f399ebf505b883.tar.gz historical-12e8f7d70f82d2287ec6cfa989f399ebf505b883.tar.bz2 historical-12e8f7d70f82d2287ec6cfa989f399ebf505b883.zip |
Bug #374613: to get proper parse-clocks support, the pps-tools package is needed.
Package-Manager: portage-2.2.0_alpha43/cvs/Linux x86_64
Diffstat (limited to 'net-misc/ntp')
-rw-r--r-- | net-misc/ntp/ChangeLog | 8 | ||||
-rw-r--r-- | net-misc/ntp/Manifest | 13 | ||||
-rw-r--r-- | net-misc/ntp/ntp-4.2.6_p3-r1.ebuild | 122 |
3 files changed, 131 insertions, 12 deletions
diff --git a/net-misc/ntp/ChangeLog b/net-misc/ntp/ChangeLog index e58ff3cfc002..d1e825402d0a 100644 --- a/net-misc/ntp/ChangeLog +++ b/net-misc/ntp/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/ntp # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/ChangeLog,v 1.170 2011/06/03 17:51:38 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/ChangeLog,v 1.171 2011/07/11 04:56:32 robbat2 Exp $ + +*ntp-4.2.6_p3-r1 (11 Jul 2011) + + 11 Jul 2011; Robin H. Johnson <robbat2@gentoo.org> +ntp-4.2.6_p3-r1.ebuild: + Bug #374613: to get proper parse-clocks support, the pps-tools package is + needed. 03 Jun 2011; Raúl Porcel <armin76@gentoo.org> ntp-4.2.6_p3.ebuild: alpha/ia64/s390/sh/sparc stable wrt #365097 diff --git a/net-misc/ntp/Manifest b/net-misc/ntp/Manifest index 9e02dd9d6659..bdca2a647cbd 100644 --- a/net-misc/ntp/Manifest +++ b/net-misc/ntp/Manifest @@ -1,6 +1,3 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - AUX man-pages/genmans.sh 2023 RMD160 c33ab937243d683a87693946a2eb6e63ff5df4b6 SHA1 c3bec5cf5481e9b816d0dcb7e5300f374c6c54bc SHA256 8f0867cbb66b30787a75ff1464765bb6d6bf541923c23d4aa33791c5b6b150de AUX man-pages/ntp.conf.5.patch 503 RMD160 f2180ead822ceef3248050e52f8fd4045d88db62 SHA1 8222a771b88002ed119b45f5d19060f9609d4eea SHA256 d26c1006d72d76591588fbd058000596b17b0b9bcbd184d4e6cedbc31c3b1027 AUX man-pages/ntp.xsl 5831 RMD160 3822bda81ff8187ed56e1fdd9725713017e1a375 SHA1 85650d22144dbafa151dd70cb2bd170949075b60 SHA256 8a41227ded8953c90f49022f68bdaba60f9d82fe528d5a93157672c5bf8db03d @@ -21,13 +18,7 @@ DIST ntp-4.2.6p3-manpages.tar.bz2 47797 RMD160 d2f9d88298b2d1966db5c2fab40214576 DIST ntp-4.2.6p3.tar.gz 4270377 RMD160 173c4f9eedb4837e61d7801a6ec7d892549a777c SHA1 1d560cf689054a14e0d7446cb7bab50a92ead647 SHA256 6e84d4ddfa14b911c3ed88463af10867e1fa9b287e7b34d8a02e78be85a7c40e EBUILD ntp-4.2.4_p7-r1.ebuild 3929 RMD160 79032df95a530486a6864f8bcaba9dc51419d60a SHA1 b69855a9d306720af9dd5e320cbe237367f3e488 SHA256 38d473e64d492403d01642f246ae8bb5cfa9856d0e3540984c4026548b137eac EBUILD ntp-4.2.6_p2-r1.ebuild 3900 RMD160 a4b063ab660e5878d35556bb97bdf7d5c5a02428 SHA1 088fb9490e5b1f27b186d0866908cb144b02c854 SHA256 bbca40b3fdb7dd76d6252535c96d877b984cec71f1203c64ee6c731db9c43bf5 +EBUILD ntp-4.2.6_p3-r1.ebuild 3791 RMD160 5fdbc21fa90eb0b261e870da36411432780e65e5 SHA1 7188ddfbd377859218bba3b83e0f77b7221e1891 SHA256 9414094574160f03b7bb145563b06f9ed0a2f016333d9129d7f19dfa39412a38 EBUILD ntp-4.2.6_p3.ebuild 3739 RMD160 1ffea2b1e13744e02538b27ccb88a63248019c51 SHA1 baee094376a980e8d3ec52a147261495c2ce9f1a SHA256 dad25ed57dc050d5d24a5e85838fb9e4237a93f774f0ed283e2f56e13e51c650 -MISC ChangeLog 23230 RMD160 13b7ca07c270d7e83ff66cc37d0f0a2c005b7d5e SHA1 757f02b8b95d7719fda593ff1eb98bb161bb0276 SHA256 261c6e4865d0ae334ec1901a92e006b529aea5a519d947d0d920f4ca996855da +MISC ChangeLog 23427 RMD160 78d24b021083e9324f471394a63f0dd400e28da7 SHA1 b67a3b89fcdb4df13dca3b7f12c276746e037a78 SHA256 049f4440f63c5a0c58e2d6692614dd13b513f00d4b30b77d8c1681b7967c92de MISC metadata.xml 715 RMD160 399981058fa1aae89de79c26de94873c2426ce22 SHA1 ebbfab9333a505a464b4fbcdd61345fb2358e74d SHA256 3f67258fd96d7520138375575b1763e018f22ef8fb87b71acd1f65fffe307de0 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.16 (GNU/Linux) - -iEYEARECAAYFAk3pHzQACgkQuQc30/atMkCA5QCfeaYxOlO+yZX7YXpM3msgTs/L -CSIAoJfiSuXkI5PQxs1NJAW3GLwh08EA -=qiIP ------END PGP SIGNATURE----- diff --git a/net-misc/ntp/ntp-4.2.6_p3-r1.ebuild b/net-misc/ntp/ntp-4.2.6_p3-r1.ebuild new file mode 100644 index 000000000000..c705059e5956 --- /dev/null +++ b/net-misc/ntp/ntp-4.2.6_p3-r1.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/ntp-4.2.6_p3-r1.ebuild,v 1.1 2011/07/11 04:56:32 robbat2 Exp $ + +EAPI="2" + +inherit eutils toolchain-funcs flag-o-matic + +MY_P=${P/_p/p} +DESCRIPTION="Network Time Protocol suite/programs" +HOMEPAGE="http://www.ntp.org/" +SRC_URI="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-${PV:0:3}/${MY_P}.tar.gz + mirror://gentoo/${MY_P}-manpages.tar.bz2" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" +IUSE="caps debug ipv6 openntpd parse-clocks selinux snmp ssl vim-syntax zeroconf" + +DEPEND=">=sys-libs/ncurses-5.2 + >=sys-libs/readline-4.1 + kernel_linux? ( caps? ( sys-libs/libcap ) ) + zeroconf? ( || ( net-dns/avahi[mdnsresponder-compat] net-misc/mDNSResponder ) ) + !openntpd? ( !net-misc/openntpd ) + snmp? ( net-analyzer/net-snmp ) + ssl? ( dev-libs/openssl ) + selinux? ( sec-policy/selinux-ntp ) + parse-clocks? ( net-misc/pps-tools )" +RDEPEND="${DEPEND} + vim-syntax? ( app-vim/ntp-syntax )" +PDEPEND="openntpd? ( net-misc/openntpd )" + +S=${WORKDIR}/${MY_P} + +pkg_setup() { + enewgroup ntp 123 + enewuser ntp 123 -1 /dev/null ntp +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-4.2.4_p5-adjtimex.patch #254030 + epatch "${FILESDIR}"/${PN}-4.2.4_p7-nano.patch #270483 + append-cppflags -D_GNU_SOURCE #264109 +} + +src_configure() { + # avoid libmd5/libelf + export ac_cv_search_MD5Init=no ac_cv_header_md5_h=no + export ac_cv_lib_elf_nlist=no + # blah, no real configure options #176333 + export ac_cv_header_dns_sd_h=$(use zeroconf && echo yes || echo no) + export ac_cv_lib_dns_sd_DNSServiceRegister=${ac_cv_header_dns_sd_h} + econf \ + --with-lineeditlibs=readline,edit,editline \ + $(use_enable caps linuxcaps) \ + $(use_enable parse-clocks) \ + $(use_enable ipv6) \ + $(use_enable debug debugging) \ + $(use_with snmp ntpsnmpd) \ + $(use_with ssl crypto) +} + +src_install() { + emake install DESTDIR="${D}" || die "install failed" + # move ntpd/ntpdate to sbin #66671 + dodir /usr/sbin + mv "${D}"/usr/bin/{ntpd,ntpdate} "${D}"/usr/sbin/ || die "move to sbin" + + dodoc ChangeLog INSTALL NEWS README TODO WHERE-TO-START + doman "${WORKDIR}"/man/*.[58] + dohtml -r html/* + + insinto /usr/share/ntp + doins "${FILESDIR}"/ntp.conf + cp -r scripts/* "${D}"/usr/share/ntp/ || die + fperms -R go-w /usr/share/ntp + find "${D}"/usr/share/ntp \ + '(' \ + -name '*.in' -o \ + -name 'Makefile*' -o \ + -name support \ + ')' \ + -exec rm -r {} \; + + insinto /etc + doins "${FILESDIR}"/ntp.conf + newinitd "${FILESDIR}"/ntpd.rc ntpd + newconfd "${FILESDIR}"/ntpd.confd ntpd + newinitd "${FILESDIR}"/ntp-client.rc ntp-client + newconfd "${FILESDIR}"/ntp-client.confd ntp-client + use caps || dosed "s|-u ntp:ntp||" /etc/conf.d/ntpd + dosed "s:/usr/bin:/usr/sbin:" /etc/init.d/ntpd + + keepdir /var/lib/ntp + fowners ntp:ntp /var/lib/ntp + + if use openntpd ; then + cd "${D}" + rm usr/sbin/ntpd || die + rm -r var/lib + rm etc/{conf,init}.d/ntpd + rm usr/share/man/*/ntpd.8 || die + fi +} + +pkg_postinst() { + ewarn "You can find an example /etc/ntp.conf in /usr/share/ntp/" + ewarn "Review /etc/ntp.conf to setup server info." + ewarn "Review /etc/conf.d/ntpd to setup init.d info." + echo + elog "The way ntp sets and maintains your system time has changed." + elog "Now you can use /etc/init.d/ntp-client to set your time at" + elog "boot while you can use /etc/init.d/ntpd to maintain your time" + elog "while your machine runs" + if grep -qs '^[^#].*notrust' "${ROOT}"/etc/ntp.conf ; then + echo + eerror "The notrust option was found in your /etc/ntp.conf!" + ewarn "If your ntpd starts sending out weird responses," + ewarn "then make sure you have keys properly setup and see" + ewarn "http://bugs.gentoo.org/41827" + fi +} |