aboutsummaryrefslogtreecommitdiff
path: root/extra/shadow/build
blob: e3a2840faa7c846d4286efd08ba053afcc698ade (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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"