summaryrefslogtreecommitdiff
path: root/repo/system/pam.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/pam.xibuild
parentd2d97f84d5c037d7a6b8db6c497a5987030b7335 (diff)
separated patch, build, check and package stages
Diffstat (limited to 'repo/system/pam.xibuild')
-rw-r--r--repo/system/pam.xibuild9
1 files changed, 6 insertions, 3 deletions
diff --git a/repo/system/pam.xibuild b/repo/system/pam.xibuild
index 3166ad2..b0c18c5 100644
--- a/repo/system/pam.xibuild
+++ b/repo/system/pam.xibuild
@@ -6,12 +6,15 @@ PKG_VER=1.5.2
SOURCE=https://github.com/linux-pam/linux-pam/releases/download/v$PKG_VER/Linux-PAM-$PKG_VER.tar.xz
DESC="PAM (Pluggable Authentication Modules) library"
-build () {
+patch() {
# prevent install of an uneeded systemd file
sed -e /service_DATA/d \
-i modules/pam_namespace/Makefile.am &&
autoreconf
+}
+
+build () {
./configure --prefix=/usr \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
@@ -19,11 +22,11 @@ build () {
--enable-securedir=/usr/lib/security \
--docdir=/usr/share/doc/Linux-PAM-$PKG_VER &&
make
-
- make DESTDIR=$PKG_DEST install
}
package () {
+ make DESTDIR=$PKG_DEST install
+
install -v -m755 -d $PKG_DEST/etc/pam.d &&
cat > $PKG_DEST/etc/pam.d/other << "EOF"