FreeBSD Bugzilla – Attachment 121673 Details for
Bug 164698
[patch] www/apache22: remove custom user creation in favor of USERS framework
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.92 KB, created by
Jason Helfman
on 2012-02-01 23:50:09 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Jason Helfman
Created:
2012-02-01 23:50:09 UTC
Size:
1.92 KB
patch
obsolete
>Index: Makefile >=================================================================== >RCS file: /home/pcvs/ports/www/apache22/Makefile,v >retrieving revision 1.295 >diff -u -r1.295 Makefile >--- Makefile 1 Feb 2012 18:56:08 -0000 1.295 >+++ Makefile 1 Feb 2012 23:43:13 -0000 >@@ -9,6 +9,7 @@ > > PORTNAME= apache > PORTVERSION= 2.2.22 >+PORTREVISION= 1 > #PORTREVISION= 1 > CATEGORIES= www > MASTER_SITES= ${MASTER_SITE_APACHE_HTTPD} >@@ -43,6 +44,9 @@ > USE_RC_SUBR= apache22 htcacheclean > LIBTOOLFILES= configure.in > >+USERS= www >+GROUPS= www >+ > MPM_ITK_VERSION?= 20110321-01 > > # for slave ports >@@ -191,9 +195,6 @@ > @${REINPLACE_CMD} -e "s,%%WWWOWN%%,${WWWOWN}," -e "s,%%WWWGRP%%,${WWWGRP}," ${WRKSRC}/docs/conf/httpd.conf > @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/support/envvars-std > >-pre-install: >- @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL >- > post-install: > @${MKDIR} ${PREFIX}/etc/apache22/envvars.d > @${MKDIR} ${PREFIX}/etc/apache22/Includes >Index: pkg-install >=================================================================== >RCS file: pkg-install >diff -N pkg-install >--- pkg-install 2 Aug 2009 19:35:56 -0000 1.6 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,35 +0,0 @@ >-#!/bin/sh >-# $FreeBSD: ports/www/apache22/pkg-install,v 1.6 2009/08/02 19:35:56 mezz Exp $ >-# >- >-if [ "$2" != "PRE-INSTALL" ]; then >- exit 0 >-fi >- >-WWWUSER=www >-WWWGROUP=${WWWUSER} >-WWWUID=80 >-WWWGID=${WWWUID} >- >-if ! pw groupshow "${WWWGROUP}" 2>/dev/null 1>&2; then >- if pw groupadd ${WWWGROUP} -g ${WWWGID}; then >- echo "Added group \"${WWWGROUP}\"." >- else >- echo "Adding group \"${WWWGROUP}\" failed..." >- exit 1 >- fi >-fi >- >-if ! pw usershow "${WWWUSER}" 2>/dev/null 1>&2; then >- if pw useradd ${WWWUSER} -u ${WWWUID} -g ${WWWGROUP} -h - \ >- -s "/sbin/nologin" -d "/nonexistent" \ >- -c "World Wide Web Owner"; \ >- then >- echo "Added user \"${WWWUSER}\"." >- else >- echo "Adding user \"${WWWUSER}\" failed..." >- exit 1 >- fi >-fi >- >-exit 0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 164698
: 121673