[arch-commits] Commit in apcupsd/repos (8 files)

Sergej Pupykin spupykin at nymeria.archlinux.org
Thu Jul 4 10:10:09 UTC 2013


    Date: Thursday, July 4, 2013 @ 12:10:09
  Author: spupykin
Revision: 93478

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  apcupsd/repos/community-staging-i686/
  apcupsd/repos/community-staging-i686/PKGBUILD
    (from rev 93477, apcupsd/trunk/PKGBUILD)
  apcupsd/repos/community-staging-i686/apcupsd-tmpfiles.conf
    (from rev 93477, apcupsd/trunk/apcupsd-tmpfiles.conf)
  apcupsd/repos/community-staging-i686/apcupsd.service
    (from rev 93477, apcupsd/trunk/apcupsd.service)
  apcupsd/repos/community-staging-x86_64/
  apcupsd/repos/community-staging-x86_64/PKGBUILD
    (from rev 93477, apcupsd/trunk/PKGBUILD)
  apcupsd/repos/community-staging-x86_64/apcupsd-tmpfiles.conf
    (from rev 93477, apcupsd/trunk/apcupsd-tmpfiles.conf)
  apcupsd/repos/community-staging-x86_64/apcupsd.service
    (from rev 93477, apcupsd/trunk/apcupsd.service)

------------------------------------------------+
 community-staging-i686/PKGBUILD                |   46 +++++++++++++++++++++++
 community-staging-i686/apcupsd-tmpfiles.conf   |    2 +
 community-staging-i686/apcupsd.service         |    8 ++++
 community-staging-x86_64/PKGBUILD              |   46 +++++++++++++++++++++++
 community-staging-x86_64/apcupsd-tmpfiles.conf |    2 +
 community-staging-x86_64/apcupsd.service       |    8 ++++
 6 files changed, 112 insertions(+)

