From root@startext.tomsk.ru  Mon May 17 22:14:44 2004
Return-Path: <root@startext.tomsk.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 08BE316A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 17 May 2004 22:14:44 -0700 (PDT)
Received: from startext.tomsk.ru (tsk-521-11.adsl.tomsknet.ru [213.210.76.250])
	by mx1.FreeBSD.org (Postfix) with SMTP id 2EDB243D31
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 17 May 2004 22:14:36 -0700 (PDT)
	(envelope-from root@startext.tomsk.ru)
Received: (qmail 91094 invoked by uid 0); 18 May 2004 05:14:07 -0000
Message-Id: <20040518051407.91093.qmail@startext.tomsk.ru>
Date: 18 May 2004 05:14:07 -0000
From: Alexey A.Ukhov <auk@startext.de>
Reply-To: Alexey A.Ukhov <auk@startext.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: new port request
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         66789
>Category:       ports
>Synopsis:       new port request
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    clement
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 17 22:20:02 PDT 2004
>Closed-Date:    Wed May 19 08:10:49 PDT 2004
>Last-Modified:  Wed May 19 08:10:49 PDT 2004
>Originator:     
>Release:        FreeBSD 5.2.1-RELEASE-p4 i386
>Organization:
Unternehmensberatung GmbH
>Environment:
System: FreeBSD startext.tomsk.ru 5.2.1-RELEASE-p4 FreeBSD 5.2.1-RELEASE-p4 #0: Fri Apr 2 13:13:00 NOVST 2004 auk@startext.tomsk.ru:/usr/obj/usr/src/sys/startext i386

>Description:
	New port of www/mod_chroot apache module. It's enough usable>
>How-To-Repeat:
	
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mod_chroot
#	mod_chroot/Makefile
#	mod_chroot/distinfo
#	mod_chroot/pkg-descr
#	mod_chroot/pkg-plist
#	mod_chroot/files
#	mod_chroot/files/post-install-notes
#
echo c - mod_chroot
mkdir -p mod_chroot > /dev/null 2>&1
echo x - mod_chroot/Makefile
sed 's/^X//' >mod_chroot/Makefile << 'END-of-mod_chroot/Makefile'
X# ex:ts=8
X# Ports collection makefile for:	mod_chroot
X# Date created:			Nov 20, 2003
X# Whom:				ijliao
X#
X# $FreeBSD: ports/www/mod_chroot/Makefile,v 1.1 2003/11/20 05:11:07 ijliao Exp $
X#
X
XPORTNAME=	mod_chroot
XPORTVERSION=	0.2
XCATEGORIES=	www
XMASTER_SITES=	http://core.segfault.pl/~hobbit/mod_chroot/dist/
X
XMAINTAINER=	ports@FreeBSD.org
XCOMMENT=	The mod_chroot makes running Apache in a chroot easy
X
XUSE_APACHE=	yes
X
Xdo-build:
X	@cd ${WRKSRC} && ${APXS} -c ${PORTNAME}.c
X
Xdo-install:
X	${APXS} -i -A -n chroot ${WRKSRC}/${PORTNAME}.so
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}/INSTALL
X	${INSTALL_DATA} ${WRKSRC}/EAPI ${DOCSDIR}/EAPI
X	${INSTALL_DATA} ${WRKSRC}/CAVEATS ${DOCSDIR}/CAVEATS
X.endif
X
X.include <bsd.port.mk>
END-of-mod_chroot/Makefile
echo x - mod_chroot/distinfo
sed 's/^X//' >mod_chroot/distinfo << 'END-of-mod_chroot/distinfo'
XMD5 (mod_chroot-0.2.tar.gz) = 85211cd8cafcfe64258e02291ea6439e
XSIZE (mod_chroot-0.2.tar.gz) = 10540
END-of-mod_chroot/distinfo
echo x - mod_chroot/pkg-descr
sed 's/^X//' >mod_chroot/pkg-descr << 'END-of-mod_chroot/pkg-descr'
Xmod_chroot makes running Apache in a secure chroot environment easy.
XYou don't need to create a special directory hierarchy containing 
X/dev, /lib, /etc...
Xmod_chroot allows you to run Apache in a chroot jail with no additional files.
XThe chroot() system call is performed at the end of startup procedure - when 
Xall libraries are loaded and log files open.
X
XWWW: http://core.segfault.pl/~hobbit/mod_chroot/
END-of-mod_chroot/pkg-descr
echo x - mod_chroot/pkg-plist
sed 's/^X//' >mod_chroot/pkg-plist << 'END-of-mod_chroot/pkg-plist'
Xlibexec/apache/mod_chroot.so
X@exec %D/sbin/apxs -i -A -n chroot %D/%F
X@unexec %D/sbin/apxs -e -A -n chroot %D/%F
X%%PORTDOCS%%%%DOCSDIR%%/INSTALL
X%%PORTDOCS%%%%DOCSDIR%%/EAPI
X%%PORTDOCS%%%%DOCSDIR%%/CAVEATS
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-mod_chroot/pkg-plist
echo c - mod_chroot/files
mkdir -p mod_chroot/files > /dev/null 2>&1
echo x - mod_chroot/files/post-install-notes
sed 's/^X//' >mod_chroot/files/post-install-notes << 'END-of-mod_chroot/files/post-install-notes'
XRunning Apache (and CGI/Perl/PHP) inside a chroot jail can be tricky. 
XRead CAVEATS for known problems and solutions.
END-of-mod_chroot/files/post-install-notes
exit

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->clement 
Responsible-Changed-By: clement 
Responsible-Changed-When: Wed May 19 05:45:37 PDT 2004 
Responsible-Changed-Why:  
I'll take care of this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=66789 
State-Changed-From-To: open->closed 
State-Changed-By: clement 
State-Changed-When: Wed May 19 08:09:26 PDT 2004 
State-Changed-Why:  
New port added, thanks! 
I convert your port to use www/apache2/Makefile.modules.3rd routines. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=66789 
>Unformatted:
