Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=xfcetesting.git;a=commitdiff;h=bf390cf4c7745afc1ec3d17b34c880c016bd32c9

commit bf390cf4c7745afc1ec3d17b34c880c016bd32c9
Author: James Buren <[email protected]>
Date:   Thu Jul 5 07:12:13 2012 -0500

hddtemp-0.3_beta15-5-x86_64
* add systemd service, config file, and schema integration

diff --git a/source/apps-extra/hddtemp/FrugalBuild 
b/source/apps-extra/hddtemp/FrugalBuild
index 0b91765..44765e0 100644
--- a/source/apps-extra/hddtemp/FrugalBuild
+++ b/source/apps-extra/hddtemp/FrugalBuild
@@ -4,26 +4,33 @@
pkgname=hddtemp
pkgver=0.3_beta15
pkgrealver=0.3-beta15
-pkgrel=4
+pkgrel=5
pkgdesc="hddtemp will show you the hard drive's temperature if the hard drive 
supports it"
url="http://www.guzu.net/linux/hddtemp.php";
groups=('apps-extra')
depends=('glibc')
-archs=('x86_64' 'i686')
+archs=('i686' 'x86_64')
+backup=('etc/sysconfig/hddtemp')
up2date="Flasttar http://download.savannah.nongnu.org/releases/hddtemp";
source=(http://download.savannah.nongnu.org/releases/$pkgname/$pkgname-$pkgrealver.tar.bz2
 \
http://ftp.debian.org/debian/pool/main/h/hddtemp/hddtemp_$pkgrealver-46.diff.gz 
\
-       hddtemp.conf hddtemp-$pkgrealver-reg-eip.patch)
+       hddtemp hddtemp.service hddtemp-$pkgrealver-reg-eip.patch)
sha1sums=('65393b0a4d9862c030c81702d95c1acd00da275b' \
'4a58d0f3bace5781683570c38675e4d27c3ab659' \
-          'd45e3022f614dbf8904ecb1a3e702bb71fcaa808' \
+          '6d020ccc392b7f780780be6991e63cfc9d895d8f' \
+          'bb5975cf03cf2a3c1fc688a3040e27e630953517' \
'3e4332bd253f01cc9ebe92574e19b9c8b9400e44')
+_F_sysvinit_units=()
+_F_systemd_units=(hddtemp=)
+Finclude systemd

build () {
Fcd $pkgname-$pkgrealver
Fbuild --with-db-path=/usr/share/$pkgname/hddtemp.db
Finstallrel 644 debian/hddtemp.db usr/share/$pkgname/hddtemp.db
-       Finstall 644 hddtemp.conf /etc/hddtemp.conf
+       Finstall 644 hddtemp /etc/sysconfig/hddtemp
+       Ffile /lib/systemd/system/hddtemp.service
+       Fgenscriptlet
}

# optimization OK
diff --git a/source/apps-extra/hddtemp/hddtemp 
b/source/apps-extra/hddtemp/hddtemp
new file mode 100644
index 0000000..5a82b87
--- /dev/null
+++ b/source/apps-extra/hddtemp/hddtemp
@@ -0,0 +1,2 @@
+PARAMS="-q -d -F -l 127.0.0.1 -p 7634"
+DRIVES="/dev/sda"
diff --git a/source/apps-extra/hddtemp/hddtemp.conf 
b/source/apps-extra/hddtemp/hddtemp.conf
deleted file mode 100644
index 6a1e18e..0000000
--- a/source/apps-extra/hddtemp/hddtemp.conf
+++ /dev/null
@@ -1,2 +0,0 @@
-PARAMS="-q -l 127.0.0.1"
-DRIVES="/dev/sda"
diff --git a/source/apps-extra/hddtemp/hddtemp.service 
b/source/apps-extra/hddtemp/hddtemp.service
new file mode 100644
index 0000000..63c9c2e
--- /dev/null
+++ b/source/apps-extra/hddtemp/hddtemp.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Hard Disk Drive Temperature Monitor
+After=network.target
+
+[Service]
+EnvironmentFile=/etc/sysconfig/hddtemp
+ExecStart=/usr/sbin/hddtemp $PARAMS $DRIVES
+Type=simple
+
+[Install]
+WantedBy=multi-user.target
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to