2000-07-10 17:32:44 -04:00
# New ports collection makefile for: tcserver
1999-11-10 18:53:56 -05:00
# Date created: 06 October 1999
# Whom: Chris D. Faulhaber <jedgar@fxp.org>
#
# $FreeBSD$
#
2000-07-10 17:32:44 -04:00
PORTNAME = tcserver
PORTVERSION = 1.1
1999-11-10 18:53:56 -05:00
CATEGORIES = net
2000-04-09 14:14:07 -04:00
MASTER_SITES =
2000-07-10 17:32:44 -04:00
DISTNAME = tcserver-freebsd_x86.sh
EXTRACT_SUFX =
1999-11-10 18:53:56 -05:00
2000-01-04 09:19:50 -05:00
MAINTAINER = jedgar@FreeBSD.org
1999-11-10 18:53:56 -05:00
ONLY_FOR_ARCHS = i386
RESTRICTED = "LIC: redistribution not allowed"
2000-07-10 17:32:44 -04:00
IS_INTERACTIVE = yes
1999-11-10 18:53:56 -05:00
2000-07-10 17:32:44 -04:00
WRKSRC = ${ WRKDIR } /TCSERVER-1_1-freebsd_x86
1999-11-10 18:53:56 -05:00
NO_BUILD = yes
2000-07-10 17:32:44 -04:00
LOG_DIR ?= /var/log/tcserver
PID_DIR ?= /var/run
1999-11-10 18:53:56 -05:00
. i n c l u d e < b s d . p o r t . p r e . m k >
. i f ! e x i s t s ( $ { D I S T D I R } / $ { D I S T N A M E } $ { E X T R A C T _ S U F X } )
IGNORE = 'The source to this port may not be automatically fetched due to licensing restrictions. You MUST fetch the source manually after registering at: http://streaming.entera.com/orderform.shtml Once ${DISTFILES} has been downloaded, move it to ${DISTDIR} and then restart this build.'
. e n d i f
1999-12-04 15:28:24 -05:00
pre-fetch :
2000-07-10 17:32:44 -04:00
@for library in libc_r.so.3 libm.so.2 libstdc++.so.2 libg++.so.4; do \
1999-12-04 15:28:24 -05:00
if [ -z " `ldconfig -r -elf | ${ GREP } $$ library` " ] ; then \
${ ECHO } ; \
${ ECHO } "This port requires the following FreeBSD 3.x compatibility" ; \
${ ECHO } "libraries: libc_r.so.3, libstdc++.so.2, and libg++.so.4." ; \
${ ECHO } "Please ensure they are installed and properly registered" ; \
${ ECHO } "with the system (see ldconfig(8)). These libraries may be" ; \
${ ECHO } "obtained from compat3x and/or a recent FreeBSD 3.x system." ; \
${ ECHO } ; \
exit 1; \
fi \
done
2000-07-10 17:32:44 -04:00
do-extract :
@${ MKDIR } ${ WRKDIR }
@${ SED } -e 's|read extractdir|extractdir=\.|' \
< ${ DISTDIR } /${ DISTNAME } > ${ WRKDIR } /${ DISTNAME }
@( cd ${ WRKDIR } && sh ${ DISTNAME } )
1999-11-10 18:53:56 -05:00
do-configure :
2000-07-10 17:32:44 -04:00
for file in tcserver.cfg-dist scripts/tcserver.init; do \
${ MV } ${ WRKSRC } /$$ file ${ WRKSRC } /$$ file.orig; \
${ SED } -e 's|__PREFIX__|${PREFIX}|' \
-e 's|__LOG_DIR__|${LOG_DIR}|' \
-e 's|__PID_DIR__|${PID_DIR}|' \
< ${ WRKSRC } /$$ file.orig > ${ WRKSRC } /$$ file; \
done
1999-11-10 18:53:56 -05:00
do-install :
2000-07-10 17:32:44 -04:00
${ MKDIR } ${ PREFIX } /share/tcserver/content
1999-12-04 15:28:24 -05:00
${ MKDIR } ${ LOG_DIR }
2000-07-10 17:32:44 -04:00
${ INSTALL_PROGRAM } ${ WRKSRC } /tcserver ${ PREFIX } /sbin
${ INSTALL_DATA } ${ WRKSRC } /tcserver.cfg-dist ${ PREFIX } /etc/tcserver.cfg
${ INSTALL_DATA } ${ WRKSRC } /tcserver.cfg-full ${ PREFIX } /etc
${ INSTALL_DATA } ${ WRKSRC } /LICENSE ${ PREFIX } /share/tcserver
. i f ! d e f i n e d ( N O P O R T D O C S )
${ INSTALL_DATA } ${ WRKSRC } /README ${ WRKSRC } /docs/TeraCASTAdmin11.pdf \
${ PREFIX } /share/tcserver
. e n d i f
${ INSTALL_DATA } ${ WRKSRC } /content/tcserver-test.mov ${ PREFIX } /share/tcserver/content
2000-09-08 11:01:16 -04:00
@if [ ! -f ${ PREFIX } /etc/rc.d/tcserver.sh ] ; then \
2000-07-10 17:32:44 -04:00
${ ECHO } " Installing ${ PREFIX } /etc/rc.d/tcserver.sh startup file. " ; \
${ INSTALL_SCRIPT } ${ WRKSRC } /scripts/tcserver.init \
${ PREFIX } /etc/rc.d/tcserver.sh; \
1999-11-10 18:53:56 -05:00
fi
. i n c l u d e < b s d . p o r t . p o s t . m k >