/[gentoo-x86]/net-misc/openntpd/openntpd-0.20040824p.ebuild
Gentoo

Contents of /net-misc/openntpd/openntpd-0.20040824p.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Feb 1 23:49:53 2005 UTC (14 years, 10 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.0.51-r15)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/openntpd/openntpd-0.20040824p.ebuild,v 1.3 2005/01/22 17:37:26 kaiowas Exp $
4
5 inherit eutils
6
7 MY_P="${PN}-${PV/0.}"
8 DESCRIPTION="Lightweight NTP server ported from OpenBSD"
9 HOMEPAGE="http://www.openntpd.org/"
10 SRC_URI="http://www.openntpd.org/dist/portable/${MY_P}.tar.gz"
11
12 LICENSE="BSD"
13 SLOT="0"
14 KEYWORDS="alpha amd64 ppc sparc x86"
15 IUSE="selinux"
16
17 RDEPEND="virtual/libc
18 selinux? ( sec-policy/selinux-ntp )
19 !net-misc/ntp"
20 DEPEND="${RDEPEND}
21 >=sys-apps/portage-2.0.51"
22
23 S=${WORKDIR}/${MY_P}
24
25 src_unpack() {
26 unpack ${A}
27 cd ${S}
28 sed -i '/NTPD_USER/s:_ntp:ntp:' ntpd.h || die
29 }
30
31 pkg_preinst() {
32 enewgroup ntp 123
33 enewuser ntp 123 /bin/false /var/empty ntp
34 }
35
36 src_install() {
37 make install DESTDIR=${D} || die
38 dodoc ChangeLog CREDITS README
39
40 newinitd ${FILESDIR}/openntpd.rc openntpd
41 newconfd ${FILESDIR}/openntpd.conf.d openntpd
42 }

  ViewVC Help
Powered by ViewVC 1.1.20