PATCH_LIST="ntp-4.2.4-larger-tolerance.diff missing-riscv64-build.diff" FILE_LIST= SRC_FETCH_METHOD=http SRC_FETCH_PATH="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${PKGVER}.tar.gz" MAKEDEPENDS=( "openssl-*:::*.h *.so *.so.*" ) function do_config { CC="$CC" LD="$LD" \ CXXCPP="$CC -E -x c" \ CFLAGS="$GCC_ARCH_SMALL $GCC_CPU_SMALL $GCC_OPT_SMALL" \ ./configure --prefix=/usr \ --host=$FLXTARG --build=$FLXHOST \ --with-sysroot=$FLXROOTDIR --with-openssl-libdir=$FLXROOTDIR/usr/lib \ --with-openssl-incdir=$FLXROOTDIR/usr/include \ --with-crypto=rsaref,autokey --enable-all-clocks \ --with-yielding-select=yes --disable-ipv6 --disable-nls \ --with-crypto=openssl --enable-openssl-random --enable-local-libevent \ --with-locfile=legacy --without-ntpsnmpd --without-sntp \ --enable-LOCAL-CLOCK --enable-SHM --enable-NMEA --enable-GPSD --enable-DUMBCLOCK \ --without-threads --disable-all-clocks } function do_compile_only { # Version 4.2.1 puts readline where needed only, so there's no need for per-subsystem compilation anymore. $FLXPMAKE V=1 } function do_prepack { $FLXMAKE install DESTDIR=$ROOTDIR mkdir -p $ROOTDIR/usr/sbin && mv $ROOTDIR/usr/bin/ntpd $ROOTDIR/usr/sbin/ mkdir -p $ROOTDIR/etc/ntp $ROOTDIR/sbin/init.d mkdir -p $EXAMPLEDIR/ntp/ntp-$PKGVER/etc/ntp cp $PKGDIR/add-ons/ntp $ROOTDIR/sbin/init.d/ cp $PKGDIR/add-ons/ntp.conf $PKGDIR/add-ons/ntp.keys $EXAMPLEDIR/ntp/ntp-$PKGVER/etc/ntp/ set_default_perm $ROOTDIR set_perm root:adm 750 $ROOTDIR/etc/ntp set_perm root:adm 555 $ROOTDIR/sbin/init.d/ntp }