diff options
-rw-r--r-- | abs/extra/apcupsd/PKGBUILD | 10 | ||||
-rw-r--r-- | abs/extra/apcupsd/apcupsd.install | 15 |
2 files changed, 8 insertions, 17 deletions
diff --git a/abs/extra/apcupsd/PKGBUILD b/abs/extra/apcupsd/PKGBUILD index 936ae52..c994545 100644 --- a/abs/extra/apcupsd/PKGBUILD +++ b/abs/extra/apcupsd/PKGBUILD @@ -5,18 +5,18 @@ # Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com> pkgname=apcupsd -pkgver=3.14.12 -pkgrel=3 +pkgver=3.14.13 +pkgrel=2 pkgdesc="Power mangement and controlling most of APC's UPS models" arch=(i686 x86_64) url="http://www.apcupsd.org" license=('GPL') -install=apcupsd.install -depends=('gcc-libs') +depends=('gcc-libs' 'systemd-sysvcompat') optdepends=('gd: for CGI' 'gconf: for frontend' 'gtk2: for frontend') makedepends=('pkgconfig' 'gd' 'gconf' 'gtk2') +install=apcupsd.install backup=(etc/apcupsd/apcupsd.conf etc/apcupsd/hosts.conf etc/apcupsd/multimon.conf @@ -30,7 +30,7 @@ backup=(etc/apcupsd/apcupsd.conf source=(http://downloads.sourceforge.net/apcupsd/$pkgname-$pkgver.tar.gz{,.sig} apcupsd.service apcupsd-tmpfiles.conf) -sha256sums=('1b4f703cb19cfdf44daf173dc8394cafd30fee0b30a0c75a7d19db622454a440' +sha256sums=('57ecbde01d0448bf8c4dbfe0ad016724ae66ab98adf2de955bf2be553c5d03f9' 'SKIP' '145e88863335f077fc354b4d263b15f64af67b45a10ed37c68ebd468181e23f7' 'a4474cfcd607c5e9b64e27eec7cbc2b0bcf08c8ea37fd1f0f28e98ac2883fd4f') diff --git a/abs/extra/apcupsd/apcupsd.install b/abs/extra/apcupsd/apcupsd.install index 3f1e6b2..06eeee4 100644 --- a/abs/extra/apcupsd/apcupsd.install +++ b/abs/extra/apcupsd/apcupsd.install @@ -1,24 +1,15 @@ -# This is a default template for a post-install scriptlet. You can -# remove any functions you don't need (and this header). - -# arg 1: the new package version post_install() { add_service.sh apcupsd - /sbin/sv start apcupsd + sv start apcupsd + systemd-tmpfiles --create apcupsd.conf } -# arg 1: the new package version -# arg 2: the old package version post_upgrade() { post_install } -# arg 1: the old package version post_remove() { - /sbin/sv stop apcupsd + sv stop apcupsd remove_service.sh apcupsd } -op=$1 -shift -$op $* |