--- cherokee-new/Makefile 2010-03-14 21:31:24.000000000 -0300 +++ cherokee-new/Makefile 2010-03-14 21:24:23.000000000 -0300 @@ -55,7 +55,8 @@ cherokee-tweak.1 cherokee-worker.1 PORTDOCS= * -OPTIONS= IPV6 "IPv6 support" on \ +OPTIONS= WWWUSER "Run as www:www user" on \ + IPV6 "IPv6 support" on \ MYSQL "MySQL Database" off \ LDAP "LDAP Support" off \ GEOIP "GeoIP Support (recommended)" on \ @@ -76,6 +77,10 @@ .include +.ifdef WITH_WWWUSER +CONFIGURE_ARGS+=--with-wwwuser=www --with-wwwgroup=www +.endif + .ifdef WITHOUT_IPV6 CONFIGURE_ARGS+=--disable-ipv6 .endif @@ -190,5 +195,8 @@ @cd ${DATADIR}/admin && ${FIND} . -name "*.py" |\ ${XARGS} ${PYTHON_CMD} ${PYTHON_LIBDIR}/py_compile.py .endif + @${ECHO_MSG} "===============================================================" + @${CAT} ${PKGMESSAGE} + @${ECHO_MSG} "===============================================================" .include --- cherokee-new/pkg-message 1969-12-31 20:00:00.000000000 -0400 +++ cherokee-new/pkg-message 2010-03-14 21:34:39.000000000 -0300 @@ -0,0 +1,22 @@ +Please note that if you intend to run Cherokee as www user, +you'll have to manually create the log files and set the +proper ownership and permissions on them. + +You can do it with (as root): + + touch /var/log/cherokee.error /var/log/cherokee.access + chown -v www:www /var/log/cherokee.* + chmod -v 0640 /var/log/cherokee.* + +If you run Cherokee as root (NOT recommended) this is not +necessary. + +To run Cherokee at startup or using the rc script, add +'cherokee_enable="YES"' to /etc/rc.conf + +To start the Cherokee administrative interface, run (as root) + + cherokee-admin + +For more information on cherokee-admin(1), please refer to +the official documentation and manpage.