Copied: apcupsd/repos/community-staging-i686/PKGBUILD (from rev 93477, apcupsd/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2013-07-04 10:10:09 UTC (rev 93478)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Todd Musall <tmusall at comcast.net>
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=apcupsd
+pkgver=3.14.10
+pkgrel=7
+pkgdesc="Power mangement and controlling most of APC's UPS models"
+arch=(i686 x86_64)
+url="http://www.apcupsd.org"
+license=('GPL')
+depends=('gcc-libs')
+optdepends=('gd: for CGI'
+            'gconf: for frontend'
+            'gtk2: for frontend')
+makedepends=('pkgconfig' 'gd' 'gconf' 'gtk2' 'systemd-sysvcompat')
+backup=(etc/apcupsd/apcupsd.conf etc/apcupsd/hosts.conf
+        etc/apcupsd/multimon.conf)
+source=(http://downloads.sourceforge.net/apcupsd/$pkgname-$pkgver.tar.gz
+        apcupsd.service
+        apcupsd-tmpfiles.conf)
+sha256sums=('0707b5ec9916fbde9e44eb8d18037c8d8f75dfd6aeef51aba5487e189eef2032'
+            '145e88863335f077fc354b4d263b15f64af67b45a10ed37c68ebd468181e23f7'
+            'b00cd1a31de70a172698d486583aa79113b99c1bb4b882ab906d0e37504d7f55')
+
+build() {
+	cd "$srcdir/$pkgname-$pkgver"
+	./configure --prefix=/usr  --libexecdir=/usr/lib/$pkgname \
+		--sbindir=/usr/bin \
+		--enable-cgi --enable-usb --enable-net \
+		--with-upstype=usb --with-upscable=usb \
+		--with-serial-dev=/dev/usb/hid/hiddev[0-9] \
+		--enable-pthreads --enable-gapcmon
+	make
+}
+
+package() {
+	cd "$srcdir/$pkgname-$pkgver"
+	make DESTDIR="$pkgdir" install
+	install -Dm644 "$srcdir/apcupsd.service" "$pkgdir/usr/lib/systemd/system/apcupsd.service"
+	install -Dm644 "$srcdir/apcupsd-tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/apcupsd.conf"
+	chmod 755 "$pkgdir"/usr/bin/*
+	install -dm755 "$pkgdir/usr/lib/$pkgname/cgi-bin"
+	mv "$pkgdir"/etc/apcupsd/*.cgi "$pkgdir/usr/lib/$pkgname/cgi-bin"
+}

Copied: apcupsd/repos/community-staging-i686/apcupsd-tmpfiles.conf (from rev 93477, apcupsd/trunk/apcupsd-tmpfiles.conf)
===================================================================
--- community-staging-i686/apcupsd-tmpfiles.conf	                        (rev 0)
+++ community-staging-i686/apcupsd-tmpfiles.conf	2013-07-04 10:10:09 UTC (rev 93478)
@@ -0,0 +1,2 @@
+r /etc/apcupsd/powerfail
+r /etc/nologin
\ No newline at end of file

Copied: apcupsd/repos/community-staging-i686/apcupsd.service (from rev 93477, apcupsd/trunk/apcupsd.service)
===================================================================
--- community-staging-i686/apcupsd.service	                        (rev 0)
+++ community-staging-i686/apcupsd.service	2013-07-04 10:10:09 UTC (rev 93478)
@@ -0,0 +1,8 @@
+[Unit]
+Description=APC UPS Monitor
+
+[Service]
+ExecStart=/usr/bin/apcupsd -b
+
+[Install]
+WantedBy=multi-user.target

Copied: apcupsd/repos/community-staging-x86_64/PKGBUILD (from rev 93477, apcupsd/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2013-07-04 10:10:09 UTC (rev 93478)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Todd Musall <tmusall at comcast.net>
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=apcupsd
+pkgver=3.14.10
+pkgrel=7
+pkgdesc="Power mangement and controlling most of APC's UPS models"
+arch=(i686 x86_64)
+url="http://www.apcupsd.org"
+license=('GPL')
+depends=('gcc-libs')
+optdepends=('gd: for CGI'
+            'gconf: for frontend'
+            'gtk2: for frontend')
+makedepends=('pkgconfig' 'gd' 'gconf' 'gtk2' 'systemd-sysvcompat')
+backup=(etc/apcupsd/apcupsd.conf etc/apcupsd/hosts.conf
+        etc/apcupsd/multimon.conf)
+source=(http://downloads.sourceforge.net/apcupsd/$pkgname-$pkgver.tar.gz
+        apcupsd.service
+        apcupsd-tmpfiles.conf)
+sha256sums=('0707b5ec9916fbde9e44eb8d18037c8d8f75dfd6aeef51aba5487e189eef2032'
+            '145e88863335f077fc354b4d263b15f64af67b45a10ed37c68ebd468181e23f7'
+            'b00cd1a31de70a172698d486583aa79113b99c1bb4b882ab906d0e37504d7f55')
+
+build() {
+	cd "$srcdir/$pkgname-$pkgver"
+	./configure --prefix=/usr  --libexecdir=/usr/lib/$pkgname \
+		--sbindir=/usr/bin \
+		--enable-cgi --enable-usb --enable-net \
+		--with-upstype=usb --with-upscable=usb \
+		--with-serial-dev=/dev/usb/hid/hiddev[0-9] \
+		--enable-pthreads --enable-gapcmon
+	make
+}
+
+package() {
+	cd "$srcdir/$pkgname-$pkgver"
+	make DESTDIR="$pkgdir" install
+	install -Dm644 "$srcdir/apcupsd.service" "$pkgdir/usr/lib/systemd/system/apcupsd.service"
+	install -Dm644 "$srcdir/apcupsd-tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/apcupsd.conf"
+	chmod 755 "$pkgdir"/usr/bin/*
+	install -dm755 "$pkgdir/usr/lib/$pkgname/cgi-bin"
+	mv "$pkgdir"/etc/apcupsd/*.cgi "$pkgdir/usr/lib/$pkgname/cgi-bin"
+}

Copied: apcupsd/repos/community-staging-x86_64/apcupsd-tmpfiles.conf (from rev 93477, apcupsd/trunk/apcupsd-tmpfiles.conf)
===================================================================
--- community-staging-x86_64/apcupsd-tmpfiles.conf	                        (rev 0)
+++ community-staging-x86_64/apcupsd-tmpfiles.conf	2013-07-04 10:10:09 UTC (rev 93478)
@@ -0,0 +1,2 @@
+r /etc/apcupsd/powerfail
+r /etc/nologin
\ No newline at end of file

Copied: apcupsd/repos/community-staging-x86_64/apcupsd.service (from rev 93477, apcupsd/trunk/apcupsd.service)
===================================================================
--- community-staging-x86_64/apcupsd.service	                        (rev 0)
+++ community-staging-x86_64/apcupsd.service	2013-07-04 10:10:09 UTC (rev 93478)
@@ -0,0 +1,8 @@
+[Unit]
+Description=APC UPS Monitor
+
+[Service]
+ExecStart=/usr/bin/apcupsd -b
+
+[Install]
+WantedBy=multi-user.target




More information about the arch-commits mailing list