15 lines
339 B
Bash
Executable File
15 lines
339 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
# Make sbase tar accept arguments without dash
|
|
patch -p1 < tar-dash-remove.patch
|
|
|
|
make LDFLAGS="$LDFLAGS -static"
|
|
make DESTDIR="$1" PREFIX=/usr install
|
|
|
|
# Prevent hostname from installed
|
|
unlink "$1/usr/bin/hostname"
|
|
unlink "$1/usr/share/man/man1/hostname.1"
|
|
|
|
# Unlink sed, because '-i' is widely used
|
|
unlink "$1/usr/bin/sed"
|