head	1.18;
access;
symbols
	RELEASE_8_3_0:1.15
	RELEASE_9_0_0:1.15
	RELEASE_7_4_0:1.15
	RELEASE_8_2_0:1.15
	RELEASE_6_EOL:1.15
	RELEASE_8_1_0:1.15
	RELEASE_7_3_0:1.15
	RELEASE_8_0_0:1.15
	RELEASE_7_2_0:1.14
	RELEASE_7_1_0:1.14
	RELEASE_6_4_0:1.14
	RELEASE_5_EOL:1.13
	RELEASE_7_0_0:1.13
	RELEASE_6_3_0:1.13
	PRE_XORG_7:1.12
	RELEASE_4_EOL:1.12
	RELEASE_6_2_0:1.12
	RELEASE_6_1_0:1.11
	RELEASE_5_5_0:1.11
	RELEASE_6_0_0:1.10
	RELEASE_5_4_0:1.8
	RELEASE_4_11_0:1.8
	RELEASE_5_3_0:1.6
	RELEASE_4_10_0:1.4
	RELEASE_5_2_1:1.2
	RELEASE_5_2_0:1.2;
locks; strict;
comment	@# @;


1.18
date	2013.03.22.15.52.26;	author svnexp;	state Exp;
branches;
next	1.17;

1.17
date	2012.11.17.06.02.58;	author svnexp;	state Exp;
branches;
next	1.16;

1.16
date	2012.06.04.12.06.57;	author pav;	state Exp;
branches;
next	1.15;

1.15
date	2009.08.22.00.38.22;	author amdmi3;	state Exp;
branches;
next	1.14;

1.14
date	2008.09.03.12.33.08;	author ale;	state Exp;
branches;
next	1.13;

1.13
date	2007.07.02.12.49.20;	author ale;	state Exp;
branches;
next	1.12;

1.12
date	2006.05.13.04.41.18;	author edwin;	state Exp;
branches;
next	1.11;

1.11
date	2006.01.04.12.12.28;	author edwin;	state Exp;
branches;
next	1.10;

1.10
date	2005.05.30.16.36.17;	author oliver;	state Exp;
branches;
next	1.9;

1.9
date	2005.05.28.09.08.43;	author oliver;	state Exp;
branches;
next	1.8;

1.8
date	2004.11.24.14.16.13;	author ale;	state Exp;
branches;
next	1.7;

1.7
date	2004.10.15.22.18.14;	author ale;	state Exp;
branches;
next	1.6;

1.6
date	2004.05.05.10.22.36;	author ale;	state Exp;
branches;
next	1.5;

1.5
date	2004.05.05.09.45.38;	author ale;	state Exp;
branches;
next	1.4;

1.4
date	2004.01.18.10.50.15;	author ale;	state Exp;
branches;
next	1.3;

1.3
date	2004.01.08.16.15.39;	author krion;	state Exp;
branches;
next	1.2;

1.2
date	2003.10.21.14.32.54;	author krion;	state Exp;
branches;
next	1.1;

1.1
date	2003.10.17.08.11.55;	author nork;	state Exp;
branches;
next	;


desc
@@


1.18
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/314915
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Alex Dupre <sysadmin@@alexdupre.com>
# $FreeBSD: head/www/pserv/Makefile 314915 2013-03-22 11:53:34Z bapt $

PORTNAME=	pserv
PORTVERSION=	3.4
CATEGORIES=	www
MASTER_SITES=	SF
EXTRACT_SUFX=	.tar.Z

MAINTAINER=	ale@@FreeBSD.org
COMMENT=	A portable and small webserver written in C

GNU_CONFIGURE=	yes

CONFLICTS=	popular-[0-9]*

OPTIONS_DEFINE=	LOG PHP
OPTIONS_DEFAULT=	LOG PHP
LOG_DESC=	Enable loggin

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MPHP}
USE_PHP=	yes
WANT_PHP_CGI=	yes
.endif

post-patch:
	@@${REINPLACE_CMD} "s|%%PREFIX%%|${PREFIX}|g;s|%%LOCALBASE%%|${LOCALBASE}|g" \
		${WRKSRC}/defaults/pserv.conf ${WRKSRC}/sources/main.h
.if ! ${PORT_OPTIONS:MLOG}
	@@${REINPLACE_CMD} "s|define LOG|undef LOG|" \
		${WRKSRC}/sources/main.h
.endif
.if ! ${PORT_OPTIONS:MPHP}
	@@${REINPLACE_CMD} "s|define PHP|undef PHP|" \
		${WRKSRC}/sources/main.h
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/sources/pserv ${PREFIX}/sbin/
	${MKDIR} ${PREFIX}/etc/pserv
	${INSTALL_DATA} ${WRKSRC}/defaults/mime_types.dat ${PREFIX}/etc/pserv/mime.types
	${INSTALL_DATA} ${WRKSRC}/defaults/pserv.conf ${PREFIX}/etc/pserv/pserv.conf.sample
	${INSTALL_SCRIPT} ${FILESDIR}/pserv.sh ${PREFIX}/etc/rc.d/

