Mercurial > vanilla
comparison security/linux-pam/linux-pam.sh @ 1216:6710613b88b9
misc: remove build function
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 29 Sep 2021 13:49:32 +0200 |
parents | ddab65a5b3f5 |
children | 27d1a83dc8d6 |
comparison
equal
deleted
inserted
replaced
1215:3214f7fed454 | 1216:6710613b88b9 |
---|---|
56 with_selinux="--enable-selinux" | 56 with_selinux="--enable-selinux" |
57 else | 57 else |
58 with_selinux="--disable-selinux" | 58 with_selinux="--disable-selinux" |
59 fi | 59 fi |
60 | 60 |
61 build() | 61 rm -rf Linux-PAM-$PKGVERSION |
62 { | 62 tar xvf Linux-PAM-$PKGVERSION.tar.xz |
63 rm -rf Linux-PAM-$PKGVERSION | 63 cd Linux-PAM-$PKGVERSION |
64 tar xvf Linux-PAM-$PKGVERSION.tar.xz | |
65 cd Linux-PAM-$PKGVERSION | |
66 | 64 |
67 # https://git.alpinelinux.org/aports/tree/main/linux-pam/APKBUILD#n32 | 65 # https://git.alpinelinux.org/aports/tree/main/linux-pam/APKBUILD#n32 |
68 sed -i -e 's/pam_rhosts//g' modules/Makefile.am | 66 sed -i -e 's/pam_rhosts//g' modules/Makefile.am |
69 | 67 |
70 # https://git.alpinelinux.org/aports/plain/main/linux-pam/musl-fix-pam_exec.patch | 68 # https://git.alpinelinux.org/aports/plain/main/linux-pam/musl-fix-pam_exec.patch |
71 # https://git.alpinelinux.org/aports/plain/main/linux-pam/fix-compat.patch | 69 # https://git.alpinelinux.org/aports/plain/main/linux-pam/fix-compat.patch |
72 patch -p0 < ../musl.patch | 70 patch -p0 < ../musl.patch |
73 | 71 |
74 autoreconf -vif | 72 autoreconf -vif |
75 CC="$CC" \ | 73 CC="$CC" \ |
76 CFLAGS="$CFLAGS" \ | 74 CFLAGS="$CFLAGS" \ |
77 LDFLAGS="$LDFLAGS" \ | 75 LDFLAGS="$LDFLAGS" \ |
78 LIBS="$LIBS" \ | 76 LIBS="$LIBS" \ |
79 ./configure \ | 77 ./configure \ |
80 --build=$CBUILD \ | 78 --build=$CBUILD \ |
81 --host=$CHOST \ | 79 --host=$CHOST \ |
82 --prefix= \ | 80 --prefix= \ |
83 --sbindir=/bin \ | 81 --sbindir=/bin \ |
84 --includedir=/include/security \ | 82 --includedir=/include/security \ |
85 --disable-db \ | 83 --disable-db \ |
86 --libdir=/lib \ | 84 --libdir=/lib \ |
87 --docdir=/share/doc/linux-pam \ | 85 --docdir=/share/doc/linux-pam \ |
88 $with_nls \ | 86 $with_nls \ |
89 $with_selinux | 87 $with_selinux |
90 make | 88 make |
91 make install DESTDIR=$DESTDIR | 89 make install DESTDIR=$DESTDIR |
92 install -Dm0600 ../other $DESTDIR/etc/pam.d/other | 90 install -Dm0600 ../other $DESTDIR/etc/pam.d/other |
93 install -Dm0600 ../system-account $DESTDIR/etc/pam.d/system-account | 91 install -Dm0600 ../system-account $DESTDIR/etc/pam.d/system-account |
94 install -Dm0600 ../system-auth $DESTDIR/etc/pam.d/system-auth | 92 install -Dm0600 ../system-auth $DESTDIR/etc/pam.d/system-auth |
95 install -Dm0600 ../system-password $DESTDIR/etc/pam.d/system-password | 93 install -Dm0600 ../system-password $DESTDIR/etc/pam.d/system-password |
96 install -Dm0600 ../system-session $DESTDIR/etc/pam.d/system-session | 94 install -Dm0600 ../system-session $DESTDIR/etc/pam.d/system-session |
97 find $DESTDIR -type f -name "*.la" -delete | 95 find $DESTDIR -type f -name "*.la" -delete |
98 | 96 |
99 cd .. | 97 cd .. |
100 rm -rf Linux-PAM-$PKGVERSION | 98 rm -rf Linux-PAM-$PKGVERSION |
101 } |