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

commit a28fc228a0881a2a0fb7e40e078414dd3549e98b
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Tue Dec 7 01:42:33 2010 +0100

acpid-1.0.10-3-i686

- add acpid.service for systemd

diff --git a/source/base/acpid/FrugalBuild b/source/base/acpid/FrugalBuild
index f49c680..79e3e62 100644
--- a/source/base/acpid/FrugalBuild
+++ b/source/base/acpid/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=acpid
pkgver=1.0.10
-pkgrel=1
+pkgrel=3
pkgdesc="Utilities for using ACPI power management"
depends=('glibc>=2.8-3')
backup=(etc/acpi/acpi_handler.sh)
@@ -11,14 +11,16 @@ groups=('base')
archs=('i686' 'x86_64' 'ppc')
_F_archive_grepv="20010510"
Finclude sourceforge
-source=(${sour...@]} rc.acpid rc.acpid-{de,hu,it}.po acpi_handler.sh default)
+source=(${sour...@]} rc.acpid rc.acpid-{de,hu,it}.po acpi_handler.sh default \
+               acpid.service)
sha1sums=('743a11f34993cbd70f011d45634c4520e2d4d426' \
'009e8c404a93db943f57631bc95625609fb29255' \
'67c63dd3f5225c33170e1cfc549c0319ada21a84' \
'fcf938454f809eeec394ebea64d7f10dfdf11caf' \
'fd74c81eab81fad2eedf7f11ac14a33f97f2b213' \
'f232c48dbd9200e4ac79e2edc6ab5929835f42e0' \
-          'afac4fc82e6ca65d4a156f39016ee8d15c6eeabc')
+          'afac4fc82e6ca65d4a156f39016ee8d15c6eeabc' \
+          '6e8e2fadb63903c8ed336a579aba9aa765b64d63')

build()
{
@@ -31,6 +33,7 @@ build()
Fexe /etc/acpi/acpi_handler.sh
Fexe /etc/acpi/events/default
Frcd2
+       Ffile /lib/systemd/system/acpid.service
}

# optimization OK
diff --git a/source/base/acpid/acpid.service b/source/base/acpid/acpid.service
new file mode 100644
index 0000000..ee590a4
--- /dev/null
+++ b/source/base/acpid/acpid.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=ACPI Event Daemon
+After=syslog.target
+
+# This could probably benefit from socket activation, but honestly I think it
+# is time for acpid to go away, and hence I am not planning to spend the time
+# to add socket activation here. We use Type=forking to ensure that the
+# communication sockets are in place before boot proceeds with any service
+# needing this service. Would acpid support socket activation we could use
+# Type=simple here.
+
+[Service]
+ExecStart=/usr/sbin/acpid -f
+
+[Install]
+WantedBy=multi-user.target
+
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to