summaryrefslogtreecommitdiff
path: root/package/openntpd
diff options
context:
space:
mode:
Diffstat (limited to 'package/openntpd')
-rw-r--r--package/openntpd/Config.in9
-rw-r--r--package/openntpd/Makefile6
-rw-r--r--package/openntpd/files/ntpd.init4
-rw-r--r--package/openntpd/files/openntpd.postinst3
-rw-r--r--package/openntpd/src/openbsd-compat/port-linux.c (renamed from package/openntpd/extra/openbsd-compat/port-linux.c)0
5 files changed, 7 insertions, 15 deletions
diff --git a/package/openntpd/Config.in b/package/openntpd/Config.in
deleted file mode 100644
index c9d29a6fd..000000000
--- a/package/openntpd/Config.in
+++ /dev/null
@@ -1,9 +0,0 @@
-config ADK_PACKAGE_OPENNTPD
- prompt "openntpd.......................... A free and easy to use NTP (Network Time Protocol) implementation"
- tristate
- default n
- help
- NTP server
-
- http://www.openntpd.org/
-
diff --git a/package/openntpd/Makefile b/package/openntpd/Makefile
index f341614d1..328559f3a 100644
--- a/package/openntpd/Makefile
+++ b/package/openntpd/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= openntpd
PKG_VERSION:= 3.9p1
-PKG_RELEASE:= 17
+PKG_RELEASE:= 18
PKG_MD5SUM:= afc34175f38d08867c1403d9008600b3
PKG_DESCR:= NTP server daemon
PKG_SECTION:= net
@@ -19,10 +19,10 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,OPENNTPD,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-CONFIGURE_STYLE:= gnu
+INSTALL_STYLE:= manual
+
CONFIGURE_ARGS+= --with-privsep-user=ntp \
--with-adjtimex
-BUILD_STYLE:= auto
do-install:
${INSTALL_DIR} ${IDIR_OPENNTPD}/etc
diff --git a/package/openntpd/files/ntpd.init b/package/openntpd/files/ntpd.init
index 42e068860..fd655e9cc 100644
--- a/package/openntpd/files/ntpd.init
+++ b/package/openntpd/files/ntpd.init
@@ -7,7 +7,7 @@
case $1 in
autostop) ;;
autostart)
- [[ $ntpd_flags = NO ]] && exit 0
+ test x"${ntpd:-NO}" = x"NO" && exit 0
exec sh $0 start
;;
start)
@@ -15,7 +15,7 @@ start)
/usr/sbin/ntpd $ntpd_flags
;;
stop)
- kill $(pidof ntpd|cut -d ' ' -f 3)
+ pkill ntpd
;;
restart)
sh $0 stop
diff --git a/package/openntpd/files/openntpd.postinst b/package/openntpd/files/openntpd.postinst
index 53bc8c387..c6d0bd33d 100644
--- a/package/openntpd/files/openntpd.postinst
+++ b/package/openntpd/files/openntpd.postinst
@@ -4,4 +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 'e.g. "-s"' ntpd_flags
+add_rcconf ntpd_flags ntpd_flags "-s"
+add_rcconf ntpd ntpd NO
diff --git a/package/openntpd/extra/openbsd-compat/port-linux.c b/package/openntpd/src/openbsd-compat/port-linux.c
index f210d4a6d..f210d4a6d 100644
--- a/package/openntpd/extra/openbsd-compat/port-linux.c
+++ b/package/openntpd/src/openbsd-compat/port-linux.c