summaryrefslogtreecommitdiff
path: root/repo/system/shadow.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-01-16 15:02:47 +0000
committerdavidovski <david@davidovski.xyz>2022-01-16 15:02:47 +0000
commit003727289cc45e29eff0c0c48ad0f9660f96644f (patch)
tree0fd7f0ac830dee29984262980b8c144e26aa09ba /repo/system/shadow.xibuild
parentd2d97f84d5c037d7a6b8db6c497a5987030b7335 (diff)
separated patch, build, check and package stages
Diffstat (limited to 'repo/system/shadow.xibuild')
-rw-r--r--repo/system/shadow.xibuild14
1 files changed, 7 insertions, 7 deletions
diff --git a/repo/system/shadow.xibuild b/repo/system/shadow.xibuild
index e190686..ea32c22 100644
--- a/repo/system/shadow.xibuild
+++ b/repo/system/shadow.xibuild
@@ -7,7 +7,7 @@ PKG_VER=4.10
SOURCE=https://github.com/shadow-maint/shadow/releases/download/v$PKG_VER/shadow-$PKG_VER.tar.xz
DESC="Password and account management tool suite with support for shadow files and PAM"
-build () {
+patch () {
curl https://www.linuxfromscratch.org/patches/lfs/development/shadow-$PKG_VER-useradd_segfault-1.patch > shadow-$PKG_VER-useradd_segfault-1.patch
patch -Np1 -i shadow-$PKG_VER-useradd_segfault-1.patch
@@ -27,16 +27,16 @@ build () {
mkdir -p $PKG_DEST/usr/bin
touch $PKG_DEST/usr/bin/passwd
- ./configure --sysconfdir=/etc --with-group-name-max-length=32
-
- make
- make exec_prefix=/usr DESTDIR=$PKG_DEST install
-
- make DESTDIR=$PKG_DEST -C man install-man
+}
+build () {
+ ./configure --sysconfdir=/etc --with-group-name-max-length=32
+ make
}
package () {
+ make exec_prefix=/usr DESTDIR=$PKG_DEST install
+ make DESTDIR=$PKG_DEST -C man install-man
mkdir -p $PKG_DEST/etc/default
}