Added system-tools-backends

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
Willy Sudiarto Raharjo 2013-09-28 22:15:57 +07:00
parent 21075b9b5d
commit 7a462556c1
4 changed files with 261 additions and 0 deletions

View file

@ -0,0 +1,7 @@
The System Tools Backends are a set of cross-platform modules for
Linux, FreeBSD and other Unix systems.
The backends provide an common DBus interface to all platforms to
modify/read the system configuration in a distro independent fashion
This requires: perl-net-dbus

View file

@ -0,0 +1,118 @@
--- Init/Services.pm.orig 2013-09-28 19:12:43.731064063 +0700
+++ Init/Services.pm 2013-09-28 20:04:03.569085970 +0700
@@ -51,6 +51,8 @@
"pld-1.0" => "redhat-6.2",
"vine-3.0" => "redhat-6.2",
"slackware-9.1.0" => "freebsd-5",
+ "slackware-14.0" => "freebsd-5",
+ "slackware-14.1" => "freebsd-5",
"gentoo" => "gentoo",
"archlinux" => "freebsd-5",
"freebsd-5" => "freebsd-5",
@@ -333,6 +335,8 @@
"vine-3.0" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"],
"ark" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"],
"solaris-2.11" => ["$gst_prefix/etc", "$gst_prefix/etc/init.d", "../init.d"],
+ "slackware-14.0" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/init.d", "../init.d"],
+ "slackware-14.1" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/init.d", "../init.d"]
);
my $res;
--- Network/Hosts.pm.orig 2013-09-28 19:33:35.479961652 +0700
+++ Network/Hosts.pm 2013-09-28 19:36:59.012609330 +0700
@@ -50,6 +50,8 @@
"vine-3.0" => "redhat-6.2",
"ark" => "redhat-6.2",
"slackware-9.1.0" => "suse-9.0",
+ "slackware-14.0" => "suse-9.0",
+ "slackware-14.1" => "suse-9.0",
"gentoo" => "gentoo",
"freebsd-5" => "freebsd-5",
"solaris-2.11" => "solaris-2.11",
--- Network/Ifaces.pm.orig 2013-09-28 19:33:40.688875647 +0700
+++ Network/Ifaces.pm 2013-09-28 19:37:54.336700937 +0700
@@ -1997,6 +1997,8 @@
"vine-3.0" => "vine-3.0",
"ark" => "vine-3.0",
"slackware-9.1.0" => "slackware-9.1.0",
+ "slackware-14.0" => "slackware-9.1.0",
+ "slackware-14.1" => "slackware-9.1.0",
"gentoo" => "gentoo",
"freebsd-5" => "freebsd-5",
"solaris-2.11" => "solaris-2.11",
--- Shares/SMB.pm.orig 2013-09-28 19:39:08.739481143 +0700
+++ Shares/SMB.pm 2013-09-28 19:39:47.280850103 +0700
@@ -139,6 +139,8 @@
"mandrake-9.0" => "debian",
"suse-9.0" => "debian",
"slackware-9.1.0" => "debian",
+ "slackware-14.0" => "debian",
+ "slackware-14.1" => "debian",
"gentoo" => "debian",
"archlinux" => "debian",
"pld-1.0" => "pld-1.0",
--- Time/NTP.pm.orig 2013-09-28 19:40:17.178360976 +0700
+++ Time/NTP.pm 2013-09-28 19:40:42.596945383 +0700
@@ -37,6 +37,8 @@
"debian" => "redhat-6.2",
"suse-9.0" => "redhat-6.2",
"slackware-9.1.0" => "redhat-6.2",
+ "slackware-14.0" => "redhat-6.2",
+ "slackware-14.1" => "redhat-6.2",
"gentoo" => "redhat-6.2",
"pld-1.0" => "pld-1.0",
"vine-3.0" => "redhat-6.2",
--- Time/TimeDate.pm.orig 2013-09-28 19:41:06.297558094 +0700
+++ Time/TimeDate.pm 2013-09-28 20:05:18.313773259 +0700
@@ -168,6 +168,8 @@
"mandrake-9.0" => "redhat-6.2",
"suse-9.0" => "redhat-6.2",
"slackware-9.1.0" => "redhat-6.2",
+ "slackware-14.0" => "redhat-6.2",
+ "slackware-14.1" => "redhat-6.2",
"gentoo" => "redhat-6.2",
"archlinux" => "archlinux",
"pld-1.0" => "redhat-6.2",
--- Users/Users.pm.orig 2013-09-28 19:41:36.448065711 +0700
+++ Users/Users.pm 2013-09-28 19:42:14.399446403 +0700
@@ -251,6 +251,8 @@
'gentoo' => $gentoo_logindefs_defaults,
'archlinux' => $gentoo_logindefs_defaults,
'slackware-9.1.0' => $gentoo_logindefs_defaults,
+ 'slackware-14.0' => $gentoo_logindefs_defaults,
+ 'slackware-14.1' => $gentoo_logindefs_defaults,
'freebsd-5' => $freebsd_logindefs_defaults,
'suse-9.0' => $gentoo_logindefs_defaults,
'solaris-2.11' => $gentoo_logindefs_defaults,
--- Utils/Platform.pm.orig 2013-09-28 19:42:39.319040037 +0700
+++ Utils/Platform.pm 2013-09-28 20:05:01.382070411 +0700
@@ -61,12 +61,14 @@
"conectiva-10" => [ "Conectiva Linux", "10", "" ],
"suse-9.0" => [ "SuSE Linux", "9.0", "" ],
"suse-9.1" => [ "SuSE Linux", "9.1", "" ],
- "slackware-9.1.0" => [ "Slackware", "9.1.0", "" ],
- "slackware-10.0.0" => [ "Slackware", "10.0.0", "" ],
- "slackware-10.1.0" => [ "Slackware", "10.1.0", "" ],
- "slackware-10.2.0" => [ "Slackware", "10.2.0", "" ],
- "slackware-11.0.0" => [ "Slackware", "11.0.0", "" ],
- "slackware-12.0.0" => [ "Slackware", "12.0.0", "" ],
+ "slackware-9.1" => [ "Slackware", "9.1", "" ],
+ "slackware-10.0" => [ "Slackware", "10.0", "" ],
+ "slackware-10.1" => [ "Slackware", "10.1", "" ],
+ "slackware-10.2" => [ "Slackware", "10.2", "" ],
+ "slackware-11.0" => [ "Slackware", "11.0", "" ],
+ "slackware-12.0" => [ "Slackware", "12.0", "" ],
+ "slackware-14.0" => [ "Slackware", "14.0", "" ],
+ "slackware-14.1" => [ "Slackware", "14.1", "" ],
"bluewhite64-12.0.0" => [ "Bluewhite64", "12.0.0", "" ],
"freebsd-4" => [ "FreeBSD", "4", "" ],
"freebsd-5" => [ "FreeBSD", "5", "" ],
@@ -138,6 +140,8 @@
"slackware-10.2.0" => "slackware-9.1.0",
"slackware-11.0.0" => "slackware-9.1.0",
"slackware-12.0.0" => "slackware-9.1.0",
+ "slackware-14.0.0" => "slackware-9.1.0",
+ "slackware-14.1.0" => "slackware-9.1.0",
"bluewhite64-12.0.0" => "slackware-9.1.0",
"suse-9.1" => "suse-9.0",
"vine-3.1" => "vine-3.0",

