/[gentoo-x86]/net-misc/openntpd/openntpd-3.9_p1-r3.ebuild
Gentoo

Contents of /net-misc/openntpd/openntpd-3.9_p1-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Sun Aug 25 22:07:55 2013 UTC (6 years, 5 months ago) by ottxor
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
remove old

(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key C2000586)

1 ottxor 1.6 # Copyright 1999-2012 Gentoo Foundation
2 vapier 1.1 # Distributed under the terms of the GNU General Public License v2
3 ottxor 1.7 # $Header: /var/cvsroot/gentoo-x86/net-misc/openntpd/openntpd-3.9_p1-r3.ebuild,v 1.6 2012/12/16 21:43:56 ottxor Exp $
4 vapier 1.1
5     EAPI="2"
6    
7 ottxor 1.6 inherit eutils autotools user
8 vapier 1.1
9     MY_P=${P/_/}
10     DEB_VER="8"
11     DESCRIPTION="Lightweight NTP server ported from OpenBSD"
12     HOMEPAGE="http://www.openntpd.org/"
13     SRC_URI="mirror://openbsd/OpenNTPD/${MY_P}.tar.gz
14     mirror://debian/pool/main/o/openntpd/${MY_P/-/_}+debian-${DEB_VER}.debian.tar.gz"
15    
16 ottxor 1.6 LICENSE="BSD GPL-2"
17 vapier 1.1 SLOT="0"
18 halcy0n 1.5 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
19 vapier 1.1 IUSE="ssl selinux"
20    
21     RDEPEND="ssl? ( dev-libs/openssl )
22     selinux? ( sec-policy/selinux-ntp )
23     !<=net-misc/ntp-4.2.0-r2
24     !net-misc/ntp[-openntpd]"
25     DEPEND="${RDEPEND}"
26    
27     S=${WORKDIR}/${MY_P}
28    
29     pkg_setup() {
30     enewgroup ntp 123
31     enewuser ntp 123 -1 /var/lib/openntpd/chroot ntp
32    
33     # make sure user has correct HOME when flipping between
34     # the standard ntp pkg and this one
35     usermod -d /var/lib/openntpd/chroot ntp
36     }
37    
38     src_prepare() {
39     sed -i '/NTPD_USER/s:_ntp:ntp:' ntpd.h || die
40    
41     epatch "${WORKDIR}"/debian/patches/*.patch
42     sed -i 's:debian:gentoo:g' ntpd.conf || die
43     eautoreconf # deb patchset touches .ac files and such
44     }
45    
46     src_configure() {
47     econf \
48     --disable-strip \
49     --with-adjtimex \
50     $(use_with !ssl builtin-arc4random)
51     }
52    
53     src_install() {
54     emake install DESTDIR="${D}" || die
55     dodoc ChangeLog CREDITS README
56    
57     newinitd "${FILESDIR}"/openntpd.rc-3.9_p1-r2 ntpd
58     newconfd "${FILESDIR}"/openntpd.conf.d-3.9_p1-r2 ntpd
59     }

  ViewVC Help
Powered by ViewVC 1.1.20