2020-03-13 12:00:56 +01:00
|
|
|
VERSION="4.8.1"
|
2018-01-31 22:25:50 +01:00
|
|
|
SRCDIR="shadow-${VERSION}"
|
|
|
|
TARBALL="${SRCDIR}.tar.xz"
|
|
|
|
URL="https://github.com/shadow-maint/shadow/releases/download/${VERSION}"
|
2020-03-13 12:00:56 +01:00
|
|
|
SHA256SUM="a3ad4630bdc41372f02a647278a8c3514844295d36eefe68ece6c3a641c1ae62"
|
2018-02-15 23:47:54 +01:00
|
|
|
DEPENDS="toolchain"
|
2018-01-31 22:25:50 +01:00
|
|
|
|
|
|
|
build() {
|
2018-09-02 14:19:23 +02:00
|
|
|
run_configure "$1" --disable-man --without-libpam --without-selinux \
|
2018-02-16 23:22:04 +01:00
|
|
|
--with-sha-crypt --with-group-name-max-length=32
|
2018-01-31 22:25:50 +01:00
|
|
|
|
|
|
|
make -j $NUMJOBS
|
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
2019-03-06 10:03:12 +01:00
|
|
|
make DESTDIR="$PKGDEPLOYDIR" install
|
|
|
|
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
|
|
|
|
cp "$SCRIPTDIR/pkg/$PKGNAME/login.defs" "$PKGDEPLOYDIR/etc"
|
|
|
|
cp "$SCRIPTDIR/pkg/$PKGNAME/useradd" "$PKGDEPLOYDIR/etc/default"
|
2018-01-31 22:25:50 +01:00
|
|
|
|
|
|
|
# *hrmpf*
|
2019-03-06 10:03:12 +01:00
|
|
|
if [ -e "$PKGDEPLOYDIR/sbin" ]; then
|
|
|
|
mv ${PKGDEPLOYDIR}/sbin/* "$PKGDEPLOYDIR/bin"
|
2018-01-31 22:25:50 +01:00
|
|
|
fi
|
|
|
|
}
|
2018-05-06 17:23:31 +02:00
|
|
|
|
|
|
|
check_update() {
|
2019-03-30 10:40:54 +01:00
|
|
|
check_update_simple "https://github.com/shadow-maint/shadow/releases" \
|
2019-07-07 16:17:16 +02:00
|
|
|
"shadow" "tar.xz"
|
2019-03-06 10:03:12 +01:00
|
|
|
}
|