# SliTaz package receipt. PACKAGE="ntp" VERSION="4.2.6p3" CATEGORY="network" SHORT_DESC="Network Time Protocol daemon." MAINTAINER="pascal.bellard@slitaz.org" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://www.ntp.org/" WGET_URL="http://archive.ntp.org/ntp4/$TARBALL" DEPENDS="libcrypto readline libcap attr" CONFIG_FILES="/etc/ntp.conf" # Rules to configure and make the package. compile_rules() { cd $src sed -i 's/MOD_NANO/0/' ntpd/ntp_loopfilter.c ./configure --prefix=/usr --infodir=/usr/share/info \ --sysconfdir=/etc --localstatedir=/var \ --mandir=/usr/share/man $CONFIGURE_ARGS && \ make && make DESTDIR=$PWD/_pkg install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr $fs/etc/init.d cp -a $_pkg/usr/bin $fs/usr cp stuff/ntp $fs/etc/init.d cat > $fs/etc/ntp.conf <