wok-6.x view ntp/receipt @ rev 21721
updated ptpython (0.28 -> 2.0.4)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 12 14:57:36 2019 +0100 (2019-06-12) |
parents | 7d672a2330b8 |
children | 241fb98cab1c |
line source
1 # SliTaz package receipt.
3 PACKAGE="ntp"
4 VERSION="4.2.8p13"
5 CATEGORY="network"
6 SHORT_DESC="Network Time Protocol daemon."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.ntp.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://archive.ntp.org/ntp4/$TARBALL"
14 DEPENDS="attr libcap libcrypto readline"
15 CONFIG_FILES="/etc/ntp.conf"
17 HOST_ARCH="i486 arm"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 sed -i 's/MOD_NANO/0/' ntpd/ntp_loopfilter.c
24 ./configure \
25 --prefix=/usr \
26 --infodir=/usr/share/info \
27 --sysconfdir=/etc \
28 --localstatedir=/var \
29 --mandir=/usr/share/man \
30 $CONFIGURE_ARGS && \
31 make &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
39 mkdir -p $fs/etc/init.d
41 cp -a $install/usr/bin $fs/usr
42 cp stuff/ntp $fs/etc/init.d
43 cat > $fs/etc/ntp.conf <<EOT
44 restrict default noquery
45 restrict 192.168.0.0 mask 255.255.0.0
46 restrict 127.0.0.1
47 server europe.pool.ntp.org
48 server pool.ntp.org
49 EOT
50 }