head	1.7;
access;
symbols
	RELEASE_8_3_0:1.5
	RELEASE_9_0_0:1.5
	RELEASE_7_4_0:1.5
	RELEASE_8_2_0:1.5
	RELEASE_6_EOL:1.5
	RELEASE_8_1_0:1.5
	RELEASE_7_3_0:1.5
	RELEASE_8_0_0:1.5
	RELEASE_7_2_0:1.5
	RELEASE_7_1_0:1.5
	RELEASE_6_4_0:1.5
	RELEASE_5_EOL:1.5
	RELEASE_7_0_0:1.5
	RELEASE_6_3_0:1.5
	PRE_XORG_7:1.5
	RELEASE_4_EOL:1.5
	RELEASE_6_2_0:1.5
	RELEASE_6_1_0:1.4
	RELEASE_5_5_0:1.4
	RELEASE_6_0_0:1.2;
locks; strict;
comment	@# @;


1.7
date	2012.11.17.06.02.33;	author svnexp;	state Exp;
branches;
next	1.6;

1.6
date	2012.10.06.21.17.22;	author bapt;	state Exp;
branches;
next	1.5;

1.5
date	2006.05.13.04.41.10;	author edwin;	state Exp;
branches;
next	1.4;

1.4
date	2005.10.14.14.17.39;	author flz;	state Exp;
branches;
next	1.3;

1.3
date	2005.10.14.11.24.43;	author flz;	state Exp;
branches;
next	1.2;

1.2
date	2005.06.26.11.33.02;	author flz;	state Exp;
branches;
next	1.1;

1.1
date	2005.05.23.15.48.19;	author flz;	state Exp;
branches;
next	;


desc
@@


1.7
log
@Switch exporter over
@
text
@# $FreeBSD: head/www/fnord/Makefile 305404 2012-10-06 21:17:22Z bapt $

PORTNAME=	fnord
PORTVERSION=	1.10
PORTREVISION=	1
CATEGORIES=	www
MASTER_SITES=	http://www.fefe.de/fnord/

MAINTAINER=	flz@@FreeBSD.org
COMMENT=	Small and fast webserver with CGI-capability

USE_GMAKE=	yes
USE_BZIP2=	yes

PLIST_FILES=	bin/fnord \
		bin/fnord-conf \
		bin/fnord.inetd

SUB_FILES=	pkg-message fnord.inetd

OPTIONS_DEFINE=	DAEMONTOOLS TCPSERVER CGI DIR_LIST SYSTEM_SYMLINK_DEREF OLD_STYLE_REDIRECT
OPTIONS_DEFAULT=	CGI DIR_LIST
DAEMONTOOLS_DESC=	Use DJB's daemontools
TCPSERVER_DESC=		Use DJB's tcpserver
CGI_DESC=		Enable CGI support
DIR_LIST_DESC=		Enable directory listing
SYSTEM_SYMLINK_DEREF_DESC=	Enable system symlink (needs DIR_LIST)
OLD_STYLE_REDIRECT_DESC= "Enable old style redirection

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDAEMONTOOLS}
RUN_DEPENDS=	setuidgid:${PORTSDIR}/sysutils/daemontools
.endif

.if ${PORT_OPTIONS:MTCPSERVER}
RUN_DEPENDS=	tcpserver:${PORTSDIR}/sysutils/ucspi-tcp
.endif

.if ${PORT_OPTIONS:MCGI}
SED_SCRIPT+=	-e "s|^// \(\#define CGI\).*|\1|"
.endif

# HOPE YOU KNOW WHAT YOU'RE LINKING !
#
# e.g.: if a file foo is a symlink to /etc/passwd and you don't have a
# chroot enviroment then the system-wide /etc/passwd is provided !!!
#
# If the symlink is dangling OR this option is not active the symlink is
# provided as a new http-uri.
#
# e.g.: is foo a symlink to /etc/passwd than the client gets a href to
# http://<vhost>/etc/passwd */

.if ${PORT_OPTIONS:MSYSTEM_SYMLINK_DEREF}
.if ${PORT_OPTIONS:MDIR_LIST}
IGNORE=	SYSTEM_SYMLINK_DEREF has no effect if DIR_LIST is not enabled
.endif
SED_SCRIPT+=	-e "s|^/\* \(\#define SYSTEM_SYMLINK_DEREF\).*|\1|"
.endif

