diff --git a/pkg.info b/pkg.info index 64e31ae..5f47742 100644 --- a/pkg.info +++ b/pkg.info @@ -1,8 +1,10 @@ name: ntp description: Network Time Protocol implementation version: 4.2.8p18 +revision: 2 url: https://www.ntp.org/ license: custom architecture: any depends: ["libcap","libedit","openssl","perl","sysusers"] +keep: ["etc/ntp.conf"] type: source diff --git a/source-files/ntp.conf b/source-files/ntp.conf index e465c6c..65f6fc5 100644 --- a/source-files/ntp.conf +++ b/source-files/ntp.conf @@ -15,3 +15,9 @@ server 2.south-america.pool.ntp.org driftfile /var/lib/ntp/ntp.drift pidfile /run/ntpd.pid + +restrict default limited kod nomodify notrap nopeer noquery +restrict -6 default limited kod nomodify notrap nopeer noquery + +restrict 127.0.0.1 +restrict ::1 diff --git a/source-files/ntpd.esv b/source-files/ntpd.esv index d06ed88..7a1ede0 100644 --- a/source-files/ntpd.esv +++ b/source-files/ntpd.esv @@ -1,5 +1,5 @@ name: ntpd description: Network Time Protocol daemon -type: simple -start_cmd: /usr/sbin/ntpd -g -u ntp:ntp +type: background +start_cmd: /usr/sbin/ntpd -n -g -u ntp:ntp exit_method: kill