From 667b124c5c6019e370a1c462b984917e3a534da6 Mon Sep 17 00:00:00 2001 From: Clement Laforet Date: Wed, 19 May 2004 15:09:20 +0000 Subject: [PATCH] Add mod_chroot 0.2, the mod_chroot makes running Apache in a chroot easy. PR: ports/66789 Submitted by: Alexey A.Ukhov --- www/Makefile | 1 + www/mod_chroot/Makefile | 28 +++++++++++++++++++++++++ www/mod_chroot/distinfo | 2 ++ www/mod_chroot/files/post-install-notes | 2 ++ www/mod_chroot/pkg-descr | 8 +++++++ 5 files changed, 41 insertions(+) create mode 100644 www/mod_chroot/Makefile create mode 100644 www/mod_chroot/distinfo create mode 100644 www/mod_chroot/files/post-install-notes create mode 100644 www/mod_chroot/pkg-descr diff --git a/www/Makefile b/www/Makefile index 172a872cbe5d..965d38de80d9 100644 --- a/www/Makefile +++ b/www/Makefile @@ -228,6 +228,7 @@ SUBDIR += mod_bunzip2 SUBDIR += mod_cfg_ldap SUBDIR += mod_cgi_debug + SUBDIR += mod_chroot SUBDIR += mod_clamav SUBDIR += mod_color SUBDIR += mod_csacek diff --git a/www/mod_chroot/Makefile b/www/mod_chroot/Makefile new file mode 100644 index 000000000000..d1c48d0220e2 --- /dev/null +++ b/www/mod_chroot/Makefile @@ -0,0 +1,28 @@ +# Ports collection makefile for: mod_chroot +# Date created: May 18, 2004 +# Whom: Alexey A.Ukhov +# +# $FreeBSD$ +# + +PORTNAME= mod_chroot +PORTVERSION= 0.2 +CATEGORIES= www +MASTER_SITES= http://core.segfault.pl/~hobbit/mod_chroot/dist/ + +MAINTAINER= ports@FreeBSD.org +COMMENT= The mod_chroot makes running Apache in a chroot easy + +PORTDOCS= INSTALL EAPI CAVEATS +WANT_APACHE= 13 +AP_FAST_BUILD= YES +AP_GENPLIST= YES + +.include +.include "${PORTSDIR}/www/apache2/Makefile.modules.3rd" +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} +.endif +.include diff --git a/www/mod_chroot/distinfo b/www/mod_chroot/distinfo new file mode 100644 index 000000000000..36046b4fc2db --- /dev/null +++ b/www/mod_chroot/distinfo @@ -0,0 +1,2 @@ +MD5 (mod_chroot-0.2.tar.gz) = 85211cd8cafcfe64258e02291ea6439e +SIZE (mod_chroot-0.2.tar.gz) = 10540 diff --git a/www/mod_chroot/files/post-install-notes b/www/mod_chroot/files/post-install-notes new file mode 100644 index 000000000000..01cbfa1282a8 --- /dev/null +++ b/www/mod_chroot/files/post-install-notes @@ -0,0 +1,2 @@ +Running Apache (and CGI/Perl/PHP) inside a chroot jail can be tricky. +Read CAVEATS for known problems and solutions. diff --git a/www/mod_chroot/pkg-descr b/www/mod_chroot/pkg-descr new file mode 100644 index 000000000000..10e25981df46 --- /dev/null +++ b/www/mod_chroot/pkg-descr @@ -0,0 +1,8 @@ +mod_chroot makes running Apache in a secure chroot environment easy. +You don't need to create a special directory hierarchy containing +/dev, /lib, /etc... +mod_chroot allows you to run Apache in a chroot jail with no additional files. +The chroot() system call is performed at the end of startup procedure - when +all libraries are loaded and log files open. + +WWW: http://core.segfault.pl/~hobbit/mod_chroot/