1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-13 06:57:11 +01:00

Cleanup: remove no longer needed prepare hooks

- tzdata

   Since the source code is copied over anyway, there is no need
   to patch it up in a previous step. We can do that in the build
   function instead.

 - shadow

   The hooks was used to remove "groups" from the installed
   binaries. This is no longer needed. Instead, simply don't
   package it.

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
David Oberhollenzer 2020-04-21 13:43:12 +02:00
parent 5fc1a2f138
commit 5dfc8be3a1
2 changed files with 1 additions and 8 deletions

View file

@ -5,10 +5,6 @@ URL="https://github.com/shadow-maint/shadow/releases/download/${VERSION}"
SHA256SUM="a3ad4630bdc41372f02a647278a8c3514844295d36eefe68ece6c3a641c1ae62"
DEPENDS="toolchain"
prepare() {
sed -i 's/groups$(EXEEXT) //' src/Makefile.in
}
build() {
run_configure "$1" --disable-man --without-libpam --without-selinux \
--with-sha-crypt --with-group-name-max-length=32

View file

@ -6,12 +6,9 @@ SHA256SUM="bb2373338140c3de7251e548526f1f70cb742739a962aad3f10238343a2c674c"
DEPENDS="toolchain"
SUBPKG="tzdata tzdata-dev"
prepare() {
sed -i 's/sbin/bin/g' Makefile
}
build() {
cp -r ${1}/* ${PKGBUILDDIR}
sed -i 's/sbin/bin/g' Makefile
make -j $NUMJOBS
}