busybox: busybox-ntpd subpackage.

This commit is contained in:
Eivind Uggedal 2015-01-07 07:16:58 +00:00
parent ca87123905
commit 683bf1354c
5 changed files with 1018 additions and 3 deletions

1
srcpkgs/busybox-ntpd Symbolic link
View File

@ -0,0 +1 @@
busybox

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,2 @@
#!/bin/sh
exec logger -t busybox-ntpd

View File

@ -0,0 +1,2 @@
#!/bin/sh
exec chpst -b ntpd busybox-ntpd -nN -p pool.ntp.org

View File

@ -1,7 +1,7 @@
# Build template for 'busybox'.
pkgname=busybox
version=1.22.1
revision=3
revision=4
hostmakedepends="perl"
short_desc="The Swiss Army Knife of Embedded Linux"
maintainer="Juan RP <xtraeme@gmail.com>"
@ -24,7 +24,7 @@ pre_build() {
mv * src || true
local t
for t in busybox busybox-static; do
for t in busybox busybox-static busybox-ntpd; do
mkdir -p $t
make -C $t CFLAGS="$(_cflags $t)" KBUILD_SRC=${wrksrc}/src \
-f ${wrksrc}/src/Makefile defconfig
@ -39,7 +39,7 @@ pre_build() {
}
do_build() {
local t
for t in busybox busybox-static; do
for t in busybox busybox-static busybox-ntpd; do
make -C $t CFLAGS="$(_cflags $t)" ${makejobs}
done
}
@ -54,3 +54,11 @@ busybox-static_package() {
vbin busybox-static/busybox busybox.static
}
}
busybox-ntpd_package() {
short_desc+=" (ntpd)"
pkg_install() {
vbin busybox-ntpd/busybox busybox-ntpd
vsv busybox-ntpd
}
}