#Maintainer: Richard Lapointe #Former Maintainer(s): Name #Anything commented out is optional and can be deleted. pkgname=ushare pkgver=1.1a pkgrel=1rl $arch=noarch source=(http://ushare.geexbox.org/releases/ushare-$pkgver.tar.bz2 \ segfault.patch \ upnp-build-fix.patch \ rc.ushare) sourcetemplate=http://people.salixos.org/laprjns/$pkgname/$pkgver/ docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=http://ushare.geexbox.org/ dotnew=("etc/ushare.conf") #CFLAGS= #CXXFLAGS= #options=('noextract') doinst() { if [ -z "`grep '^ushare:' /etc/group`" ]; then groupadd -r ushare fi if [ -z "`grep '^ushare:' /etc/passwd`" ]; then useradd -r -d /var/empty -g ushare -s /bin/sh ushare fi } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname - UPnP Audio/Video media server" "uShare is a UPnP (TM) A/V Media Server. It implements the server" "component that provides UPnP media devices with information on" "available multimedia files. uShare uses the built-in http server of" "libupnp to stream the files to clients. uShare is able to provide" "access to both images, videos, music or playlists files. It does not" "act as an UPnP Media Adaptor and thus, can't transcode streams to fit" "the client requirements. uShare is written in C for the GeeXboX" "project. It is designed to provide access to multimedia contents to" "GeeXboX but can of course be used by any other UPnP client device." ) build() { cd $startdir/src/$pkgname-$pkgver sed -i -e \ "s%^INSTALL=\"/usr/bin/install -c\"$%INSTALL=\"$(which install) -c\"%" \ configure patch -p1 < ../upnp-build-fix.patch # patch -p1 < ../$srcdir/ushare-config.patch patch -p1 < ../$srcdir/segfault.patch ./configure --prefix=/usr \ --sysconfdir=/etc \ --enable-dlna make || return 1 make install DESTDIR=$startdir/pkg #Install the service start up script mkdir -p $startdir/pkg/etc/rc.d/ cp -f ../rc.ushare $startdir/pkg/etc/rc.d/ rm -R $startdir/pkg/etc/init.d }