aboutsummaryrefslogtreecommitdiffstats
path: root/net/tcserver/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/tcserver/Makefile')
-rw-r--r--net/tcserver/Makefile57
1 files changed, 37 insertions, 20 deletions
diff --git a/net/tcserver/Makefile b/net/tcserver/Makefile
index 78e6ed5c76b6..7c861024a1a3 100644
--- a/net/tcserver/Makefile
+++ b/net/tcserver/Makefile
@@ -1,24 +1,27 @@
-# New ports collection makefile for: elsa
+# New ports collection makefile for: tcserver
# Date created: 06 October 1999
# Whom: Chris D. Faulhaber <jedgar@fxp.org>
#
# $FreeBSD$
#
-PORTNAME= elsa
-PORTVERSION= 1.0.b018
+PORTNAME= tcserver
+PORTVERSION= 1.1
CATEGORIES= net
MASTER_SITES=
-DISTNAME= elsa-freebsd_x86
+DISTNAME= tcserver-freebsd_x86.sh
+EXTRACT_SUFX=
MAINTAINER= jedgar@FreeBSD.org
ONLY_FOR_ARCHS= i386
RESTRICTED= "LIC: redistribution not allowed"
+IS_INTERACTIVE= yes
-WRKSRC= ${WRKDIR}/ELSA-1_0b-018-freebsd_x86
+WRKSRC= ${WRKDIR}/TCSERVER-1_1-freebsd_x86
NO_BUILD= yes
-LOG_DIR?= /var/log/elsa
+LOG_DIR?= /var/log/tcserver
+PID_DIR?= /var/run
.include <bsd.port.pre.mk>
@@ -27,7 +30,7 @@ IGNORE='The source to this port may not be automatically fetched due to licensin
.endif
pre-fetch:
- @for library in libc_r.so.3 libstdc++.so.2 libg++.so.4; do \
+ @for library in libc_r.so.3 libm.so.2 libstdc++.so.2 libg++.so.4; do \
if [ -z "`ldconfig -r -elf | ${GREP} $$library`" ]; then \
${ECHO}; \
${ECHO} "This port requires the following FreeBSD 3.x compatibility"; \
@@ -40,23 +43,37 @@ pre-fetch:
fi \
done
+do-extract:
+ @${MKDIR} ${WRKDIR}
+ @${SED} -e 's|read extractdir|extractdir=\.|' \
+ < ${DISTDIR}/${DISTNAME} > ${WRKDIR}/${DISTNAME}
+ @(cd ${WRKDIR} && sh ${DISTNAME})
+
do-configure:
- @${PERL} -pi.orig -e 's|__PREFIX__|${PREFIX}|' ${WRKSRC}/elsa.cfg
- @${PERL} -pi.orig -e 's|__LOG_DIR__|${LOG_DIR}|' ${WRKSRC}/elsa.cfg
+ 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
do-install:
- ${MKDIR} ${PREFIX}/share/elsa/content
+ ${MKDIR} ${PREFIX}/share/tcserver/content
${MKDIR} ${LOG_DIR}
- ${INSTALL_SCRIPT} ${WRKSRC}/elsa ${PREFIX}/sbin
- ${INSTALL_DATA} ${WRKSRC}/elsa.cfg ${PREFIX}/etc
- ${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/share/elsa
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/elsa
- ${INSTALL_DATA} ${WRKSRC}/content/elsa-test.mov ${PREFIX}/share/elsa/content
-
-post-install:
- @if [ ! -f ${PREFIX}/etc/rc.d/elsa.sh ]; then \
- ${ECHO} "Installing ${PREFIX}/etc/rc.d/elsa.sh startup file."; \
- ${INSTALL_SCRIPT} ${FILESDIR}/elsa.sh ${PREFIX}/etc/rc.d/elsa.sh; \
+ ${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
+.if !defined(NOPORTDOCS)
+ ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/docs/TeraCASTAdmin11.pdf \
+ ${PREFIX}/share/tcserver
+.endif
+ ${INSTALL_DATA} ${WRKSRC}/content/tcserver-test.mov ${PREFIX}/share/tcserver/content
+ if [ ! -f ${PREFIX}/etc/rc.d/tcserver.sh ]; then \
+ ${ECHO} "Installing ${PREFIX}/etc/rc.d/tcserver.sh startup file."; \
+ ${INSTALL_SCRIPT} ${WRKSRC}/scripts/tcserver.init \
+ ${PREFIX}/etc/rc.d/tcserver.sh; \
fi
.include <bsd.port.post.mk>