blob: 7928608e0a7851d214652eb63073a9fd8c8e820a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
PR .= ".mlinux1"
SRC_URI += " file://ntpd-init.patch;patchdir=.. \
file://ntp.conf.patch;patchdir=.. \
"
FILESEXTRAPATHS_prepend := "${THISDIR}/files"
python do_patch_prepend () {
import os
}
pkg_postinst_${PN} () {
sdir=/var/log/ntpstats
if ! [[ -d ${sdir} ]] ; then
mkdir -p ${sdir}
fi
chown ntp:ntp ${sdir}
chmod 775 ${sdir}
drdir=/var/lib/ntp
if ! [[ -d ${drdir} ]] ; then
mkdir -p ${drdir}
fi
drfile="${drdir}/ntp.drift"
touch ${drfile}
chmod 664 ${drfile}
chown -R ntp:ntp ${drdir}
}
|