smlinux/base/chrony/chrony.SMBuild
2022-01-28 23:06:05 +05:30

44 lines
988 B
Text
Executable file

APP=chrony
VERSION=3.5
BUILD=1sml
HOMEPAGE='https://chrony.tuxfamily.org/'
DOWNLOAD='https://download.tuxfamily.org/chrony/chrony-3.5.tar.gz'
DESC="Lightweight program to maintain accuracy of the real time clock via NTP"
REQUIRES="nettle libcap"
build() {
mkandenterbuilddir
rm -rf $APP-$VERSION
tar xf $SRCDIR/$APP-$VERSION.tar.?z*
cd $APP-$VERSION
fixbuilddirpermissions
./configure \
--prefix="" \
--bindir=/bin \
--sbindir=/bin \
--mandir=/share/man \
--without-readline \
--without-nss
make $MAKEFLAGS
make install DESTDIR=$PKG
cp COPYING $PKGDOCS/
cp $SRCDIR/chrony.conf $PKG/etc/
# raspberry pi example
cp $SRCDIR/chrony.conf.rpi $PKG/etc/
cp $SRCDIR/README $PKG/etc/chrony.README
mkdir -p $PKG/var/lib/chrony
preprunitservice chrony down
mkfinalpkg
}
SHA512SUMS="
bdfeb8a5d478ff575b5bff6f9d298fb1102c9d74f2636499e124a8d9273a9d8c2b9b51bd037ef7054fd12c02a8371160a486f08a2f0c8fa2b97ed0410a9f3cf0 chrony-3.5.tar.lz
"