Mercurial > vanilla
view security/linux-pam/linux-pam.sh @ 1341:9f35c15329d1 default tip @
dev/meson: downgrade to 0.59.4 due to many regression
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 22 Dec 2021 21:52:57 +0100 |
parents | 9867e578b1a9 |
children |
line wrap: on
line source
#!/bin/sh # # Copyright (c) 2019-2021 David Demelier <markand@malikania.fr> # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # PKGNAME=linux-pam PKGVERSION=1.5.2 PKGREVISION=1 PKGLICENSE="BSD" PKGSUMMARY="pluggable authentication modules" PKGWWW="http://www.linux-pam.org" PKGDOWNLOAD="https://github.com/linux-pam/linux-pam/releases/download/v$PKGVERSION/Linux-PAM-$PKGVERSION.tar.xz" PKGOPTIONS="NLS SELINUX" PKGPROTECT="etc/environment etc/pam.d/other etc/pam.d/system-account etc/pam.d/system-auth etc/pam.d/system-password etc/pam.d/system-session etc/security/access.conf etc/security/group.conf etc/security/limits.conf etc/security/namespace.conf etc/security/namespace.init etc/security/pam_env.conf etc/security/time.conf" : ${CHOST:=$(uname -m)-linux-musl} : ${CBUILD:=$(uname -m)-linux-musl} : ${CC:=clang} : ${CFLAGS:=-O2} : ${LDFLAGS:=} : ${LIBS:=} : ${NLS:=yes} : ${SELINUX:=no} if [ "$NLS" = "yes" ]; then PKGDEPENDS="gettext $PKGDEPENDS" with_nls="--enable-nls" else with_nls="--disable-nls" fi if [ "$SELINUX" = "yes" ]; then with_selinux="--enable-selinux" else with_selinux="--disable-selinux" fi build() { rm -rf Linux-PAM-$PKGVERSION tar -xvf Linux-PAM-$PKGVERSION.tar.xz cd Linux-PAM-$PKGVERSION #autoreconf -vif CC="$CC" \ CFLAGS="$CFLAGS" \ LDFLAGS="$LDFLAGS" \ LIBS="$LIBS" \ ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix= \ --sbindir=/bin \ --includedir=/include/security \ --disable-db \ --libdir=/lib \ --docdir=/share/doc/linux-pam \ $with_nls \ $with_selinux make make install DESTDIR=$DESTDIR install -Dm0600 ../other $DESTDIR/etc/pam.d/other install -Dm0600 ../system-account $DESTDIR/etc/pam.d/system-account install -Dm0600 ../system-auth $DESTDIR/etc/pam.d/system-auth install -Dm0600 ../system-password $DESTDIR/etc/pam.d/system-password install -Dm0600 ../system-session $DESTDIR/etc/pam.d/system-session find $DESTDIR -type f -name "*.la" -delete cd .. rm -rf Linux-PAM-$PKGVERSION }