.if ${PORT_OPTIONS:MDIR_LIST}
SED_SCRIPT+=	-e "s|^/\* \(\#define DIR_LIST\).*|\1|"
.endif

# If a file is not found locally, and $REDIRECT_HOST is set, fnord will
# issue a redirect to strcat($REDIRECT_HOST,uri).  Otherwise, if
# $REDIRECT_URI is set, fnord will issue a redirect to $REDIRECT_URI.
# Only if those fail will a 404 error be returned. */

.if ${PORT_OPTIONS:MOLD_STYLE_REDIRECT}
SED_SCRIPT+=	-e "s|^/\* \(\#define OLD_STYLE_REDIRECT\).*|\1|"
.endif

post-patch:
	@@[ -z '${SED_SCRIPT}' ] || \
		 ${REINPLACE_CMD} ${SED_SCRIPT} ${WRKSRC}/httpd.c
	@@${REINPLACE_CMD} -e "/strip/d" ${WRKSRC}/Makefile

do-build:
	cd ${WRKSRC}; ${GMAKE} DIET=""

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/fnord ${PREFIX}/bin/
	${INSTALL_SCRIPT} ${WRKSRC}/fnord-conf ${PREFIX}/bin/
	${INSTALL_SCRIPT} ${WRKDIR}/fnord.inetd ${PREFIX}/bin/

post-install:
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
@


1.6
log
@SVN rev 305404 on 2012-10-06 21:17:22Z by bapt

- Convert to new option framework
- Trim headers

Approved by:	flz (irc)
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.5
log
@Remove USE_REINPLACE from categories starting with W
@
text
@a0 4
# New ports collection makefile for:	fnord
# Date created:				May 23 2005
# Whom:					Florent Thoumie <flz@@FreeBSD.org>
#
a1 1
#
d21 8
a28 6
OPTIONS=	DAEMONTOOLS "Use DJB's daemontools" off \
		TCPSERVER "Use DJB's tcpserver" off \
		CGI "Enable CGI support" on \
		DIR_LIST "Enable directory listing" on \
		SYSTEM_SYMLINK_DEREF "Enable system symlink (needs DIR_LIST)" off \
		OLD_STYLE_REDIRECT "Enable old style redirection" off
d30 1
a30 1
.include <bsd.port.pre.mk>
d32 1
a32 1
.if defined(WITH_DAEMONTOOLS)
d36 1
a36 1
.if defined(WITH_TCPSERVER)
d40 1
a40 1
.if !defined(WITHOUT_CGI)
d55 2
a56 2
.if defined(WITH_SYSTEM_SYMLINK_DEREF)
.if defined(WITHOUT_DIR_LIST)
d62 1
a62 1
.if !defined(WITHOUT_DIR_LIST)
d71 1
a71 1
.if defined(WITH_OLD_STYLE_REDIRECT)
d91 1
a91 1
.include <bsd.port.post.mk>
@


1.4
log
@- Don't strip binary.
- Silent sed invocation.
- Add a patch to fix directory listing (at least on amd64).
@
text
@a18 1
USE_REINPLACE=	yes
@


1.3
log
@- Update to 1.10.
- Dependancies on daemontools and ucspi-tcp are now optional.
- Installs an inetd wrapper.
- Some bits of a howto in a newly created pkg-message.
@
text
@d10 1
d80 1
a80 1
	[ -z '${SED_SCRIPT}' ] || \
d82 1
@


1.2
log
@- Add OPTIONS to enable/disable support for : CGI, Directory listing,
System symlink dereferencing and Old style redirections.
@
text
@d9 1
a9 1
PORTVERSION=	1.9
a15 3
RUN_DEPENDS=	setuidgid:${PORTSDIR}/sysutils/daemontools \
		tcpserver:${PORTSDIR}/sysutils/ucspi-tcp

d21 4
a24 1
		bin/fnord-conf
d26 3
a28 1
OPTIONS=	CGI "Enable CGI support" on \
d35 8
d88 4
@


1.1
log
@- Add fnord 1.9, a small and fast webserver with CGI-capability.
@
text
@d21 1
d26 46
d79 1
a79 1
.include <bsd.port.mk>
@

