Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=xfcetesting.git;a=commitdiff;h=5b6acdf6062b45bc5c23769de9677a8b6f3f1124
commit 5b6acdf6062b45bc5c23769de9677a8b6f3f1124 Author: Miklos Vajna <vmik...@frugalware.org> Date: Sun Jan 16 18:38:34 2011 +0100 acpid-2.0.7-1-i686 - versin bump - add install scriptlet diff --git a/source/base/acpid/FrugalBuild b/source/base/acpid/FrugalBuild index 62f846e..15e111d 100644 --- a/source/base/acpid/FrugalBuild +++ b/source/base/acpid/FrugalBuild @@ -2,18 +2,20 @@ # Maintainer: Miklos Vajna <vmik...@frugalware.org> pkgname=acpid -pkgver=1.0.10 -pkgrel=4 +pkgver=2.0.7 +pkgrel=1 pkgdesc="Utilities for using ACPI power management" depends=('glibc>=2.8-3') backup=(etc/acpi/acpi_handler.sh) groups=('base') archs=('i686' 'x86_64' 'ppc') _F_archive_grepv="20010510" -Finclude sourceforge -source=(${source[@]} rc.acpid rc.acpid-{de,hu,it}.po acpi_handler.sh default \ +url="http://tedfelix.com/linux/acpid-netlink.html" +up2date="Flasttar $url" +source=(http://tedfelix.com/linux/acpid-$pkgver.tar.gz \ + rc.acpid rc.acpid-{de,hu,it}.po acpi_handler.sh default \ acpid.service acpid.sysconfig) -sha1sums=('743a11f34993cbd70f011d45634c4520e2d4d426' \ +sha1sums=('e4ec7b318eac545d5b65a4de6a5d0f8dfe273e97' \ '8aa6b0fd5ce0854ca36edd8150656334f14fcee9' \ '67c63dd3f5225c33170e1cfc549c0319ada21a84' \ 'fcf938454f809eeec394ebea64d7f10dfdf11caf' \ diff --git a/source/base/acpid/acpid.install b/source/base/acpid/acpid.install new file mode 100644 index 0000000..234fe40 --- /dev/null +++ b/source/base/acpid/acpid.install @@ -0,0 +1,31 @@ +post_install() +{ + chkconfig --add rc.acpid + ln -sf '/lib/systemd/system/acpid.service' '/etc/systemd/system/multi-user.target.wants/acpid.service' +} + +post_upgrade() +{ + systemctl daemon-reload >/dev/null 2>&1 + if [ `vercmp $2 2.0.7-1` -lt 0 ] ; then + if chkconfig rc.acpid; then + post_install + fi + fi +} + +pre_remove() +{ + chkconfig --del rc.acpid + rm -f '/etc/systemd/system/multi-user.target.wants/acpid.service' + systemctl stop acpid.service >/dev/null 2>&1 +} + +post_remove() +{ + systemctl daemon-reload >/dev/null 2>&1 +} + +op=$1 +shift +$op $* _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git