aboutsummaryrefslogtreecommitdiff
path: root/extra/scron/build
blob: 4423a16b07577371ad92446d79ef30abb064853e (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
DESTDIR="$1" install-sv scron.run

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