aboutsummaryrefslogtreecommitdiff
path: root/net/ntpa/pkg-install
blob: da18ed5f380a26bb682151d19d82b2a0a7d4ccac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh

newsyslog() {
    if grep -q /var/log/ntpa/ntpa.log /etc/newsyslog.conf; then
        :
    else
        cat >> /etc/newsyslog.conf <<EOT
/var/log/ntpa/ntpa.log root:ntpa       660  10    *    @T00  C  /var/run/ntpa/ntpa.pid SIGUSR2
EOT
    fi
}

case $2 in
    PRE-INSTALL)
        ;;      
    POST-INSTALL)
        if [ -z "${PACKAGE_BUILDING}" ]; then
            newsyslog
        fi
        ;;
esac