summaryrefslogtreecommitdiffstats
path: root/system/thermal_daemon/thermal_daemon.SlackBuild
diff options
context:
space:
mode:
author Robby Workman2014-03-29 02:37:47 +0100
committer Erik Hanson2014-04-12 20:59:47 +0200
commit322cfb172d9c04dfc3aa7a1908cb61dbab952443 (patch)
tree536daa90f7af1be7251fed97ff8a8de6a0dfb375 /system/thermal_daemon/thermal_daemon.SlackBuild
parent6a529b5875d133f72f526f2e5301fed2940d03fb (diff)
downloadslackbuilds-322cfb172d9c04dfc3aa7a1908cb61dbab952443.tar.gz
system/thermal-daemon: Miscellaneous cleanups
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/thermal_daemon/thermal_daemon.SlackBuild')
-rw-r--r--system/thermal_daemon/thermal_daemon.SlackBuild12
1 files changed, 7 insertions, 5 deletions
diff --git a/system/thermal_daemon/thermal_daemon.SlackBuild b/system/thermal_daemon/thermal_daemon.SlackBuild
index c77fbb1958..9457eed88a 100644
--- a/system/thermal_daemon/thermal_daemon.SlackBuild
+++ b/system/thermal_daemon/thermal_daemon.SlackBuild
@@ -86,9 +86,12 @@ find -L . \
make
make install DESTDIR=$PKG
-#Remove /etc/init and systemd stuff
+# Remove /etc/init but keep dbus config
rm -r $PKG/etc/init
-rm -r $PKG/etc/dbus-1
+
+# Don't clobber configs
+mv $PKG/etc/thermald/thermal-conf.xml $PKG/etc/thermald/thermal-conf.xml.new
+mv $PKG/etc/thermald/thermal-cpu-cdev-order.xml $PKG/etc/thermald/thermal-cpu-cdev-order.xml.new
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
@@ -97,13 +100,12 @@ 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 \
- COPYING README.txt \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING README.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}