summaryrefslogtreecommitdiff
path: root/recipes-support/ntp/ntp_4.2.6p5.bbappend
blob: 9c6419e1e306255bf5419ddc03b422950b4f8b41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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} () {
    touch /etc/ntp.drift
    chown ntp:ntp /etc/ntp.drift
    chmod 664 /etc/ntp.drift
    if ! [[ -d /var/log/ntpstats ]] ; then
	mkdir -p /var/log/ntpstats
    fi

    chown ntp:ntp /var/log/ntpstats
    chmod 775 /var/log/ntpstats
}