diff options
Diffstat (limited to 'source/xap/xlockmore/xlockmore.SlackBuild')
-rwxr-xr-x | source/xap/xlockmore/xlockmore.SlackBuild | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/source/xap/xlockmore/xlockmore.SlackBuild b/source/xap/xlockmore/xlockmore.SlackBuild index 6e884cf6..25322d6c 100755 --- a/source/xap/xlockmore/xlockmore.SlackBuild +++ b/source/xap/xlockmore/xlockmore.SlackBuild @@ -85,10 +85,13 @@ mkdir -p $PKG/usr/doc/xlockmore-$VERSION cp -a README $PKG/usr/doc/xlockmore-$VERSION/README cp -a docs/* $PKG/usr/doc/xlockmore-$VERSION cp -a $CWD/l-bob.README $PKG/usr/doc/xlockmore-$VERSION -## Normal compile: -#./configure --prefix=/usr --without-opengl --without-mesagl \ -# --without-dtsaver --without-rplay --without-nas --disable-bomb -# Use MesaGL/OpenGL: + +if [ -L /lib${LIBDIRSUFFIX}/libpam.so.? ]; then + USE_PAM="--enable-pam" +else + unset USE_PAM +fi + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -101,6 +104,7 @@ CXXFLAGS="$SLKCFLAGS" \ --without-motif \ --without-esound \ --without-gtk \ + $USE_PAM \ --enable-appdefaultdir=/etc/X11/app-defaults \ --build=$ARCH-slackware-linux || exit 1 @@ -123,6 +127,13 @@ cat $CWD/slack-desc > $PKG/install/slack-desc find $PKG | xargs file | grep -e "executable" -e "shared object" \ | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +if [ ! -z $USE_PAM ]; then + mkdir -p $PKG/etc/pam.d + cat $CWD/xlock.pam > $PKG/etc/pam.d/xlock.new + # Only used for PAM: + zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh +fi + # Build the package: cd $PKG /sbin/makepkg -l y -c n $TMP/xlockmore-$VERSION-$ARCH-$BUILD.txz |