diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2004-10-26 18:34:40 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2004-10-26 18:34:40 +0000 |
commit | 477ca971dfc109b106c8f8bf9d51663d5487fe1f (patch) | |
tree | 3586145b2a33d8ca4854a5b2d22c402de94fe41f /net/vls | |
parent | 4b917988635bca78277d8d46268fbc3f6808d55c (diff) | |
download | ports-477ca971dfc109b106c8f8bf9d51663d5487fe1f.tar.gz ports-477ca971dfc109b106c8f8bf9d51663d5487fe1f.zip |
Notes
Diffstat (limited to 'net/vls')
-rw-r--r-- | net/vls/Makefile | 11 | ||||
-rw-r--r-- | net/vls/files/vlsd.sh.in | 22 | ||||
-rw-r--r-- | net/vls/pkg-plist | 1 |
3 files changed, 33 insertions, 1 deletions
diff --git a/net/vls/Makefile b/net/vls/Makefile index a9b85695e84d..9d646aa112fd 100644 --- a/net/vls/Makefile +++ b/net/vls/Makefile @@ -7,7 +7,7 @@ PORTNAME= vls PORTVERSION= 0.5.6 -CATEGORIES= net multimedia +CATEGORIES= net ipv6 multimedia MASTER_SITES= http://download.videolan.org/pub/videolan/vls/${PORTVERSION}/ MAINTAINER= ahze@ahze.net @@ -21,6 +21,7 @@ LIB_DEPENDS+= dvdcss.2:${PORTSDIR}/multimedia/libdvdcss \ USE_BZIP2= yes USE_GMAKE= yes +USE_RC_SUBR= yes GNU_CONFIGURE= yes INSTALLS_SHLIB= yes CFLAGS+= -I${LOCALBASE}/inlcude @@ -34,6 +35,11 @@ PLIST_FILES+= lib/videolan/vls/dvdreader.so CONFIGURE_ARGS+= --disable-dvd .endif +post-patch: + @${SED} -e 's|%%PREFIX%%|${PREFIX}|g; \ + s|%%RC_SUBR%%|${RC_SUBR}|g' \ + ${FILESDIR}/vlsd.sh.in > ${WRKDIR}/vlsd.sh + pre-install: .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR}/developer @@ -41,6 +47,9 @@ pre-install: ${CP} -pR ${WRKSRC}/doc/developer/*.* ${DOCSDIR}/developer/ .endif +post-install: + ${INSTALL_SCRIPT} ${WRKDIR}/vlsd.sh ${PREFIX}/etc/rc.d + .include <bsd.port.pre.mk> .if ${OSVERSION} < 500000 diff --git a/net/vls/files/vlsd.sh.in b/net/vls/files/vlsd.sh.in new file mode 100644 index 000000000000..3145fd090c5a --- /dev/null +++ b/net/vls/files/vlsd.sh.in @@ -0,0 +1,22 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: vlsd +# REQUIRE: DAEMON +# BEFORE: LOGIN + +. %%RC_SUBR%% + +name=vlsd +rcvar=`set_rcvar` + +command=%%PREFIX%%/bin/vlsd +required_files=%%PREFIX%%/etc/videolan/vls/vls.cfg + +# set default +vlsd_enable=${vlsd_enable:-"NO"} + +load_rc_config $name +run_rc_command "$1" diff --git a/net/vls/pkg-plist b/net/vls/pkg-plist index 5634b228f335..72de342b12b6 100644 --- a/net/vls/pkg-plist +++ b/net/vls/pkg-plist @@ -1,5 +1,6 @@ bin/vls bin/vlsd +etc/rc.d/vlsd.sh etc/videolan/vls/vls.cfg-dist @dirrm lib/videolan/vls @dirrm lib/videolan |