Imported sources from subversion.
This commit is contained in:
30
packages/ptpd/default.bash
Normal file
30
packages/ptpd/default.bash
Normal file
@@ -0,0 +1,30 @@
|
||||
version=\
|
||||
(
|
||||
'2.2.0'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://downloads.sourceforge.net/ptpd/ptpd-$version.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'c63a3a149d30c710773ccb02df5782a3'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Ricardo Martins <rasm@fe.up.pt>'
|
||||
)
|
||||
|
||||
build()
|
||||
{
|
||||
make CC="$cmd_target_cc" -C src
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
$cmd_target_strip src/ptpd2 -o $cfg_dir_rootfs/usr/bin/ptpd2 &&
|
||||
tar -C "$cfg_package_spec_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
|
||||
}
|
20
packages/ptpd/fs/etc/rc.d/ptpd
Normal file
20
packages/ptpd/fs/etc/rc.d/ptpd
Normal file
@@ -0,0 +1,20 @@
|
||||
start()
|
||||
{
|
||||
flags=''
|
||||
|
||||
if [ -n "$cfg_ptpd_master" ]; then
|
||||
flags='-gW'
|
||||
else
|
||||
flags='-g'
|
||||
fi
|
||||
|
||||
/usr/bin/ptpd2 $flags -b "$cfg_ptpd_interface"
|
||||
}
|
||||
|
||||
stop()
|
||||
{
|
||||
if [ -c /dev/rtc0 ]; then
|
||||
hwclock -w
|
||||
fi
|
||||
killall ptpd2
|
||||
}
|
Reference in New Issue
Block a user