diff --git a/srcpkgs/busybox-ntpd b/srcpkgs/busybox-ntpd deleted file mode 120000 index c3fa810285..0000000000 --- a/srcpkgs/busybox-ntpd +++ /dev/null @@ -1 +0,0 @@ -busybox \ No newline at end of file diff --git a/srcpkgs/busybox-ntpd/files b/srcpkgs/busybox-ntpd/files new file mode 120000 index 0000000000..bd963d91c4 --- /dev/null +++ b/srcpkgs/busybox-ntpd/files @@ -0,0 +1 @@ +../busybox/files/ \ No newline at end of file diff --git a/srcpkgs/busybox-ntpd/patches b/srcpkgs/busybox-ntpd/patches new file mode 120000 index 0000000000..02b71e5738 --- /dev/null +++ b/srcpkgs/busybox-ntpd/patches @@ -0,0 +1 @@ +../busybox/patches/ \ No newline at end of file diff --git a/srcpkgs/busybox-ntpd/template b/srcpkgs/busybox-ntpd/template new file mode 100644 index 0000000000..b9179677de --- /dev/null +++ b/srcpkgs/busybox-ntpd/template @@ -0,0 +1,43 @@ +# Build template for 'busybox-ntpd'. +pkgname=busybox-ntpd +version=1.23.2 +revision=1 +wrksrc="busybox-$version" +hostmakedepends="perl" +short_desc="The Swiss Army Knife of Embedded Linux (ntpd)" +maintainer="Juan RP " +license="GPL-2" +homepage="http://www.busybox.net" +distfiles="${homepage}/downloads/busybox-$version.tar.bz2" +checksum=05a6f9e21aad8c098e388ae77de7b2361941afa7157ef74216703395b14e319a + +pre_build() { + mkdir -p src + mv * src || true + + local t="busybox-ntpd" + mkdir -p $t + make -C $t CFLAGS="$CFLAGS" KBUILD_SRC=${wrksrc}/src \ + -f ${wrksrc}/src/Makefile defconfig + cp -f ${FILESDIR}/${t}.dotconfig ${t}/.config + + case "$XBPS_TARGET_MACHINE" in + *-musl) sed -i -e /CONFIG_FEATURE_VI_REGEX_SEARCH/s/y/n/ \ + -e /CONFIG_FEATURE_MOUNT_NFS/s/y/n/ \ + ${t}/.config;; + esac + + if [ "$CROSS_BUILD" ]; then + sed -e \ + "s,\(CONFIG_CROSS_COMPILER_PREFIX\).*,\1=\"${XBPS_CROSS_TRIPLET}-\",g" \ + -i ${t}/.config + fi +} +do_build() { + local t="busybox-ntpd" + make -C $t SKIP_STRIP=y CFLAGS="$CFLAGS" ${makejobs} +} +do_install() { + vbin busybox-ntpd/busybox_unstripped busybox-ntpd + vsv busybox-ntpd +} diff --git a/srcpkgs/busybox-ntpd/update b/srcpkgs/busybox-ntpd/update new file mode 100644 index 0000000000..791aa2a97d --- /dev/null +++ b/srcpkgs/busybox-ntpd/update @@ -0,0 +1 @@ +ignore="*.0"