mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
libraries/libgksu: Fixed helper path on x86_64 + Compress manual.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
151bb0dba2
commit
146191edd7
3 changed files with 37 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
|||
GCONF_CONFIG_SOURCE="xml::etc/gconf/gconf.xml.defaults" \
|
||||
chroot . gconftool-2 --makefile-install-rule \
|
||||
/etc/gconf/schemas/gksu.schemas \
|
||||
1>/dev/null
|
||||
1>/dev/null 2>/dev/null
|
||||
|
||||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database &> /dev/null
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
PRGNAM=libgksu
|
||||
VERSION=${VERSION:-2.0.12}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -65,10 +65,10 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
|||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
# Patches from gentoo.
|
||||
patch -p1 < $CWD/patches/libgksu-2.0.0-fbsd.patch
|
||||
|
@ -79,6 +79,11 @@ patch -p0 < $CWD/patches/libgksu-2.0.12-fix-make-3.82.patch
|
|||
patch -p1 < $CWD/patches/libgksu-2.0.12-notests.patch
|
||||
patch -p1 < $CWD/patches/libgksu-2.0.12-automake-1.11.2.patch
|
||||
|
||||
# Patch from mancha
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
patch -p1 < $CWD/patches/libgksu-2.0.12-x86_64-path.diff
|
||||
fi
|
||||
|
||||
touch NEWS README
|
||||
libtoolize --force --copy --install
|
||||
autoreconf
|
||||
|
@ -101,9 +106,12 @@ make install DESTDIR=$PKG
|
|||
|
||||
mkdir -p $PKG/etc/gconf/gconf.xml.defaults
|
||||
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
INSTALL ChangeLog COPYING AUTHORS ABOUT-NLS \
|
||||
|
|
22
libraries/libgksu/patches/libgksu-2.0.12-x86_64-path.diff
Normal file
22
libraries/libgksu/patches/libgksu-2.0.12-x86_64-path.diff
Normal file
|
@ -0,0 +1,22 @@
|
|||
From 803667f7c8a8610b270ea0a50df9562b3e11025c Mon Sep 17 00:00:00 2001
|
||||
From: mancha <mancha1@hush.com>
|
||||
Date: Thu, 13 Feb 2014
|
||||
Subject: Change hardcoded path for helper
|
||||
|
||||
SBo installs gksu-run-helper under /usr/lib64 for x86_64 systems.
|
||||
This patch changes the hard-coded path so it is found.
|
||||
|
||||
libgksu/libgksu.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- a/libgksu/libgksu.c
|
||||
+++ b/libgksu/libgksu.c
|
||||
@@ -1936,7 +1936,7 @@ gksu_su_fuller (GksuContext *context,
|
||||
GQuark gksu_quark;
|
||||
int i = 0;
|
||||
|
||||
- gchar auxcommand[] = PREFIX "/lib/" PACKAGE "/gksu-run-helper";
|
||||
+ gchar auxcommand[] = PREFIX "/lib64/" PACKAGE "/gksu-run-helper";
|
||||
|
||||
int fdpty;
|
||||
pid_t pid;
|
Loading…
Reference in a new issue