From 516597b50314b84bcb2b97ebf901443e989b88fd Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sun, 29 Jun 2008 22:48:29 +0000 Subject: Add patch for KDE4's kdesu; add startup lines to rc.local --- wicd/build/wicd.SlackBuild | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'wicd') diff --git a/wicd/build/wicd.SlackBuild b/wicd/build/wicd.SlackBuild index 80c877a2..9b72e72b 100755 --- a/wicd/build/wicd.SlackBuild +++ b/wicd/build/wicd.SlackBuild @@ -141,6 +141,11 @@ chown -R root:root . chmod -R u+w,go+r-w,a-s . echo Building ... +# Fix missing KDE4 location of kdesu: +cat $SRCDIR/wicd-1.5.0rc3_misc.py_kde4.patch | patch -p1 \ + 2>&1 | tee $OUTPUT/patch-$PRGNAM.log +# Fix the version hardcoding in the setup script: +sed -i -e "/\/etc\/slackware-version/,/elif os.access/s#/usr/doc/wicd-1.5.0/#/usr/doc/$PRGNAM-$VERSION/#" setup.py # Use our own Slackware rc script, overwriting what is in the source: cat $SRCDIR/rc.wicd > init/slackware/rc.wicd # Only needed to get updated translations: @@ -180,6 +185,16 @@ config() { config etc/rc.d/rc.wicd.new config etc/dbus-1/system.d/wicd.conf.new +# Update rc.local so that wicd will be started on boot: +if ! grep -q "rc.wicd" etc/rc.d/rc.local ; then + cat <<-_EOM_ >> etc/rc.d/rc.local + if [ -x /etc/rc.d/rc.wicd ]; then + # echo "Starting network manager: /etc/rc.d/rc.wicd start" + /etc/rc.d/rc.wicd start + fi + _EOM_ +fi + # Update the desktop database: if [ -x usr/bin/update-desktop-database ]; then chroot . /usr/bin/update-desktop-database /usr/share/applications > /dev/null 2>&1 -- cgit v1.2.3