aboutsummaryrefslogtreecommitdiff
path: root/extra/shadow/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/shadow/build')
-rwxr-xr-xextra/shadow/build24
1 files changed, 24 insertions, 0 deletions
diff --git a/extra/shadow/build b/extra/shadow/build
new file mode 100755
index 00000000..e3a2840f
--- /dev/null
+++ b/extra/shadow/build
@@ -0,0 +1,24 @@
+#!/bin/sh -e
+
+export LDFLAGS="$LDFLAGS -static"
+
+./configure \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --sbindir=/usr/bin \
+ --libdir=/usr/lib \
+ --mandir=/usr/share/man \
+ --sysconfdir=/etc \
+ --disable-man \
+ --disable-nls \
+ --disable-account-tools-setuid \
+ --with-group-name-max-length=32 \
+ --without-audit \
+ --without-selinux
+
+make
+make DESTDIR="$1" install
+
+# Fix broken --sbindir.
+mv -f "$1/usr/sbin/"* "$1/usr/bin"
+rmdir "$1/usr/sbin"