Add minisapserver 0.2.3, SAP and SLP announcement for the VLC Media

Player.

PR:		ports/67162
Submitted by:	michael johnson <ahze@ahze.net>
This commit is contained in:
Kirill Ponomarev 2004-05-25 09:17:51 +00:00
parent 4908a0b6b7
commit 092124470b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=109949
6 changed files with 89 additions and 0 deletions

View file

@ -310,6 +310,7 @@
SUBDIR += mars_nwe
SUBDIR += merlinmon
SUBDIR += micq
SUBDIR += minisapserver
SUBDIR += mldonkey
SUBDIR += mldonkey-core
SUBDIR += mldonkey-gui

View file

@ -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>

View file

@ -0,0 +1,2 @@
MD5 (miniSAPserver-0.2.3.tar.gz) = b91441b5bfc4ef171a53d890d7a54e86
SIZE (miniSAPserver-0.2.3.tar.gz) = 82297

View file

@ -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"

View file

@ -0,0 +1,3 @@
SAP and SLP announcement for the VLC Media Player.
WWW: http://www.videolan.org/

View file

@ -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
*******************************************************************************