VERSION="4.2.8p14" SRCDIR="ntp-${VERSION}" TARBALL="${SRCDIR}.tar.gz" URL="https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2" SHA256SUM="1960e4f081f6aafd108d721bc3ab15f9e8dfd08dc08339aa95bca9d2545e4eb7" DEPENDS="openssl-dev zlib-dev readline-dev toolchain" build() { CFLAGS=-fno-stack-protector \ run_configure "$1" --with-openssl-libdir="$SYSROOT/lib" \ --with-openssl-incdir="$SYSROOT/include" \ --with-yielding-select=yes --enable-ipv6 \ --with-lineeditlibs=readline --without-rpath \ --without-sntp --with-ntpsnmpd CFLAGS=-fno-stack-protector \ make -j $NUMJOBS } deploy() { make DESTDIR="$PKGDEPLOYDIR" install cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR" } check_update() { local version=$(echo $VERSION | sed 's/p/./g') curl --silent -L "http://support.ntp.org/rss/releases.xml" | \ grep -o "ntp-[0-9.p]*tar.gz" | \ sed 's/ntp-//g' | sed 's/.tar.gz//g' | sed 's/p/./g' | \ verson_find_greatest "$version" }