pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

(www/lighttpd) chown: lighttpd: invalid user name



Hi, 
this is kind of send-pr, but I may be wrong, so... 

(1) Make sure you don't have lighttpd entry in /etc/passwd
(2) cd /usr/pkgsrc/www/lighttpd; make package
(3) make package-install

You will get two problematic lines.
   (a) chown: lighttpd: invalid user name
   (b) The following directories are used by lighttpd-1.4.32nb4 and
       have the wrong ownership and/or permissions:

See below for the log:
--------------
modena@makoto 16:00:58/130311(..www/lighttpd)% make package-install            
=> Bootstrap dependency digest>=20010302: found digest-20121220
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg 
fetch-pkg-vulnerabilities'.
=> Becoming ``root'' to make su-real-package-install (/usr/pkg/bin/sudo)
===> Install binary package of lighttpd-1.4.32nb4
chown: lighttpd: invalid user name
lighttpd-1.4.32nb4: copying /usr/pkg/share/examples/rc.d/lighttpd to 
/etc/rc.d/lighttpd
lighttpd-1.4.32nb4: copying 
/usr/pkg/share/examples/lighttpd/conf.d/access_log.conf to 
/usr/pkg/etc/lighttpd/conf.d/access_log.conf

    ... (the lines omitted) ...

lighttpd-1.4.32nb4: copying 
/usr/pkg/share/examples/lighttpd/vhosts.d/vhosts.template to 
/usr/pkg/etc/lighttpd/vhosts.d/vhosts.template
===========================================================================
The following directories are used by lighttpd-1.4.32nb4 and
have the wrong ownership and/or permissions:

        /var/log/lighttpd (m=0755, o=lighttpd, g=lighttpd)

===========================================================================
=> Dropping ``root'' privileges.

Index: Makefile
===================================================================
RCS file: /cvs/cvsroot/pkgsrc/www/lighttpd/Makefile,v
retrieving revision 1.39
diff -u -r1.39 Makefile
--- Makefile    2 Mar 2013 20:33:34 -0000       1.39
+++ Makefile    11 Mar 2013 14:27:25 -0000
@@ -40,6 +40,12 @@
 LIGHTTPD_USER?=                lighttpd
 LIGHTTPD_GROUP?=       lighttpd
 
+.if ${OPSYS} != "Cygwin"
+PKG_GROUPS=             ${LIGHTTPD_GROUP}
+PKG_USERS=              ${LIGHTTPD_USER}:${LIGHTTPD_GROUP}
+PKG_GECOS.${LIGHTTPD_USER}=    Light http Web Server
+.endif
+
 INSTALLATION_DIRS=     ${DOCDIR} ${EGDIR} ${EGDIR}/conf.d ${EGDIR}/vhosts.d
 OWN_DIRS=              ${PKG_SYSCONFDIR}/conf.d
 OWN_DIRS+=             ${PKG_SYSCONFDIR}/vhosts.d



Home | Main Index | Thread Index | Old Index