From 36055244e76ae9b3f87b084dcae83115e52d414a Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Thu, 25 Jun 2015 16:54:51 +0200 Subject: [PATCH] New package: busybox-ntpd-1.23.2. --- srcpkgs/busybox-ntpd | 1 - srcpkgs/busybox-ntpd/files | 1 + srcpkgs/busybox-ntpd/patches | 1 + srcpkgs/busybox-ntpd/template | 43 +++++++++++++++++++++++++++++++++++ srcpkgs/busybox-ntpd/update | 1 + 5 files changed, 46 insertions(+), 1 deletion(-) delete mode 120000 srcpkgs/busybox-ntpd create mode 120000 srcpkgs/busybox-ntpd/files create mode 120000 srcpkgs/busybox-ntpd/patches create mode 100644 srcpkgs/busybox-ntpd/template create mode 100644 srcpkgs/busybox-ntpd/update 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"