.include <bsd.port.mk>
@


1.17
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:	pserv
# Date created:				Wed Oct 15 14:16:14 CEST 2003
# Whom:					Alex Dupre <sysadmin@@alexdupre.com>
#
# $FreeBSD: head/www/pserv/Makefile 300897 2012-07-14 14:29:18Z beat $
#
d17 3
a19 2
OPTIONS=	LOG "Enable logging" on \
		PHP "Enable PHP support" on
d21 1
a21 1
.include <bsd.port.pre.mk>
d23 1
a23 1
.if !defined(WITHOUT_PHP)
d31 1
a31 1
.if defined(WITHOUT_LOG)
d35 1
a35 1
.if defined(WITHOUT_PHP)
d47 1
a47 1
.include <bsd.port.post.mk>
@


1.16
log
@- Register conflicts in my ports

Reported by:	http://ketas.si.pri.ee/ports-conflictchecks/
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.15
log
@- Switch SourceForge ports to the new File Release System: categories starting with W
@
text
@d19 2
@


1.14
log
@Update to 3.4 release.
@
text
@d11 1
a11 2
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
@


1.13
log
@Add php-cgi dependency.

PR:		ports/81699
Submitted by:	vd
@
text
@d9 1
a9 1
PORTVERSION=	3.3
d13 1
@


1.12
log
@Remove USE_REINPLACE from categories starting with W
@
text
@d24 5
@


1.11
log
@www/pserv overwrites user's pserv.conf on update

PR:		ports/81705
Submitted by:	Vasil Dimov <vd@@datamax.bg>
Approved by:	maintainer update
@
text
@a16 1
USE_REINPLACE=	yes
@


1.10
log
@fix build I broke

PR:		ports/81671
Submitted by:	Vasil Dimov <vd@@datamax.bg>
Noted by:	kris via pointyhat
Pointyhat to:	oliver
@
text
@d41 1
a41 1
	${INSTALL_DATA} ${WRKSRC}/defaults/pserv.conf ${PREFIX}/etc/pserv/
@


1.9
log
@update to 3.3
change installation of etc/mime.types to etc/mime.types.pserv (stop conflicting with other ports)

PR:		ports/80726
Approved by:	maintainer timeout (21 days)
@
text
@d39 3
a41 2
	${INSTALL_DATA} ${WRKSRC}/defaults/mime_types.dat ${PREFIX}/etc/mime.types.pserv
	${INSTALL_DATA} ${WRKSRC}/defaults/pserv.conf ${PREFIX}/etc/
@


1.8
log
@Update to 3.1 release.
@
text
@d9 1
a9 1
PORTVERSION=	3.1
a12 1
EXTRACT_SUFX=	.tar.Z
a16 2
WRKSRC=		${WRKDIR}/${PORTNAME}
BUILD_WRKSRC=	${WRKSRC}/sources
d18 1
d27 1
a27 1
		${WRKSRC}/defaults/pserv.conf
d39 1
a39 1
	${INSTALL_DATA} ${WRKSRC}/defaults/mime_types.dat ${PREFIX}/etc/mime.types
@


1.7
log
@Update to 3.0 final release.
@
text
@d9 1
a9 1
PORTVERSION=	3.0
@


1.6
log
@Add OPTIONS to disable logging and PHP support.
@
text
@d9 1
a9 2
PORTVERSION=	3.0.b3
PORTREVISION=	1
a12 1
DISTNAME=	${PORTNAME}-08-Jan-04
@


1.5
log
@- Fix handling of PHP scripts
- Fix handling of HTML files
- Bump PORTREVISION
@
text
@d24 5
d32 8
d47 1
a47 1
.include <bsd.port.mk>
@


1.4
log
@Switch to my @@FreeBSD.org email address.

Approved by:	nork (mentor)
@
text
@d10 1
@


1.3
log
@- Update to version 3.0.b3

PR:		61065
Submitted by:	ale (maintainer)
@
text
@d16 1
a16 1
MAINTAINER=	sysadmin@@alexdupre.com
@


1.2
log
@- Update to 3.0.b2

PR:		58310
Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	3.0.b2
d13 1
a13 1
DISTNAME=	${PORTNAME}-20-Oct-03
d20 1
d25 1
a25 1
		${WRKSRC}/pserv.conf
d28 3
a30 3
	${INSTALL_PROGRAM} ${WRKSRC}/pserv ${PREFIX}/sbin/
	${INSTALL_DATA} ${WRKSRC}/mime_types.dat ${PREFIX}/etc/mime.types
	${INSTALL_DATA} ${WRKSRC}/pserv.conf ${PREFIX}/etc/
@


1.1
log
@Add pserv 3.0.b1, a portable and small webserver written in C.

PR:		ports/58119
Submitted by:	Alex Dupre <sysadmin@@alexdupre.com>
@
text
@d9 1
a9 1
PORTVERSION=	3.0.b1
d13 1
a13 1
DISTNAME=	${PORTNAME}-22-Sep-03
@

