ntp: use make_dirs; add systemd build option.
This commit is contained in:
parent
9b37c7107b
commit
bfed390d6e
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'ntp'
|
# Template file for 'ntp'
|
||||||
pkgname=ntp
|
pkgname=ntp
|
||||||
version=4.2.7p447
|
version=4.2.7p447
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="ntp-dev-${version}"
|
wrksrc="ntp-dev-${version}"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-crypto --enable-linuxcap --enable-ipv6
|
configure_args="--with-crypto --enable-linuxcap --enable-ipv6
|
||||||
|
@ -15,21 +15,26 @@ homepage="http://www.ntp.org/"
|
||||||
distfiles="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-dev/ntp-dev-${version}.tar.gz"
|
distfiles="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-dev/ntp-dev-${version}.tar.gz"
|
||||||
checksum=4f866071a627cba56e08acca95363ca87da0ba0cfe3f94dfe749054357302477
|
checksum=4f866071a627cba56e08acca95363ca87da0ba0cfe3f94dfe749054357302477
|
||||||
|
|
||||||
|
make_dirs="/var/db/ntpd 0755 ntpd ntpd"
|
||||||
conf_files="/etc/ntp.conf"
|
conf_files="/etc/ntp.conf"
|
||||||
system_accounts="ntpd"
|
system_accounts="ntpd"
|
||||||
provides="ntp-daemon-0_1"
|
provides="ntp-daemon-0_1"
|
||||||
replaces="ntp-daemon>=0"
|
replaces="ntp-daemon>=0"
|
||||||
|
|
||||||
|
build_options="systemd"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
# ntpd service
|
if [ "$build_option_systemd" ]; then
|
||||||
vinstall ${FILESDIR}/ntpd.tmpfiles 644 usr/lib/tmpfiles.d ntpd.conf
|
# ntpd service
|
||||||
vinstall ${FILESDIR}/ntpd.service 644 usr/lib/systemd/system
|
vinstall ${FILESDIR}/ntpd.tmpfiles 644 usr/lib/tmpfiles.d ntpd.conf
|
||||||
|
vinstall ${FILESDIR}/ntpd.service 644 usr/lib/systemd/system
|
||||||
|
# ntpdate service
|
||||||
|
vinstall ${FILESDIR}/ntpdate.service 644 usr/lib/systemd/system
|
||||||
|
# For systemd-timedated.
|
||||||
|
vmkdir usr/lib/systemd/ntp-units.d
|
||||||
|
echo "ntpd.service" > ${DESTDIR}/usr/lib/systemd/ntp-units.d/60-ntp.list
|
||||||
|
fi
|
||||||
vinstall ${FILESDIR}/ntp.conf 644 etc
|
vinstall ${FILESDIR}/ntp.conf 644 etc
|
||||||
# ntpdate service
|
|
||||||
vinstall ${FILESDIR}/ntpdate.service 644 usr/lib/systemd/system
|
|
||||||
# For systemd-timedated.
|
|
||||||
vmkdir usr/lib/systemd/ntp-units.d
|
|
||||||
echo "ntpd.service" > ${DESTDIR}/usr/lib/systemd/ntp-units.d/60-ntp.list
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ntp-perl_package() {
|
ntp-perl_package() {
|
||||||
|
|
Loading…
Reference in New Issue