[arch-commits] Commit in modemmanager/trunk (PKGBUILD modem-manager.service)

Jan Steffens heftig at archlinux.org
Fri Aug 17 22:41:24 UTC 2012


    Date: Friday, August 17, 2012 @ 18:41:23
  Author: heftig
Revision: 165388

Add systemd service

Added:
  modemmanager/trunk/modem-manager.service
Modified:
  modemmanager/trunk/PKGBUILD

-----------------------+
 PKGBUILD              |   15 +++++++++++----
 modem-manager.service |   10 ++++++++++
 2 files changed, 21 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-08-17 22:28:28 UTC (rev 165387)
+++ PKGBUILD	2012-08-17 22:41:23 UTC (rev 165388)
@@ -3,17 +3,19 @@
 pkgname=modemmanager
 _realname=ModemManager
 pkgver=0.5.2.0
-pkgrel=2
+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)
-optdepends=('usb_modeswitch: install if your modem shows up as a storage drive')
-sha256sums=('7f8b3e1996a24e031df7534e226a0f0c7c2dd8b30322e6c5f4611dc1a848e6c8')
+source=(http://download.gnome.org/sources/$_realname/0.5/$_realname-$pkgver.tar.xz
+        modem-manager.service)
+sha256sums=('7f8b3e1996a24e031df7534e226a0f0c7c2dd8b30322e6c5f4611dc1a848e6c8'
+            '66c9947972066dd5494c3a18b0e833f236e0866b455675368b5994900cbaf384')
 
 build() {
   cd "$_realname-$pkgver"
@@ -28,4 +30,9 @@
 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"
 }

Added: modem-manager.service
===================================================================
--- modem-manager.service	                        (rev 0)
+++ modem-manager.service	2012-08-17 22:41:23 UTC (rev 165388)
@@ -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




More information about the arch-commits mailing list