blob: 6508ad7dcc067961bf2f220a40ce18095a5d436d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/ntp-4.1.1b-r4.ebuild,v 1.3 2003/02/14 18:47:39 mholzer Exp $
inherit eutils
DESCRIPTION="Network Time Protocol suite/programs"
SRC_URI="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/${P}.tar.gz"
HOMEPAGE="http://www.ntp.org/"
LICENSE="as-is"
KEYWORDS="x86 ppc sparc alpha"
SLOT="0"
DEPEND="virtual/glibc
>=sys-libs/ncurses-5.2
>=sys-libs/readline-4.1"
src_unpack() {
unpack ${A} ; cd ${S}
epatch ${FILESDIR}/ntp-bk.diff
epatch ${FILESDIR}/linux-config-phone.patch
use alpha && epatch ${FILESDIR}/ntp-4.1.1b-syscall-libc.patch
aclocal -I . || die
automake || die
autoconf || die
}
src_compile() {
cp configure configure.orig
sed -e "s:-Wpointer-arith::" configure.orig > configure
econf --build=${CHOST} || die
emake || die
}
src_install() {
einstall || die
dodoc ChangeLog INSTALL NEWS README TODO WHERE-TO-START
dohtml -r html/*
insinto /usr/share/ntp
doins scripts/* ${FILESDIR}/ntp.conf
exeinto /etc/init.d ; newexe ${FILESDIR}/ntpd.rc ntpd
insinto /etc/conf.d ; newins ${FILESDIR}/ntpd.confd ntpd
}
pkg_postinst() {
ewarn "You can find /etc/ntp.conf in /usr/share/ntp/"
ewarn "Please run etc-update and then read all the comments"
ewarn "all the comments in /etc/ntp.conf and"
ewarn "/etc/conf.d/ntpd"
}
|