2018-05-06 20:19:38 +02:00
|
|
|
VERSION="4.6"
|
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}"
|
2018-05-06 20:19:38 +02:00
|
|
|
SHA256SUM="0998c8d84242a231ab0acb7f8613927ff5bcff095f8aa6b79478893a03f05583"
|
2018-02-15 23:47:54 +01:00
|
|
|
DEPENDS="toolchain"
|
2018-01-31 22:25:50 +01:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
sed -i 's/groups$(EXEEXT) //' src/Makefile.in
|
|
|
|
}
|
|
|
|
|
|
|
|
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" \
|
|
|
|
"shadow-" "tar.xz"
|
2019-03-06 10:03:12 +01:00
|
|
|
}
|