diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2013-05-16 16:49:47 +0200 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2013-05-16 16:49:47 +0200 |
commit | bc864260b40f40e8f689788c54f6138007764077 (patch) | |
tree | 9c9be0d9a53d7e3a03d76276fc4b02dd08b552bf /extra/ossp | |
parent | b90f83b99150003a2022c3a4bbad90b12eb56b7e (diff) | |
parent | 453f3b8b2c568e9babcdc4852772278a39f130c0 (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts:
community/bird/PKGBUILD
community/drbd/PKGBUILD
community/etherape/PKGBUILD
community/ext4magic/PKGBUILD
community/fcron/PKGBUILD
community/fcron/systab.orig
community/gnome-panel/PKGBUILD
community/libident/PKGBUILD
community/libtorrent/PKGBUILD
community/linux-tools/PKGBUILD
community/linux-tools/usbipd.service
community/makedev/PKGBUILD
community/minbif/PKGBUILD
community/noip/PKGBUILD
community/notmuch/PKGBUILD
community/pam_pwcheck/PKGBUILD
community/pound/PKGBUILD
community/preload/PKGBUILD
community/python-cchardet/PKGBUILD
community/rtorrent/PKGBUILD
community/tor/PKGBUILD
community/ude/PKGBUILD
core/openldap/PKGBUILD
core/sysvinit/PKGBUILD
extra/cd-discid/PKGBUILD
extra/cvs/PKGBUILD
extra/epiphany-extensions/PKGBUILD
extra/fbset/PKGBUILD
extra/fluidsynth/PKGBUILD
extra/gtkmm/PKGBUILD
extra/gvfs/PKGBUILD
extra/kdepim/PKGBUILD
extra/libical/PKGBUILD
extra/mutt/PKGBUILD
extra/netkit-bsd-finger/PKGBUILD
extra/ossp/PKGBUILD
extra/php/PKGBUILD
extra/pidgin/PKGBUILD
extra/rtkit/PKGBUILD
extra/samba/PKGBUILD
extra/totem/PKGBUILD
extra/webkitgtk/PKGBUILD
libre/liferea-libre/PKGBUILD
libre/mplayer-vaapi-libre/PKGBUILD
Diffstat (limited to 'extra/ossp')
-rw-r--r-- | extra/ossp/PKGBUILD | 44 | ||||
-rw-r--r-- | extra/ossp/osspd.conf.d | 10 | ||||
-rwxr-xr-x | extra/ossp/osspd.rc.d | 52 | ||||
-rw-r--r-- | extra/ossp/osspd.service | 2 |
4 files changed, 18 insertions, 90 deletions
diff --git a/extra/ossp/PKGBUILD b/extra/ossp/PKGBUILD index 28f73b367..db2a26652 100644 --- a/extra/ossp/PKGBUILD +++ b/extra/ossp/PKGBUILD @@ -1,51 +1,41 @@ -# $Id: PKGBUILD 157748 2012-04-29 05:59:42Z allan $ +# $Id: PKGBUILD 185305 2013-05-13 05:48:38Z heftig $ # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> # Contributor: Jonathan Liu <net147@gmail.com> pkgname=ossp pkgver=1.3.2 -pkgrel=14 +pkgrel=15 pkgdesc="Emulate OSS device using CUSE" arch=(i686 x86_64 'mips64el') url="http://sourceforge.net/projects/osspd" license=(GPL2) depends=('fuse>=2.8.0') -makedepends=(libpulse alsa-lib) +makedepends=(libpulse alsa-lib git) optdepends=("libpulse: PulseAudio backend" "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.service osspd.modules-load) -md5sums=('ee2d8c894de2fa4eb3291804fbc7df45' - 'c58d5107a299fb26ae2099fa4b5ca6a1' - '5a5a3db1bb3c98d48d4794613cf12ef0' - '98dc2b2f55f69e3d2fb37f32742d30d4' +source=('ossp::git://git.code.sf.net/p/osspd/code#commit=097dc7b' + osspd.service osspd.modules-load) +md5sums=('SKIP' + 'd084bd24e3dff167541dd3ff860cdebf' '36c01e144db7cf253df12d8ad9dac942') -build() { - cd "$srcdir/$pkgname-$pkgver" +prepare() { + cd $pkgname + sed -i 's|/sbin|/bin|g' Makefile + sed -i 's|GROUP="audio"|SUBSYSTEM=="cuse", MODE="0666"|' 98-osscuse.rules +} - # Many implicit libraries. - export LDFLAGS="$LDFLAGS -lrt -lpthread" +build() { + cd $pkgname make } package() { - cd "$srcdir/$pkgname-$pkgver" - + cd $pkgname make DESTDIR="$pkgdir" prefix=/usr UDEVDIR=/usr/lib/udev/rules.d install - # Make compatible with udev ACLs - sed -e 's/GROUP="audio"/SUBSYSTEM=="cuse", MODE="0666"/' \ - -i "$pkgdir/usr/lib/udev/rules.d/98-osscuse.rules" - - install -Dm644 README "$pkgdir/usr/share/doc/$pkgname/README" - - # 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/usr/lib/systemd/system/osspd.service" install -Dm644 "$srcdir/osspd.modules-load" "$pkgdir/usr/lib/modules-load.d/osspd.conf" + + install -Dm644 README "$pkgdir/usr/share/doc/$pkgname/README" } diff --git a/extra/ossp/osspd.conf.d b/extra/ossp/osspd.conf.d deleted file mode 100644 index 05d0d06c6..000000000 --- a/extra/ossp/osspd.conf.d +++ /dev/null @@ -1,10 +0,0 @@ -# Define the audio backend to use here. -# Leave undefined to autodetect. - -# Use Pulseaudio slave -#DSP_SLAVE=/usr/sbin/ossp-padsp - -# Use ALSA slave -#DSP_SLAVE=/usr/sbin/ossp-alsap - -# vim:set ft=sh: diff --git a/extra/ossp/osspd.rc.d b/extra/ossp/osspd.rc.d deleted file mode 100755 index edb7a1b27..000000000 --- a/extra/ossp/osspd.rc.d +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions -. /etc/conf.d/osspd - - -if [[ -z "$DSP_SLAVE" ]]; then - # Autodetect - if [[ -x /usr/bin/pulseaudio ]]; then - DSP_SLAVE="/usr/sbin/ossp-padsp" - else - DSP_SLAVE="/usr/sbin/ossp-alsap" - fi -fi - -PID=`pidof -o %PPID /usr/sbin/osspd` -case "$1" in - start) - stat_busy "Starting OSS userspace bridge" - if [ -z "$PID" ]; then - modprobe -a cuse snd-seq-oss &>/dev/null - udevadm settle --quiet - /usr/sbin/osspd --dsp-slave="$DSP_SLAVE" - fi - if [ -n "$PID" -o $? -gt 0 ]; then - stat_fail - else - add_daemon osspd - stat_done - fi - ;; - stop) - stat_busy "Stopping OSS userspace bridge" - [ -n "$PID" ] && kill $PID &>/dev/null - if [ $? -gt 0 ]; then - stat_fail - else - rm_daemon osspd - stat_done - fi - ;; - restart) - $0 stop - sleep 1 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac - -# vim:set ft=sh: diff --git a/extra/ossp/osspd.service b/extra/ossp/osspd.service index f0a5f3306..0d67c9213 100644 --- a/extra/ossp/osspd.service +++ b/extra/ossp/osspd.service @@ -2,7 +2,7 @@ Description=OSS Userspace Bridge [Service] -ExecStart=/usr/sbin/osspd -f +ExecStart=/usr/bin/osspd -f [Install] WantedBy=multi-user.target |