1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-14 07:27:10 +01:00
build/pkg/ntp/build
David Oberhollenzer c8d01f966a Use pkgtool to resolve and manage dependencies, add sub package support
Been working on this for too long, don't remember the specifics, will add
documentation.

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-03-03 17:47:02 +01:00

39 lines
1 KiB
Text

VERSION="4.2.8p12"
SRCDIR="ntp-${VERSION}"
TARBALL="${SRCDIR}.tar.gz"
URL="https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2"
SHA256SUM="709b222b5013d77d26bfff532b5ea470a8039497ef29d09363931c036cb30454"
DEPENDS="openssl-dev zlib-dev readline-dev crt-dev"
prepare() {
return
}
build() {
CFLAGS=-fno-stack-protector \
run_configure "$1" --with-openssl-libdir="$TCDIR/$TARGET/lib" \
--with-openssl-incdir="$TCDIR/$TARGET/include" \
--with-yielding-select=yes --enable-ipv6 \
--with-lineeditlibs=readline --without-rpath \
--without-sntp --with-ntpsnmpd
CFLAGS=-fno-stack-protector \
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local DEPLOY="$2"
make DESTDIR="$DEPLOY" install
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$DEPLOY"
}
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"
}