summaryrefslogtreecommitdiff
path: root/package/openntpd
diff options
context:
space:
mode:
Diffstat (limited to 'package/openntpd')
-rw-r--r--package/openntpd/Makefile3
-rw-r--r--package/openntpd/files/openntpd.init (renamed from package/openntpd/files/ntpd.init)8
-rw-r--r--package/openntpd/files/openntpd.postinst4
3 files changed, 8 insertions, 7 deletions
diff --git a/package/openntpd/Makefile b/package/openntpd/Makefile
index bfe60ea58..076957f1f 100644
--- a/package/openntpd/Makefile
+++ b/package/openntpd/Makefile
@@ -5,13 +5,14 @@ include ${ADK_TOPDIR}/rules.mk
PKG_NAME:= openntpd
PKG_VERSION:= 3.9p1
-PKG_RELEASE:= 18
+PKG_RELEASE:= 19
PKG_MD5SUM:= afc34175f38d08867c1403d9008600b3
PKG_DESCR:= ntp server daemon
PKG_SECTION:= net/ntp
PKG_DEPENDS:= libopenssl
PKG_URL:= http://www.openntpd.org/
PKG_SITES:= ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/
+PKG_BB:= 1
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
diff --git a/package/openntpd/files/ntpd.init b/package/openntpd/files/openntpd.init
index 02239f318..f21bd730a 100644
--- a/package/openntpd/files/ntpd.init
+++ b/package/openntpd/files/openntpd.init
@@ -6,13 +6,13 @@
case $1 in
autostop) ;;
autostart)
- test x"${ntpd:-NO}" = x"NO" && exit 0
- test x"$ntpd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
+ test x"${openntpd:-NO}" = x"NO" && exit 0
+ test x"$openntpd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
- mkdir -p /tmp/.ntp
- /usr/sbin/ntpd $ntpd_flags
+ mkdir -p /tmp/.ntp &> /dev/null
+ /usr/sbin/ntpd $openntpd_flags
;;
stop)
kill $(pgrep -f /usr/sbin/ntpd)
diff --git a/package/openntpd/files/openntpd.postinst b/package/openntpd/files/openntpd.postinst
index 1e4f34da1..1688c112c 100644
--- a/package/openntpd/files/openntpd.postinst
+++ b/package/openntpd/files/openntpd.postinst
@@ -4,5 +4,5 @@ gid=$(get_next_gid)
add_group ntp $gid
add_user ntp $(get_next_uid) $gid /tmp/.ntp
add_service ntp 123/udp
-add_rcconf ntpd_flags "-s"
-add_rcconf ntpd NO
+add_rcconf openntpd_flags "-s"
+add_rcconf openntpd NO