# Description: Network Time Protocol suite # URL: https://www.ntp.org # Maintainer: Aaron Ball, nullspoon at oper dot io # Depends on: libedit name=ntp version=4.2.8p15 release=3 source=( https://www.eecis.udel.edu/~ntp/ntp_spool/ntp${version%%.*}/ntp-${version%.*}/ntp-${version}.tar.gz ntpd.init ntp.conf glib.patch ) build() { cd "${name}-${version}" # Fix PTHREAD_STACK_MIN issue patch -Np1 -i ${SRC}/glib.patch ./configure --prefix=/usr make make DESTDIR="${PKG}" install rm -rf ${PKG:?}/usr/share/doc # Install init script install -D -m 755 ${SRC}/ntpd.init ${PKG:?}/etc/rc.d/ntpd # Install the default config file install -D -m 644 ${SRC}/ntp.conf ${PKG:?}/etc/ntp.conf }