Date: Wed, 14 May 2008 15:31:29 GMT From: Peter Klett <peter@netkey.at> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/123673: New Port: www/mod_umask Apache2+ Module to set the umask of the apache process Message-ID: <200805141531.m4EFVTZ5047873@www.freebsd.org> Resent-Message-ID: <200805141540.m4EFe2YO087699@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 123673 >Category: ports >Synopsis: New Port: www/mod_umask Apache2+ Module to set the umask of the apache process >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed May 14 15:40:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Peter Klett >Release: 7.0-RELEASE >Organization: netkey information technology gmbh >Environment: FreeBSD box.netkey.at 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Thu Mar 20 15:08:51 CET 2008 root@box.netkey.at:/usr/obj/usr/src/sys/GENERIC i386 >Description: mod_umask sets the Unix umask of the Apache HTTPd process after it has started. This is useful when accessing Subversion from both mod_dav_svn and via a local client with a file:// url. Without setting a proper umask the file permissions can create a repository that is not easily accessable from both. >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_umask # mod_umask/Makefile # mod_umask/distinfo # mod_umask/pkg-message # mod_umask/files # mod_umask/files/patch-src-Makefile.am # mod_umask/files/patch-src-Makefile.in # mod_umask/pkg-descr # mod_umask/pkg-plist # echo c - mod_umask mkdir -p mod_umask > /dev/null 2>&1 echo x - mod_umask/Makefile sed 's/^X//' >mod_umask/Makefile << 'END-of-mod_umask/Makefile' X# New ports collection makefile for: mod_umask X# Date created: 14 May 2008 X# Whom: Peter Klett <peter@netkey.at> X# X# $FreeBSD$ X# X XPORTNAME= mod_umask XPORTVERSION= 0.1.0 XCATEGORIES= www XMASTER_SITES= http://www.outoforder.cc/downloads/mod_umask/ XDISTNAME= ${PORTNAME}-${PORTVERSION} X XMAINTAINER= XCOMMENT= An Apache module that can set the umask of the apache process(es) X XHAS_CONFIGURE= yes XUSE_BZIP2= yes X XUSE_APACHE= 2.0+ XMODULENAME= mod_umask X# AP_FAST_BUILD= yes X# AP_GENPLIST= yes X# AP_INC+= ${LOCALBASE}/include X# AP_LIB+= ${LOCALBASE}/lib X X.include <bsd.port.mk> END-of-mod_umask/Makefile echo x - mod_umask/distinfo sed 's/^X//' >mod_umask/distinfo << 'END-of-mod_umask/distinfo' XMD5 (mod_umask-0.1.0.tar.bz2) = fb33093c7db879ddd6ec710521c1ec05 XSHA256 (mod_umask-0.1.0.tar.bz2) = 2be142d562260c895de94600a56b13d8346174b5e2f8a4974adcef23249ec790 XSIZE (mod_umask-0.1.0.tar.bz2) = 182078 END-of-mod_umask/distinfo echo x - mod_umask/pkg-message sed 's/^X//' >mod_umask/pkg-message << 'END-of-mod_umask/pkg-message' X*************************************************************** X XTo use mod_umask, add these lines to your httpd.conf: X XLoadModule umask_module libexec/apache2/mod_umask.so XUmask 022 X X*************************************************************** END-of-mod_umask/pkg-message echo c - mod_umask/files mkdir -p mod_umask/files > /dev/null 2>&1 echo x - mod_umask/files/patch-src-Makefile.am sed 's/^X//' >mod_umask/files/patch-src-Makefile.am << 'END-of-mod_umask/files/patch-src-Makefile.am' X--- src/Makefile.am.orig 2004-10-12 21:08:50.000000000 +0200 X+++ src/Makefile.am 2008-05-14 17:06:37.000000000 +0200 X@@ -7,7 +7,7 @@ X lib_LTLIBRARIES = libmod_umask.la X X make_so: X- @if test ! -L mod_umask.so ; then ln -s .libs/libmod_umask.so mod_umask.so ; fi X+ @if test ! -L mod_umask.so ; then ln -s .libs/libmod_umask.so.0.0 mod_umask.so ; fi X X clean: X rm -fr .libs END-of-mod_umask/files/patch-src-Makefile.am echo x - mod_umask/files/patch-src-Makefile.in sed 's/^X//' >mod_umask/files/patch-src-Makefile.in << 'END-of-mod_umask/files/patch-src-Makefile.in' X--- src/Makefile.in.orig 2004-10-12 21:10:26.000000000 +0200 X+++ src/Makefile.in 2008-05-14 17:06:48.000000000 +0200 X@@ -492,7 +492,7 @@ X X X make_so: X- @if test ! -L mod_umask.so ; then ln -s .libs/libmod_umask.so mod_umask.so ; fi X+ @if test ! -L mod_umask.so ; then ln -s .libs/libmod_umask.so.0.0 mod_umask.so ; fi X X clean: X rm -fr .libs END-of-mod_umask/files/patch-src-Makefile.in echo x - mod_umask/pkg-descr sed 's/^X//' >mod_umask/pkg-descr << 'END-of-mod_umask/pkg-descr' Xmod_umask sets the Unix umask of the Apache HTTPd process after it has started. XThis is useful when accessing Subversion from both mod_dav_svn and via a local Xclient with a file:// url. X XWWW: http://www.outoforder.cc/projects/apache/mod_umask/ END-of-mod_umask/pkg-descr echo x - mod_umask/pkg-plist sed 's/^X//' >mod_umask/pkg-plist << 'END-of-mod_umask/pkg-plist' X%%APACHEMODDIR%%/mod_umask.so END-of-mod_umask/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200805141531.m4EFVTZ5047873>