From 70bbba39c5900e7c3f1d819fc5e684fb74d9c38d Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Tue, 29 Jun 2021 11:24:16 +0300 Subject: scron: change name of the binary and symlink it to 'crond' --- extra/scron/build | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'extra/scron/build') diff --git a/extra/scron/build b/extra/scron/build index fd90a6f7..4423a16b 100755 --- a/extra/scron/build +++ b/extra/scron/build @@ -1,12 +1,16 @@ #!/bin/sh -e -make CC="${CC:-gcc}" -make PREFIX="$1/usr" MANPREFIX="$1/usr/share/man" install +mk() { + make \ + PREFIX=/usr \ + MANPREFIX=/usr/share/man \ + CFLAGS="$CFLAGS -static" \ + "$@" +} +mk +mk DESTDIR="$1" install +DESTDIR="$1" install-sv scron.run -# Install runit service -install -Dm755 scron.run "$1/etc/sv/scron/run" -ln -sv /run/runit/supervise.scron "$1/etc/sv/scron/supervise" - -# Install sysmgr service -install -Dm755 scron.run "$1/etc/sysmgr/scron" +mv "$1/usr/bin/crond" "$1/usr/bin/scrond" +ln -s scrond "$1/usr/bin/crond" -- cgit v1.2.3