wok-next diff ntp/receipt @ rev 20730
glib: up (2.56.1) with static libs and Python2
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 29 15:17:41 2018 +0300 (2018-05-29) |
parents | c4e53a39395a |
children | d5aab818505e |
line diff
1.1 --- a/ntp/receipt Fri Mar 02 12:12:14 2018 +0200 1.2 +++ b/ntp/receipt Tue May 29 15:17:41 2018 +0300 1.3 @@ -1,41 +1,28 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="ntp" 1.8 -VERSION="4.2.6p5" 1.9 +VERSION="4.2.8p11" 1.10 CATEGORY="network" 1.11 -SHORT_DESC="Network Time Protocol daemon." 1.12 +SHORT_DESC="Network Time Protocol daemon" 1.13 MAINTAINER="pascal.bellard@slitaz.org" 1.14 LICENSE="GPL3" 1.15 +WEB_SITE="http://www.ntp.org/" 1.16 + 1.17 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.18 -WEB_SITE="http://www.ntp.org/" 1.19 -WGET_URL="http://archive.ntp.org/ntp4/$TARBALL" 1.20 +WGET_URL="https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/$TARBALL" 1.21 1.22 -DEPENDS="openssl readline libcap attr" 1.23 -CONFIG_FILES="/etc/ntp.conf" 1.24 +compile_rules() { 1.25 + sed -i 's/MOD_NANO/0/' ntpd/ntp_loopfilter.c 1.26 1.27 -# Rules to configure and make the package. 1.28 -compile_rules() 1.29 -{ 1.30 - cd $src 1.31 - sed -i 's/MOD_NANO/0/' ntpd/ntp_loopfilter.c 1.32 - ./configure --prefix=/usr --infodir=/usr/share/info \ 1.33 - --sysconfdir=/etc --localstatedir=/var \ 1.34 - --mandir=/usr/share/man $CONFIGURE_ARGS && \ 1.35 - make && make DESTDIR=$DESTDIR install 1.36 + ./configure $CONFIGURE_ARGS && 1.37 + make && make DESTDIR=$DESTDIR install || return 1 1.38 + 1.39 + install -Dm755 $stuff/ntp $install/etc/init.d/ntp 1.40 + install -Dm644 $stuff/ntp.conf $install/etc/ntp.conf 1.41 } 1.42 1.43 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.44 -genpkg_rules() 1.45 -{ 1.46 - mkdir -p $fs/usr $fs/etc/init.d 1.47 - cp -a $install/usr/bin $fs/usr 1.48 - cp stuff/ntp $fs/etc/init.d 1.49 - cat > $fs/etc/ntp.conf <<EOT 1.50 -restrict default noquery 1.51 -restrict 192.168.0.0 mask 255.255.0.0 1.52 -restrict 127.0.0.1 1.53 -server fr.pool.ntp.org 1.54 -server de.pool.ntp.org 1.55 -EOT 1.56 +genpkg_rules() { 1.57 + copy @std 1.58 + DEPENDS="openssl readline libcap attr" 1.59 + CONFIG_FILES="/etc/ntp.conf" 1.60 } 1.61 -