[arch-commits] Commit in ossp/trunk (4 files)

Jan Steffens heftig at archlinux.org
Tue Feb 7 11:48:52 EST 2012


    Date: Tuesday, February 7, 2012 @ 11:48:52
  Author: heftig
Revision: 149422

add systemd files, sequencer

Added:
  ossp/trunk/osspd.modules-load
  ossp/trunk/osspd.service
Modified:
  ossp/trunk/PKGBUILD
  ossp/trunk/osspd.rc.d

--------------------+
 PKGBUILD           |   23 +++++++++++++++--------
 osspd.modules-load |    2 ++
 osspd.rc.d         |    2 +-
 osspd.service      |    8 ++++++++
 4 files changed, 26 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-02-07 16:45:52 UTC (rev 149421)
+++ PKGBUILD	2012-02-07 16:48:52 UTC (rev 149422)
@@ -1,10 +1,10 @@
 # $Id$
-# Maintainer: Jan "heftig" Steffens <jan.steffens at gmail.com>
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
 # Contributor: Jonathan Liu <net147 at gmail.com>
 
 pkgname=ossp
 pkgver=1.3.2
-pkgrel=11
+pkgrel=12
 pkgdesc="Emulate OSS device using CUSE"
 arch=(i686 x86_64)
 url="http://sourceforge.net/projects/osspd"
@@ -15,10 +15,12 @@
             "alsa-lib: ALSA backend")
 backup=(etc/conf.d/osspd)
 source=("http://downloads.sourceforge.net/project/osspd/${pkgname}-${pkgver}.tar.gz"
-        osspd.rc.d osspd.conf.d)
+        osspd.rc.d osspd.conf.d osspd.service osspd.modules-load)
 md5sums=('ee2d8c894de2fa4eb3291804fbc7df45'
-         '0c02208ce1dfe74b6e9840f3600678cc'
-         '5a5a3db1bb3c98d48d4794613cf12ef0')
+         '103d9d1b4d89872618ffa0326ddf93f1'
+         '5a5a3db1bb3c98d48d4794613cf12ef0'
+         '98dc2b2f55f69e3d2fb37f32742d30d4'
+         '36c01e144db7cf253df12d8ad9dac942')
 
 build() {
   cd "$srcdir/$pkgname-$pkgver"
@@ -35,8 +37,13 @@
   sed -e 's/GROUP="audio"/SUBSYSTEM=="cuse", MODE="0666"/' \
       -i "$pkgdir/lib/udev/rules.d/98-osscuse.rules"
 
-  install -D -m644 README "$pkgdir/usr/share/doc/$pkgname/README"
+  install -Dm644 README "$pkgdir/usr/share/doc/$pkgname/README"
 
-  install -D -m755 "$srcdir/osspd.rc.d" "$pkgdir/etc/rc.d/osspd"
-  install -D -m644 "$srcdir/osspd.conf.d" "$pkgdir/etc/conf.d/osspd"
+  # initscripts
+  install -Dm755 "$srcdir/osspd.rc.d" "$pkgdir/etc/rc.d/osspd"
+  install -Dm644 "$srcdir/osspd.conf.d" "$pkgdir/etc/conf.d/osspd"
+
+  # systemd
+  install -Dm644 "$srcdir/osspd.service" "$pkgdir/lib/systemd/system/osspd.service"
+  install -Dm644 "$srcdir/osspd.modules-load" "$pkgdir/usr/lib/modules-load.d/osspd.conf"
 }

Added: osspd.modules-load
===================================================================
--- osspd.modules-load	                        (rev 0)
+++ osspd.modules-load	2012-02-07 16:48:52 UTC (rev 149422)
@@ -0,0 +1,2 @@
+cuse
+snd-seq-oss

Modified: osspd.rc.d
===================================================================
--- osspd.rc.d	2012-02-07 16:45:52 UTC (rev 149421)
+++ osspd.rc.d	2012-02-07 16:48:52 UTC (rev 149422)
@@ -19,7 +19,7 @@
   start)
     stat_busy "Starting OSS userspace bridge"
     if [ -z "$PID" ]; then 
-      /sbin/modprobe cuse &>/dev/null
+      /sbin/modprobe -a cuse snd-seq-oss &>/dev/null
       /sbin/udevadm settle --quiet
       /usr/sbin/osspd --dsp-slave="$DSP_SLAVE"
     fi

Added: osspd.service
===================================================================
--- osspd.service	                        (rev 0)
+++ osspd.service	2012-02-07 16:48:52 UTC (rev 149422)
@@ -0,0 +1,8 @@
+[Unit]
+Description=OSS Userspace Bridge
+
+[Service]
+ExecStart=/usr/sbin/osspd -f
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list