diff options
author | krion <krion@FreeBSD.org> | 2004-05-25 17:17:51 +0800 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2004-05-25 17:17:51 +0800 |
commit | 12116e340bc7cc0b6a67a3644082c09896e1f6fe (patch) | |
tree | 56e34797b614534b5522b901fb7b6c674458fcbf /net | |
parent | 19deafae7cce8e2960b2ab8b19fd0a1959ef46a8 (diff) | |
download | freebsd-ports-gnome-12116e340bc7cc0b6a67a3644082c09896e1f6fe.tar.gz freebsd-ports-gnome-12116e340bc7cc0b6a67a3644082c09896e1f6fe.tar.zst freebsd-ports-gnome-12116e340bc7cc0b6a67a3644082c09896e1f6fe.zip |
Add minisapserver 0.2.3, SAP and SLP announcement for the VLC Media
Player.
PR: ports/67162
Submitted by: michael johnson <ahze@ahze.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/minisapserver/Makefile | 50 | ||||
-rw-r--r-- | net/minisapserver/distinfo | 2 | ||||
-rw-r--r-- | net/minisapserver/files/sapserver.sh | 26 | ||||
-rw-r--r-- | net/minisapserver/pkg-descr | 3 | ||||
-rw-r--r-- | net/minisapserver/pkg-message | 7 |
6 files changed, 89 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index 4f4159806b9c..7ea958fb7288 100644 --- a/net/Makefile +++ b/net/Makefile @@ -310,6 +310,7 @@ SUBDIR += mars_nwe SUBDIR += merlinmon SUBDIR += micq + SUBDIR += minisapserver SUBDIR += mldonkey SUBDIR += mldonkey-core SUBDIR += mldonkey-gui diff --git a/net/minisapserver/Makefile b/net/minisapserver/Makefile new file mode 100644 index 000000000000..864666d09e81 --- /dev/null +++ b/net/minisapserver/Makefile @@ -0,0 +1,50 @@ +# New ports collection makefile for: minisapserver +# Date created: 2004-05-25 +# Whom: michael johnson <ahze@ahze.net> +# +# $FreeBSD$ +# + +PORTNAME= minisapserver +PORTVERSION= 0.2.3 +CATEGORIES= net multimedia +MASTER_SITES= http://download.videolan.org/pub/videolan/miniSAPserver/${PORTVERSION}/ +DISTNAME= miniSAPserver-${PORTVERSION} + +MAINTAINER= ahze@ahze.net +COMMENT= SAP and SLP announcement for the VLC Media Player + +USE_REINPLACE= yes +GNU_CONFIGURE= yes +CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +USE_GMAKE= yes +MAN1= sapserver.1 +PORTDOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README +PLIST_FILES= bin/sapserver etc/sap.cfg-dist etc/rc.d/sapserver.sh +RC_SUBR?= /etc/rc.subr +PKGMESSAGE= ${WRKDIR}/pkg-message + +post-patch: + @${REINPLACE_CMD} -e 's|$$(prefix)/share/man|${MANPREFIX}/man|; \ + s|$$(prefix)/share/doc/sapserver|${DOCSDIR}|; \ + s|sap.cfg|sap.cfg-dist|' \ + ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e 's|XFLAGS="-Wall|XFLAGS="${CXXFLAGS}|' \ + ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|/etc/sap.cfg|${PREFIX}/etc/sap.cfg|' \ + ${WRKSRC}/sapserver.h + @${SED} -e 's|/usr/local|${PREFIX}|' \ + ${PKGDIR}/pkg-message >${PKGMESSAGE} + @${SED} -e 's|%%PREFIX%%|${PREFIX}|; s|%%RC_SUBR%%|${RC_SUBR}|' \ + ${FILESDIR}/sapserver.sh >${WRKDIR}/sapserver.sh + @${CP} -f ${WRKSRC}/sap.cfg ${WRKSRC}/sap.cfg-dist +.if defined(NOPORTDOCS) + @${REINPLACE_CMD} -e 's|${PORTDOCS}||' \ + ${WRKSRC}/Makefile.in +.endif + +post-install: + @${INSTALL_SCRIPT} ${WRKDIR}/sapserver.sh ${PREFIX}/etc/rc.d/ + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/net/minisapserver/distinfo b/net/minisapserver/distinfo new file mode 100644 index 000000000000..d7795928eaa0 --- /dev/null +++ b/net/minisapserver/distinfo @@ -0,0 +1,2 @@ +MD5 (miniSAPserver-0.2.3.tar.gz) = b91441b5bfc4ef171a53d890d7a54e86 +SIZE (miniSAPserver-0.2.3.tar.gz) = 82297 diff --git a/net/minisapserver/files/sapserver.sh b/net/minisapserver/files/sapserver.sh new file mode 100644 index 000000000000..9cedc4586ab2 --- /dev/null +++ b/net/minisapserver/files/sapserver.sh @@ -0,0 +1,26 @@ +#!/bin/sh +# +# $FreeBSD: /tmp/pcvs/ports/net/minisapserver/files/Attic/sapserver.sh,v 1.1 2004-05-25 09:17:51 krion Exp $ +# + +# PROVIDE: sapserver +# REQUIRE: NETWORKING +# KEYWORD: FreeBSD shutdown + +# +# Add the following lines to /etc/rc.conf to enable sapserver: +# +#sapserver_enable="YES" +# +sapserver_enable="NO" + +. %%RC_SUBR%% + +name=sapserver +rcvar=`set_rcvar` + +command=%%PREFIX%%/bin/${name} +required_files=%%PREFIX%%/etc/sap.cfg + +load_rc_config ${name} +run_rc_command "$1" diff --git a/net/minisapserver/pkg-descr b/net/minisapserver/pkg-descr new file mode 100644 index 000000000000..acadee3f1078 --- /dev/null +++ b/net/minisapserver/pkg-descr @@ -0,0 +1,3 @@ +SAP and SLP announcement for the VLC Media Player. + +WWW: http://www.videolan.org/ diff --git a/net/minisapserver/pkg-message b/net/minisapserver/pkg-message new file mode 100644 index 000000000000..ab1f614f4e38 --- /dev/null +++ b/net/minisapserver/pkg-message @@ -0,0 +1,7 @@ +******************************************************************************* +A sample configuration file, sap.cfg-dist has been installed in /usr/local/etc/ + Please 'cp sap.cfg-dist sap.cfg' and edit sap.cfg. + +To start sapserver at boot time: + echo "sapserver_enable=yes" >> /etc/rc.conf +******************************************************************************* |