Commit 0726c1cd authored by Leonardo Arena's avatar Leonardo Arena

main/vlc: vlc-daemon subpkg created

parent a2b318dd
......@@ -2,13 +2,13 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=vlc
pkgver=1.1.8
pkgrel=0
pkgrel=1
pkgdesc="A multi-platform MPEG, VCD/DVD, and DivX player"
url="http://www.videolan.org/vlc/"
arch="all"
license="GPL-2"
triggers="$pkgname.trigger:/usr/lib/vlc/plugins"
subpackages="$pkgname-dev $pkgname-doc $pkgname-xorg"
subpackages="$pkgname-dev $pkgname-doc $pkgname-xorg $pkgname-daemon"
#depends="libnotify a52dec fluidsynth zvbi libdvbpsi lirc-utils libdca hal
# libproxy sdl_image libdvdnav>=4.1.3 lua libxv libv4l libcddb smbclient
# libmatroska taglib sysfsutils libmpcdec ffmpeg>=0.5 libshout libmad
......@@ -165,6 +165,18 @@ xorg() {
"$subpkgdir"/usr/share/
}
daemon() {
pkgdesc="Support for running VLC as a daemon"
install="vlc-daemon.post-install"
triggers=
arch="noarch"
mkdir -p "$subpkgdir"
cd "$pkgdir"
install -D -m755 ../../vlc.initd $subpkgdir/etc/init.d/vlc
install -D -m664 ../../vlc.confd $subpkgdir/etc/conf.d/vlc
}
md5sums="c0065ec11b6fd12167cd440cbe0ef0d9 vlc-1.1.8.tar.bz2
ba24152286d98f8a367c7fd0cb8949f4 uclibc3.patch
d718e22a7de9f38579f276f720b2f36a uclibc-libcompat.patch
......
#!/bin/sh
adduser -h /home/vlc -s /bin/sh -G audio,tty vlc &>/dev/null
# Sample vlc params suitable for running as a daemon
## --daemon detach from prompt
## --file-logging enable file logging
## --logfile logfile name/path
## -vvv verbose logging
## -I dummy disable X11 interface
## --sout PARAMS encoding parameters
Do NOT quote 'PARAMS' otherwise shell expansions will broke vlc
VLC_OPTS="-vvv -I dummy alsa://hw:0,0 --daemon --file-logging --logfile /var/log/vlc.log --sout #transcode{acodec=mp3,ab=48,channels=1,samplerate=22050}:std{access=http,mux=ogg,dst=:8080}"
#!/sbin/runscript
depend() {
need net
}
start() {
ebegin "Starting VLC"
start-stop-daemon --start --oknodo \
--pidfile /var/run/vlc.pid --chuid vlc \
--exec /usr/bin/vlc -- ${VLC_OPTS}
eend $?
}
stop () {
ebegin "Stopping VLC"
start-stop-daemon --stop --oknodo --exec /usr/bin/vlc
eend $?
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment