head	1.23;
access;
symbols
	RELEASE_8_3_0:1.21
	RELEASE_9_0_0:1.21
	RELEASE_7_4_0:1.21
	RELEASE_8_2_0:1.21
	RELEASE_6_EOL:1.20
	RELEASE_8_1_0:1.20
	RELEASE_7_3_0:1.20
	RELEASE_8_0_0:1.20
	RELEASE_7_2_0:1.20
	RELEASE_7_1_0:1.20
	RELEASE_6_4_0:1.20
	RELEASE_5_EOL:1.20
	RELEASE_7_0_0:1.19
	RELEASE_6_3_0:1.19
	PRE_XORG_7:1.18
	RELEASE_4_EOL:1.18
	RELEASE_6_2_0:1.17
	RELEASE_6_1_0:1.16
	RELEASE_5_5_0:1.16
	RELEASE_6_0_0:1.15
	RELEASE_5_4_0:1.15
	RELEASE_4_11_0:1.15
	RELEASE_5_3_0:1.14
	RELEASE_4_10_0:1.14
	RELEASE_5_2_1:1.12
	RELEASE_5_2_0:1.12
	RELEASE_4_9_0:1.12
	RELEASE_5_1_0:1.12
	RELEASE_4_8_0:1.11
	RELEASE_5_0_0:1.10
	RELEASE_4_7_0:1.10
	RELEASE_4_6_2:1.10
	RELEASE_4_6_1:1.10
	RELEASE_4_6_0:1.10
	RELEASE_5_0_DP1:1.10
	RELEASE_4_5_0:1.9
	RELEASE_4_4_0:1.9
	RELEASE_4_3_0:1.5
	RELEASE_4_2_0:1.1
	RELEASE_4_1_1:1.1;
locks; strict;
comment	@# @;


1.23
date	2012.11.17.06.03.06;	author svnexp;	state Exp;
branches;
next	1.22;

1.22
date	2012.08.05.23.19.36;	author dougb;	state Exp;
branches;
next	1.21;

1.21
date	2010.12.10.19.12.01;	author mi;	state Exp;
branches;
next	1.20;

1.20
date	2008.04.09.13.42.20;	author pav;	state Exp;
branches;
next	1.19;

1.19
date	2007.09.21.22.35.46;	author pav;	state Exp;
branches;
next	1.18;

1.18
date	2006.11.07.14.44.02;	author mi;	state Exp;
branches;
next	1.17;

1.17
date	2006.10.28.13.26.45;	author mi;	state Exp;
branches;
next	1.16;

1.16
date	2006.02.11.14.43.09;	author lawrance;	state Exp;
branches;
next	1.15;

1.15
date	2004.11.19.21.36.44;	author mi;	state Exp;
branches;
next	1.14;

1.14
date	2004.04.05.16.47.20;	author mi;	state Exp;
branches;
next	1.13;

1.13
date	2004.01.17.11.41.33;	author edwin;	state Exp;
branches;
next	1.12;

1.12
date	2003.04.24.17.01.18;	author mi;	state Exp;
branches;
next	1.11;

1.11
date	2003.03.07.06.12.54;	author ade;	state Exp;
branches;
next	1.10;

1.10
date	2002.03.29.17.55.00;	author mi;	state Exp;
branches;
next	1.9;

1.9
date	2001.07.10.13.54.21;	author sobomax;	state Exp;
branches;
next	1.8;

1.8
date	2001.06.14.21.20.34;	author mi;	state Exp;
branches;
next	1.7;

1.7
date	2001.05.27.15.59.42;	author ijliao;	state Exp;
branches;
next	1.6;

1.6
date	2001.05.02.20.35.42;	author mi;	state Exp;
branches;
next	1.5;

1.5
date	2001.03.29.21.32.13;	author mi;	state Exp;
branches;
next	1.4;

1.4
date	2001.03.14.09.35.20;	author sobomax;	state Exp;
branches;
next	1.3;

1.3
date	2001.02.07.22.36.12;	author mi;	state Exp;
branches;
next	1.2;

1.2
date	2001.02.05.15.33.50;	author olgeni;	state Exp;
branches;
next	1.1;

1.1
date	2000.07.20.11.55.45;	author nbm;	state Exp;
branches;
next	;


desc
@@


1.23
log
@Switch exporter over
@
text
@# New ports collection makefile for:	tclhttpd
# Date created:		27 Apr 2000
# Whom:			Mikhail Teterin <mi@@aldan.algebra.com>
#
# $FreeBSD: head/www/tclhttpd/Makefile 302141 2012-08-05 23:19:36Z dougb $
#

PORTNAME=	tclhttpd
PORTVERSION=	3.5.1
PORTREVISION=	3
CATEGORIES=	www tcl
MASTER_SITES=	${MASTER_SITE_TCLTK}
MASTER_SITE_SUBDIR=	httpd
DISTNAME=	${PORTNAME}${PORTVERSION}

MAINTAINER=	mi@@aldan.algebra.com
COMMENT=	An http-server implemented in TCL

RUN_DEPENDS=	dtplite:${PORTSDIR}/devel/tcllib

USE_RC_SUBR=	tclhttpd
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-tcl="${TCL_LIBDIR}"	\
		--with-tclinclude="${TCL_INCLUDEDIR}"

MAKE_JOBS_SAFE=	yes
USE_TCL=	84+
MAN1=		tclhttpd.1

.include <bsd.port.pre.mk>

SHLIB_NAME!=	${MAKE} -f "${FILESDIR}/Makefile.lib" -V SHLIB_NAME
PLIST_SUB+=	PORTVERSION=${PORTVERSION} \
		SHLIB_NAME=${SHLIB_NAME}
MAKE_ENV+=	TCLSH_PROG=${TCLSH} FILESDIR="${FILESDIR}" TCL_DVER=${TCL_VER}
SCRIPTS_ENV+=	TCL_DVER=${TCL_VER}
SUB_LIST+=	TCL_DVER=${TCL_VER}

do-build:
	${MAKE_ENV} ${MAKE} -C ${WRKSRC} ${MAKE_ARGS}	\
		FILESDIR="${FILESDIR}"	\
		${_MAKE_JOBS} -f "${FILESDIR}/Makefile.lib"

pre-su-install:
	${MKDIR} ${PREFIX}/tclhttpd/custom

post-install:
	${CHOWN} -R nobody ${DATADIR}${PORTVERSION}
	${INSTALL_DATA} ${WRKSRC}/${SHLIB_NAME} \
		${PREFIX}/lib/${PORTNAME}${PORTVERSION}/${SHLIB_NAME}
	${INSTALL_SCRIPT} ${WRKSRC}/bin/httpd.tcl \
		${WRKSRC}/bin/httpdthread.tcl ${PREFIX}/bin/
	${SED} 's%@@VER@@%${PORTVERSION}%g' < ${WRKSRC}/bin/tclhttpd.rc \
		> ${PREFIX}/etc/tclhttpd.rc.default
	cd ${PREFIX}/etc; test -e tclhttpd.rc || \
		${CP} -p tclhttpd.rc.default tclhttpd.rc
	${SED} 's%@@LIB@@%${SHLIB_NAME}%g' < \
		${FILESDIR}/pkgIndex.tcl >> \
		${PREFIX}/lib/${PORTNAME}${PORTVERSION}/pkgIndex.tcl

.include <bsd.port.post.mk>
@


1.22
log
@SVN rev 302141 on 2012-08-05 23:19:36Z by dougb

Move the rc.d scripts of the form *.sh.in to *.in

Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.21
log
@Use _MAKE_JOBS instead of hard-coding the -j2:

PR:	147907
Submitted by:	Andrius Morkunas

Use the USE_TCL knob and rely on the variables set by bsd.tcl.mk
instead of figuring them out ourselves. Switching to USE_TCL makes
this port depend on Tcl-8.5 by default now, hence the PORTREVISION
bump.
@
text
@d21 1
a21 1
USE_RC_SUBR=	tclhttpd.sh
@


1.20
log
@- Move from versioned tcl/tk CATEGORIES to simple tcl and tk categories

With hat:	portmgr
@
text
@d10 1
a10 1
PORTREVISION=	2
a19 1
LIB_DEPENDS=	tcl${TCL_VER}:${PORTSDIR}/lang/tcl${TCL_VER}
a21 2
TCL_DVER?=	8.4
TCL_VER=	${TCL_DVER:S/.//}
d23 2
a24 2
CONFIGURE_ARGS=	--with-tcl="${LOCALBASE}/lib/tcl${TCL_DVER}" \
		--with-tclinclude="${LOCALBASE}/include/tcl${TCL_DVER}"
d26 2
d31 1
d33 1
a33 1
PLIST_SUB+=	TCL_VER=${TCL_VER} PORTVERSION=${PORTVERSION} \
d35 3
a37 3
MAKE_ENV+=	TCLSH_PROG=tclsh${TCL_DVER}
SCRIPTS_ENV+=	TCL_DVER=${TCL_DVER}
SUB_LIST+=	TCL_DVER=${TCL_DVER}
d40 3
a42 7
	cd ${WRKSRC} && ${MAKE_ENV} ${MAKE} -j 2 TCL_DVER="${TCL_DVER}" \
		FILESDIR="${FILESDIR}" -f "${FILESDIR}/Makefile.lib"
	#
	# Note, the ``utime'' command supplied by the tclhttpd's library
	# (interface to utimes(2)) has been long obsoleted by TCL's own
	# file(n) and is finally removed from this port
	#
@


1.19
log
@- Make tcllib depobjs version independent

Reported by:	pointyhat
Pointy hat to:	mi
@
text
@d11 1
a11 1
CATEGORIES=	www tcl83 tcl84
@


1.18
log
@The previous commit, which was supposed to simply update the
tcllib dependency, accidentally introduced reference to unfinished
work on the generation of locale-independent dates for HTTP-headers.

Finish (and unbreak) this work and allow the server to run in
non-English/ASCII locales. Changes submitted to the (dormant) vendor.
@
text
@d19 1
a19 1
RUN_DEPENDS=	${LOCALBASE}/lib/tcllib1.9/pkgIndex.tcl:${PORTSDIR}/devel/tcllib
@


1.17
log
@Grrrr. This tcllib-dependant port slipped through due to my local
modifications. Mad as a (pointy)hatter...

Notified by:	kris
Approved by:	portmgr	(earlier)
@
text
@d10 1
a10 1
PORTREVISION=	1
d48 1
a48 1
pre-install:
@


1.16
log
@Out with the old rc.d script, in with the new.

PR:		ports/91442 (requested by)
Submitted by:	Mike <mspam@@hideaway.net>
Approved by:	mi (maintainer, timeout 4 weeks)
@
text
@d19 1
a19 1
RUN_DEPENDS=	${LOCALBASE}/lib/tcllib1.7/pkgIndex.tcl:${PORTSDIR}/devel/tcllib
@


1.15
log
@Upgrade devel/tcllib from 1.6 to 1.7 and www/tclhttpd from 3.4.2 to 3.5.1.
Update dependency lines in amsn and tclxml.
@
text
@d10 1
d22 1
d29 1
a29 2
MAN1=	tclhttpd.1
RCD=	${LOCALBASE}/etc/rc.d/tclhttpd.sh
d37 1
a51 3
	test -e ${RCD} || ${SED} \
		"s%COMMAND_LINE%${LOCALBASE}/bin/tclsh${TCL_DVER} ${PREFIX}/bin/httpd.tcl%" \
		< ${FILESDIR}/tclhttpd.sh > ${RCD}
a52 1
	${CHMOD} +x ${RCD}
@


1.14
log
@Bump up RUN-dependency on tcllib from 1.4 to 1.6.

Submitted by:	kris
@
text
@d9 2
a10 2
PORTVERSION=	3.4.2
CATEGORIES=	www tcl83
d18 1
a18 1
RUN_DEPENDS=	${LOCALBASE}/lib/tcllib1.6/pkgIndex.tcl:${PORTSDIR}/devel/tcllib
d31 1
a31 1
SHLIB_NAME!=	${MAKE} -f "${FILESDIR}/Makefile.lib" ech
d35 1
d40 5
@


1.13
log
@Chase update of devel/tcllib.
Noticed by: bento
http://bento.freebsd.org/errorlogs/i386-4-exp-latest/tclhttpd-3.4.2.log
@
text
@d18 1
a18 1
RUN_DEPENDS=	${LOCALBASE}/lib/tcllib1.4/pkgIndex.tcl:${PORTSDIR}/devel/tcllib
@


1.12
log
@Upgrade from 3.3 to 3.4.2. Use tcl84 by default.
@
text
@d18 1
a18 1
RUN_DEPENDS=	${LOCALBASE}/lib/tcllib1.3/pkgIndex.tcl:${PORTSDIR}/devel/tcllib
@


1.11
log
@Clear moonlight beckons.
Requiem mors pacem pkg-comment,
And be calm ports tree.

E Nomini Patri, E Fili, E Spiritu Sancti.
@
text
@d9 2
a10 3
PORTVERSION=	3.3
PORTREVISION=	1
CATEGORIES=	www tcl${TCL_VER}
d18 1
a18 1
RUN_DEPENDS=	${LOCALBASE}/lib/tcllib1.2/pkgIndex.tcl:${PORTSDIR}/devel/tcllib
d21 1
a21 1
TCL_DVER?=	8.3
@


1.10
log
@Finally catch up with the version number change of devel/tcllib --
I guess, we need some pattern matching in the RUN_DEPENDS too --
this port would work happily with the old tcllib0.8 as well as
the new tcllib1.2.

Submitted by:	bento
@
text
@d17 1
@


1.9
log
@${PREFIX}/share/${PORTNAME} --> ${DATADIR}
@
text
@d18 1
a18 1
RUN_DEPENDS=	${LOCALBASE}/lib/tcllib0.8/pkgIndex.tcl:${PORTSDIR}/devel/tcllib
@


1.8
log
@The better fix for ports/27337 is,  IMO, to also install the man-page as
tclhttpd.1 instead of the too generic (and usurped by Apache) httpd.1...
@
text
@d5 1
a5 1
# $FreeBSD: ports/www/tclhttpd/Makefile,v 1.7 2001/05/27 15:59:42 ijliao Exp $
d41 1
a41 1
	${MKDIR} ${LOCALBASE}/tclhttpd/custom
d47 1
a47 1
	${CHOWN} -R nobody ${LOCALBASE}/share/${PORTNAME}${PORTVERSION}
d50 1
a50 1
		${LOCALBASE}/lib/${PORTNAME}${PORTVERSION}/${SHLIB_NAME}
d52 1
a52 1
		${WRKSRC}/bin/httpdthread.tcl ${LOCALBASE}/bin/
d54 2
a55 2
		> ${LOCALBASE}/etc/tclhttpd.rc.default
	cd ${LOCALBASE}/etc; test -e tclhttpd.rc || \
d59 1
a59 1
		${LOCALBASE}/lib/${PORTNAME}${PORTVERSION}/pkgIndex.tcl
@


1.7
log
@add missing man pages

PR:		27337
Submitted by:	David W. Chapman Jr. <dwcjr@@inethouston.net>
@
text
@d5 1
a5 1
# $FreeBSD: ports/www/tclhttpd/Makefile,v 1.6 2001/05/02 20:35:42 mi Exp $
d10 1
d27 1
a34 2

MAN1=	httpd.1
@


1.6
log
@Upgrade to the version 3.3...
@
text
@d5 1
a5 1
# $FreeBSD: ports/www/tclhttpd/Makefile,v 1.5 2001/03/29 21:32:13 mi Exp $
d33 2
@


1.5
log
@The previous commit by sobomax fixed the build, but quite terribly broke
the install.  My version  used the  special Makefile  only to  build the
binary lib. The installation was done by the software's Makefile.

sobomax declared  the custom  Makefile.lib to  be _the_  Makefile, which
caused  the library  to be  installed into  /usr/lib :-)  and completely
missed the .tcl scripts, etc.

I'm restoring the  old behaviour with the build problem  fixed (I hope).
This version  will also help  tclhttpd find  its docRoot on  startup. It
will  also install  tclhttpd.rc.default instead  of tclhttpd.rc.  If the
latter does not exist, the former gets copied to create it.

Submitted by: bento (and fenner's script)
@
text
@d5 1
a5 1
# $FreeBSD: ports/www/tclhttpd/Makefile,v 1.4 2001/02/07 22:36:12 mi Exp $
d9 1
a9 1
PORTVERSION=	3.2.1
d32 1
@


1.4
log
@o Fix build by replacing custom do-build target with set of stock
  MAKEFILE/MAKE_ENV/MAKE_ARGS variables.
o Slightly reorder variables to make Makefile more readable.

Submitted by:	bento
@
text
@d1 1
a1 1
# New ports collection makefile for:	thttpd
d5 1
a5 1
# $FreeBSD$
a21 1

d26 4
a29 3
MAKEFILE=	${FILESDIR}/Makefile.lib
MAKE_ENV=	TCL_DVER="${TCL_DVER}" FILESDIR="${FILESDIR}"
MAKE_ARGS=	-j2
d33 3
a35 4
RCD=		${LOCALBASE}/etc/rc.d/tclhttpd.sh

.include <bsd.port.pre.mk>
SHLIB_NAME!=	${MAKE} -f ${MAKEFILE} ech
a44 2
	#${LN} -sf ${LOCALBASE}/share/${PORTNAME} \
	#	${LOCALBASE}/${PORTNAME}${PORTVERSION}/htdocs
d50 4
a53 1
	${INSTALL_DATA} ${WRKSRC}/bin/tclhttpd.rc ${LOCALBASE}/etc/
@


1.3
log
@Bring to the latest version. Link all of the little external libraries
needed by the tclhttpd into one file. I submitted this back in December,
but nobody cared since. Now I can commit this myself :)

PR:		ports/23310
Submitted by:	mi
@
text
@d5 1
a5 1
# $FreeBSD: ports/www/tclhttpd/Makefile,v 1.2 2001/02/05 15:33:50 olgeni Exp $
d22 1
d27 3
a29 4
RCD=	${LOCALBASE}/etc/rc.d/tclhttpd.sh

.include <bsd.port.pre.mk>
SHLIB_NAME!=	${MAKE} -f "${FILESDIR}/Makefile.lib" ech
d33 4
a36 3
do-build:
	cd ${WRKSRC} && ${MAKE} -j 2 TCL_DVER="${TCL_DVER}" \
		FILESDIR="${FILESDIR}" -f "${FILESDIR}/Makefile.lib"
@


1.2
log
@Some spaces -> tabs for ports/www.
@
text
@d1 1
a1 1
# New ports collection makefile for: 	thttpd
d5 1
a5 1
# $FreeBSD: ports/www/tclhttpd/Makefile,v 1.1 2000/07/20 11:55:45 nbm Exp $
d9 1
a9 1
PORTVERSION=	3.0.3
d17 1
a17 1
RUN_DEPENDS=	${LOCALBASE}/lib/tcllib0.4/pkgIndex.tcl:${PORTSDIR}/devel/tcllib
d26 4
d31 1
a31 1
	"LIBSUF=`echo ${PORTOBJFORMAT} | ${SED} -e s/elf/1/ -e s/aout/1.0/`"
d33 3
a35 1
RCD=	${LOCALBASE}/etc/rc.d/tclhttpd.sh
d37 2
a38 3
SCRIPTS_ENV+=	LOCALBASE=${LOCALBASE} WRKSRC=${WRKSRC}} \
		CFLAGS="${CFLAGS}" TCL_DVER=${TCL_DVER} \
		TCL_VER=${TCL_VER}
a43 1
	${MKDIR} ${LOCALBASE}/${PORTNAME}${PORTVERSION}
d45 1
a45 1
	#${LN} -sf ${LOCALBASE}/share/${PORTNAME}${PORTVERSION} \
d48 2
a49 3
	${INSTALL_DATA} ${WRKSRC}/src/libcrypt.so.* \
		${WRKSRC}/src/liblimit.so.* ${WRKSRC}/src/libsetuid.so.* \
			${LOCALBASE}/lib/${PORTNAME}${PORTVERSION}/
d53 2
a54 1
	${CAT} ${FILESDIR}/pkgIndex.tcl >> \
a55 7
	for f in ${LOCALBASE}/lib/${PORTNAME}${PORTVERSION}/lib*.so.* ; \
	do \
		${LN} -sf `basename $$f` \
			`echo $$f | ${SED} 's@@\(.*\.so\)\..*@@\1@@'` ; \
	done

do-build:	# empty -- everything done by ${SCRIPTDIR}/pre-build
d57 1
a57 1
.include <bsd.port.mk>
@


1.1
log
@Add tclhttpd, a pure-Tcl implementation of a HTTP server.

PR:		ports/19870
Submitted by:	Mikhail Teterin <mi@@privatelabs.com>
@
text
@d5 1
a5 1
# $FreeBSD$
d9 1
a9 1
PORTVERSION= 	3.0.3
@

