From 7f9313d1860b96caf5b0c70e88d153d2c4515e0a Mon Sep 17 00:00:00 2001 From: Cecil Hugh Watson Date: Sun, 22 Mar 2009 22:47:39 -0700 Subject: Initial inclusion of djmount. --- abs/extra-testing/community/djmount/PKGBUILD | 25 +++++++++++++++ abs/extra-testing/community/djmount/djmount.confd | 2 ++ abs/extra-testing/community/djmount/djmount.rcd | 39 +++++++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 abs/extra-testing/community/djmount/PKGBUILD create mode 100644 abs/extra-testing/community/djmount/djmount.confd create mode 100755 abs/extra-testing/community/djmount/djmount.rcd diff --git a/abs/extra-testing/community/djmount/PKGBUILD b/abs/extra-testing/community/djmount/PKGBUILD new file mode 100644 index 0000000..a3648dc --- /dev/null +++ b/abs/extra-testing/community/djmount/PKGBUILD @@ -0,0 +1,25 @@ +# Contributor: Michele Schäuble + +pkgname=djmount +pkgver=0.71 +pkgrel=1 +pkgdesc="A UPnP AV client that mounts media server contents as a filesystem." +arch=('i686') +url="http://djmount.sourceforge.net/" +license=('GPL') +depends=('fuse') +source=(http://voxel.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz \ + djmount.rcd djmount.confd) +md5sums=('c922753e706c194bf82a8b6ca77e6a9a' \ + 'f473b5150df385447f2f58049bfb6199' \ + '21de4c947c17e8558f1007a20757f254') + +build() { + cd $startdir/src/$pkgname-$pkgver + ./configure --prefix=/usr + make || return 1 + make DESTDIR=$startdir/pkg install + + install -D -m755 $startdir/src/djmount.rcd $startdir/pkg/etc/rc.d/djmount + install -D -m644 $startdir/src/djmount.confd $startdir/pkg/etc/conf.d/djmount +} diff --git a/abs/extra-testing/community/djmount/djmount.confd b/abs/extra-testing/community/djmount/djmount.confd new file mode 100644 index 0000000..079100e --- /dev/null +++ b/abs/extra-testing/community/djmount/djmount.confd @@ -0,0 +1,2 @@ +OPTIONS="-o ro,allow_other" +MOUNTPOINT="/media/upnp" diff --git a/abs/extra-testing/community/djmount/djmount.rcd b/abs/extra-testing/community/djmount/djmount.rcd new file mode 100755 index 0000000..84899dd --- /dev/null +++ b/abs/extra-testing/community/djmount/djmount.rcd @@ -0,0 +1,39 @@ +#!/bin/bash + + . /etc/rc.conf + . /etc/rc.d/functions + +# source application-specific settings +[ -f /etc/conf.d/djmount ] && . /etc/conf.d/djmount + + case "$1" in + + start) + stat_busy "Starting djmount" + /usr/bin/djmount $OPTIONS $MOUNTPOINT &>/dev/null + if [ $? -ne 0 ]; then + stat_fail + else + add_daemon djmount + stat_done + fi + ;; + + stop) + stat_busy "Stopping djmount" + fusermount -u $MOUNTPOINT + kill -9 `pidof /usr/bin/djmount` &>/dev/null + rm_daemon djmount + stat_done + ;; + + restart) + stat_busy "Restarting djmount ..." + $0 stop + $0 start + stat_done + ;; + + *) + echo "usage: $0 {start|stop|restart}" + esac -- cgit v0.12