Gentoo Archives: gentoo-commits

From: "Christoph Junghans (ottxor)" <ottxor@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/openntpd: openntpd-20080406-r6.ebuild ChangeLog openntpd-20080406-r5.ebuild
Date: Mon, 02 Dec 2013 13:32:22
Message-Id: 20131202133213.8A4F720005@flycatcher.gentoo.org
1 ottxor 13/12/02 13:32:13
2
3 Modified: ChangeLog
4 Added: openntpd-20080406-r6.ebuild
5 Removed: openntpd-20080406-r5.ebuild
6 Log:
7 added pidfile support (bug #493082), fixed ignored NTPD_OPTS for USE=syslog (bug #493032)
8
9 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key C2000586)
10
11 Revision Changes Path
12 1.97 net-misc/openntpd/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openntpd/ChangeLog?rev=1.97&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openntpd/ChangeLog?rev=1.97&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openntpd/ChangeLog?r1=1.96&r2=1.97
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-misc/openntpd/ChangeLog,v
21 retrieving revision 1.96
22 retrieving revision 1.97
23 diff -u -r1.96 -r1.97
24 --- ChangeLog 1 Dec 2013 21:07:36 -0000 1.96
25 +++ ChangeLog 2 Dec 2013 13:32:13 -0000 1.97
26 @@ -1,6 +1,15 @@
27 # ChangeLog for net-misc/openntpd
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-misc/openntpd/ChangeLog,v 1.96 2013/12/01 21:07:36 ottxor Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-misc/openntpd/ChangeLog,v 1.97 2013/12/02 13:32:13 ottxor Exp $
31 +
32 +*openntpd-20080406-r6 (02 Dec 2013)
33 +
34 + 02 Dec 2013; Christoph Junghans <ottxor@g.o>
35 + +files/openntpd-20080406-pidfile.patch, +files/openntpd.conf.d-20080406-r6,
36 + +files/openntpd.init.d-20080406-r6, +openntpd-20080406-r6.ebuild,
37 + -openntpd-20080406-r5.ebuild:
38 + added pidfile support (bug #493082), fixed ignored NTPD_OPTS for USE=syslog
39 + (bug #493032)
40
41 01 Dec 2013; Christoph Junghans <ottxor@g.o>
42 openntpd-20080406-r5.ebuild:
43
44
45
46 1.1 net-misc/openntpd/openntpd-20080406-r6.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openntpd/openntpd-20080406-r6.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openntpd/openntpd-20080406-r6.ebuild?rev=1.1&content-type=text/plain
50
51 Index: openntpd-20080406-r6.ebuild
52 ===================================================================
53 # Copyright 1999-2013 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/net-misc/openntpd/openntpd-20080406-r6.ebuild,v 1.1 2013/12/02 13:32:13 ottxor Exp $
56
57 EAPI=5
58
59 inherit autotools eutils toolchain-funcs systemd user
60
61 MY_P="${P/-/_}p"
62 DEB_VER="6"
63 DESCRIPTION="Lightweight NTP server ported from OpenBSD"
64 HOMEPAGE="http://www.openntpd.org/"
65 SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${MY_P}.orig.tar.gz
66 mirror://debian/pool/main/${PN:0:1}/${PN}/${MY_P}-${DEB_VER}.debian.tar.gz"
67
68 LICENSE="BSD GPL-2"
69 SLOT="0"
70 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
71 IUSE="ssl selinux +syslog"
72
73 RDEPEND="ssl? ( dev-libs/openssl )
74 selinux? ( sec-policy/selinux-ntp )
75 !<=net-misc/ntp-4.2.0-r2
76 !net-misc/ntp[-openntpd]"
77 DEPEND="${RDEPEND}
78 virtual/yacc"
79
80 S="${WORKDIR}/${MY_P/_/-}"
81
82 pkg_setup() {
83 export NTP_HOME="${NTP_HOME:=/var/lib/openntpd/chroot}"
84 enewgroup ntp
85 enewuser ntp -1 -1 "${NTP_HOME}" ntp
86
87 # make sure user has correct HOME as flipng between
88 # the standard ntp pkg and this one was possible in
89 # the past
90 if [[ $(egethome ntp) != ${NTP_HOME} ]]; then
91 ewarn "From this version on, the homedir of the ntp user cannot be changed"
92 ewarn "dynamically after the installation. For homedir different from"
93 ewarn "/var/lib/openntpd/chroot set NTP_HOME in your make.conf and re-emerge."
94 esethome ntp "${NTP_HOME}"
95 fi
96 }
97
98 src_prepare() {
99 sed -i '/NTPD_USER/s:_ntp:ntp:' ntpd.h || die
100
101 epatch "${WORKDIR}"/debian/patches/*.patch
102 epatch "${FILESDIR}/${P}-pidfile.patch"
103 sed -i 's:debian:gentoo:g' ntpd.conf || die
104 eautoreconf # deb patchset touches .ac files and such
105 }
106
107 src_configure() {
108 econf \
109 --disable-strip \
110 $(use_with !ssl builtin-arc4random) \
111 AR="$(type -p $(tc-getAR))"
112 }
113
114 src_install() {
115 default
116
117 if use syslog ; then
118 newinitd "${FILESDIR}/${PN}.init.d-${PV}-r6" ntpd
119 else
120 newinitd "${FILESDIR}/${PN}.init.d-${PV}-r4" ntpd
121 insinto /etc/logrotate.d
122 newins "${FILESDIR}/${PN}.logrotate-${PV}-r5" ntpd
123 fi
124 newconfd "${FILESDIR}/${PN}.conf.d-${PV}-r6" ntpd
125
126 systemd_newunit "${FILESDIR}/${PN}.service-${PV}-r3" ntpd.service
127 }
128
129 pkg_postinst() {
130 # remove localtime file from previous installations
131 rm -f "${EROOT}${NTP_HOME}"/etc/localtime
132 mkdir -p "${NTP_HOME}"/etc
133 ln /etc/localtime "${NTP_HOME}"/etc/localtime || die
134 chown -R root:root "${EROOT}${NTP_HOME}" || die
135
136 use syslog && [[ -f ${EROOT}/var/log/ntpd.log ]] && \
137 ewarn "There is an orphaned logfile '/var/log/ntpd.log', please remove it!"
138 }
139
140 pkg_postrm() {
141 # remove localtime file from previous installations
142 rm -f "${EROOT}${NTP_HOME}"/etc/localtime
143 }