Skip site navigation (1)Skip section navigation (2)
Date:      18 May 2004 05:14:07 -0000
From:      "Alexey A.Ukhov" <auk@startext.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/66789: new port request
Message-ID:  <20040518051407.91093.qmail@startext.tomsk.ru>
Resent-Message-ID: <200405180520.i4I5K24x095671@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         66789
>Category:       ports
>Synopsis:       new port request
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 17 22:20:02 PDT 2004
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040518051407.91093.qmail>