This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/rules/ntp/default.bash

42 lines
863 B
Bash
Raw Normal View History

2013-07-13 17:19:22 +01:00
version=\
(
'4.2.6p5'
)
url=\
(
2015-04-28 17:31:41 +01:00
"ftp://gentoo.mirrors.ovh.net/gentoo-distfiles/distfiles/ntp-$version.tar.gz"
2013-07-13 17:19:22 +01:00
)
md5=\
(
'00df80a84ec9528fcfb09498075525bc'
)
configure()
{
"../ntp-$version/configure" \
--prefix="/" \
--target=$cfg_target_canonical \
--host=$cfg_target_canonical \
--build=$cfg_host_canonical \
--disable-all-clocks \
--disable-parse-clocks \
--enable-NMEA \
--enable-LOCAL-CLOCK \
--without-net-snmp-config
}
build()
{
$cmd_make
}
target_install()
{
$cmd_target_strip ntpd/ntpd -o $cfg_dir_rootfs/usr/bin/ntpd &&
$cmd_target_strip ntpdate/ntpdate -o $cfg_dir_rootfs/usr/bin/ntpdate &&
$cmd_target_strip ntpq/ntpq -o $cfg_dir_rootfs/usr/bin/ntpq &&
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
2013-07-13 17:19:22 +01:00
}