diff options
author | krion <krion@FreeBSD.org> | 2004-10-27 02:34:40 +0800 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2004-10-27 02:34:40 +0800 |
commit | ad17a23ba4fcc50725b4ff405d3a2a36db545951 (patch) | |
tree | aa0c7fd2ffb0aa8dd71b9a8cc7e6adf47d8c4fef /net | |
parent | 2b8cc4c31fefae40ad3d6cfe0c10b71ac05bb5c1 (diff) | |
download | freebsd-ports-gnome-ad17a23ba4fcc50725b4ff405d3a2a36db545951.tar.gz freebsd-ports-gnome-ad17a23ba4fcc50725b4ff405d3a2a36db545951.tar.zst freebsd-ports-gnome-ad17a23ba4fcc50725b4ff405d3a2a36db545951.zip |
Add rcng script
Add ipv6 to categories
PR: ports/73048
Submitted by: maintainer
Diffstat (limited to 'net')
-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 |