mirror of
https://github.com/outbackdingo/ports.git
synced 2026-01-27 10:20:12 +00:00
ntp: install service files depending your init
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
ntp-4.2.8p17-1
|
||||
ntp-4.2.8p17-2
|
||||
drwxr-xr-x root/root etc/
|
||||
-rw-r--r-- root/root etc/ntp.conf
|
||||
drwxr-xr-x root/root etc/rc.d/
|
||||
-rwxr-xr-x root/root etc/rc.d/ntpd
|
||||
drwxr-xr-x root/root etc/sv/
|
||||
drwxr-xr-x root/root etc/sv/ntpd/
|
||||
-rwxr-xr-x root/root etc/sv/ntpd/run
|
||||
lrwxrwxrwx root/root etc/sv/ntpd/supervise -> /run/runit/supervise.ntpd
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/lib/
|
||||
drwxr-xr-x root/root usr/lib/ntp/
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
name=ntp
|
||||
version=4.2.8p17
|
||||
release=1
|
||||
release=2
|
||||
source="https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-${version%.*}/$name-$version.tar.gz
|
||||
run.ntpd
|
||||
rc.ntpd"
|
||||
@@ -59,9 +59,14 @@ restrict 127.0.0.1
|
||||
restrict ::1
|
||||
EOF
|
||||
|
||||
_runit() {
|
||||
# runit service
|
||||
install -Dm755 $SRC/run.ntpd $PKG/etc/sv/ntpd/run
|
||||
ln -s /run/runit/supervise.ntpd $PKG/etc/sv/ntpd/supervise
|
||||
}
|
||||
_sysv() {
|
||||
# rc service
|
||||
install -Dm755 $SRC/rc.ntpd $PKG/etc/rc.d/ntpd
|
||||
}
|
||||
scratch isinstalled runit && _runit || _sysv
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user