aboutsummaryrefslogtreecommitdiff
path: root/extra/scron/build
blob: 40070b3c1c0eab5d931f38538618d870457cc3a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh -e

mk() {
    make \
        PREFIX=/usr \
        MANPREFIX=/usr/share/man \
        CFLAGS="$CFLAGS -static" \
        "$@"
}

mk
mk DESTDIR="$1" install
clsv -d "$1" scron.run

mv "$1/usr/bin/crond" "$1/usr/bin/scrond"
ln -s scrond "$1/usr/bin/crond"