View file

@ -0,0 +1,12 @@
|-----handy-ruler------------------------------------------------------|
system-tools-backends: system-tools-backends (Cross-Platform Modules)
system-tools-backends:
system-tools-backends: The System Tools Backends are a set of cross-platform modules for
system-tools-backends: Linux, FreeBSD and other Unix systems.
system-tools-backends:
system-tools-backends: The backends provide an common DBus interface to all platforms to
system-tools-backends: modify/read the system configuration in a distro independent fashion
system-tools-backends:
system-tools-backends: Homepage: http://system-tools-backends.freedesktop.org/
system-tools-backends:
system-tools-backends:

View file

@ -0,0 +1,124 @@
#!/bin/sh
# Slackware build script for system-tools-backends
# Copyright 2013 Willy Sudiarto Raharjo <willysr@slackware-id.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=system-tools-backends
VERSION=${VERSION:-2.10.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_msb}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
wget -c http://ftp.gnome.org/pub/gnome/sources/system-tools-backends/2.10/$PRGNAM-$VERSION.tar.bz2
NUMJOBS=${NUMJOBS:-" -j8 "}
CWD=$(pwd)
TMP=${TMP:-/tmp/msb}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -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 {} \;
# Added support to Slackware 14.0 and 14.1
patch -p0 < $CWD/services.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--disable-static \
--build=$ARCH-slackware-linux
make $NUMJOBS || make
make install DESTDIR=$PKG
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
# Compress and link manpages
if [ -d $PKG/usr/man ]; then
( cd $PKG/usr/man
for manpagedir in $(find . -type d -name "man*") ; do
( cd $manpagedir
for eachpage in $( find . -type l -maxdepth 1) ; do
ln -s $( readlink $eachpage ).gz $eachpage.gz
rm $eachpage
done
gzip -9 *.?
)
done
)
fi
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS COPYING* ChangeLog INSTALL NEWS README \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/doc/$PRGNAM-$VERSION/ -type f -exec chmod 644 {} \;
chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}