summaryrefslogtreecommitdiff
path: root/testing/modemmanager
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-08-19 00:04:07 +0000
committerroot <root@rshg054.dnsready.net>2012-08-19 00:04:07 +0000
commitc512f9eb344575ac6bce0b13729c05e1760cd094 (patch)
tree8d60a9bd559a941bba52a67170900c159d2024eb /testing/modemmanager
parent948da5eabcbf8d74270e661d0730ba1c203913f5 (diff)
Sun Aug 19 00:04:07 UTC 2012
Diffstat (limited to 'testing/modemmanager')
-rw-r--r--testing/modemmanager/PKGBUILD38
-rw-r--r--testing/modemmanager/modem-manager.service10
2 files changed, 48 insertions, 0 deletions
diff --git a/testing/modemmanager/PKGBUILD b/testing/modemmanager/PKGBUILD
new file mode 100644
index 000000000..403673c39
--- /dev/null
+++ b/testing/modemmanager/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id: PKGBUILD 165395 2012-08-17 23:24:24Z heftig $
+# Maintainer: Ionut Biru <ibiru@archlinux.org>
+pkgname=modemmanager
+_realname=ModemManager
+pkgver=0.5.2.0
+pkgrel=3
+pkgdesc="Mobile broadband modem management service"
+arch=('i686' 'x86_64')
+url="http://cgit.freedesktop.org/ModemManager/ModemManager/"
+license=('GPL2')
+depends=('dbus-glib' 'udev' 'ppp')
+makedepends=('intltool')
+optdepends=('usb_modeswitch: install if your modem shows up as a storage drive')
+options=('!libtool')
+source=(http://download.gnome.org/sources/$_realname/0.5/$_realname-$pkgver.tar.xz
+ modem-manager.service)
+sha256sums=('7f8b3e1996a24e031df7534e226a0f0c7c2dd8b30322e6c5f4611dc1a848e6c8'
+ '66c9947972066dd5494c3a18b0e833f236e0866b455675368b5994900cbaf384')
+
+build() {
+ cd "$_realname-$pkgver"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --with-udev-base-dir=/usr/lib/udev \
+ --disable-static
+ make
+}
+
+package() {
+ cd "$_realname-$pkgver"
+ make DESTDIR="$pkgdir" install
+
+ install -Dm644 "$srcdir/modem-manager.service" \
+ "$pkgdir/usr/lib/systemd/system/modem-manager.service"
+ echo "SystemdService=modem-manager.service" \
+ >> "$pkgdir/usr/share/dbus-1/system-services/org.freedesktop.ModemManager.service"
+}
diff --git a/testing/modemmanager/modem-manager.service b/testing/modemmanager/modem-manager.service
new file mode 100644
index 000000000..4e0c43c8c
--- /dev/null
+++ b/testing/modemmanager/modem-manager.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Modem Manager
+
+[Service]
+Type=dbus
+BusName=org.freedesktop.ModemManager
+ExecStart=/usr/sbin/modem-manager
+
+[Install]
+WantedBy=multi-user.target