Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 379477

Summary: www-servers/nginx does not create document root
Product: Gentoo Linux Reporter: Jamie Learmonth <jamie-lists>
Component: New packagesAssignee: Benedikt Böhm (RETIRED) <hollow>
Status: RESOLVED FIXED    
Severity: normal CC: dev-zero, gef.kornflakes
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jamie Learmonth 2011-08-16 21:33:34 UTC
The current nginx ebuild does not create it's default document root if it is not present which means it does not work "out-the-box" on a fresh Gentoo install. This is inconsistent with other popular alternatives such as apache which creates it in the pkg_postinst and lighttpd which creates it on enewuser.

Reproducible: Always

Actual Results:  
User needs to manaually work out which directories to create,

Expected Results:  
/var/www/localhost/htdocs is automatically created if it does not exist.
Comment 1 Johan Bergström 2011-08-23 08:46:21 UTC
Patch:

--- nginx-1.0.5.ebuild	2011-07-25 11:26:54.000000000 +0200
+++ nginx-1.0.5-r1.ebuild	2011-08-23 09:58:10.000000000 +0200
@@ -283,7 +283,7 @@
 }
 
 src_install() {
-	keepdir /var/log/${PN} /var/tmp/${PN}/{client,proxy,fastcgi,scgi,uwsgi}
+	keepdir /var/www/localhost/htdocs /var/log/${PN} /var/tmp/${PN}/{client,proxy,fastcgi,scgi,uwsgi}
 
 	dosbin objs/nginx
 	newinitd "${FILESDIR}"/nginx.init-r2 nginx
Comment 2 Benedikt Böhm (RETIRED) gentoo-dev 2011-09-07 08:34:52 UTC
fixed, thanks