2021-05-10 16:55:12 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
# Install our pre-configured Makefile.
|
|
|
|
cp makefile.mid ./Makefile
|
|
|
|
|
2022-08-23 20:40:30 +00:00
|
|
|
make LDFLAGS="$LDFLAGS -static -fPIC -fno-lto -fno-use-linker-plugin -static"
|
2021-05-10 16:55:12 +00:00
|
|
|
make DESTDIR="$1" PREFIX=/usr install
|
2022-03-01 15:34:12 +00:00
|
|
|
|
|
|
|
echo '#!/bin/sh
|
|
|
|
exec grep -E "$@"
|
|
|
|
' >> "$1/usr/bin/egrep"
|
|
|
|
|
|
|
|
echo '#!/bin/sh
|
|
|
|
exec grep -F "$@"
|
|
|
|
' >> "$1/usr/bin/fgrep"
|
|
|
|
|
|
|
|
for i in egrep fgrep
|
|
|
|
do
|
|
|
|
chmod +x "$1/usr/bin/$i"
|
|
|
|
done
|
2022-04-05 16:16:53 +00:00
|
|
|
|
|
|
|
install -Dm700 cron.service "$1/var/sysmgr/"
|