Subject: CVS commit: pkgsrc
From: Johnny C. Lam
Date: 2007-07-04 22:55:07
Message id: 20070704205507.7C77521507@cvs.netbsd.org

Log Message:
Make it easier to build and install packages "unprivileged", where
the owner of all installed files is a non-root user.  This change
affects most packages that require special users or groups by making
them use the specified unprivileged user and group instead.

(1) Add two new variables PKG_GROUPS_VARS and PKG_USERS_VARS to
    unprivileged.mk.  These two variables are lists of other bmake
    variables that define package-specific users and groups.  Packages
    that have user-settable variables for users and groups, e.g. apache
    and APACHE_{USER,GROUP}, courier-mta and COURIER_{USER,GROUP},
    etc., should list these variables in PKG_USERS_VARS and PKG_GROUPS_VARS
    so that unprivileged.mk can know to set them to ${UNPRIVILEGED_USER}
    and ${UNPRIVILEGED_GROUP}.

(2) Modify packages to use PKG_GROUPS_VARS and PKG_USERS_VARS.

Files:
RevisionActionfile
1.42modifypkgsrc/audio/icecast/Makefile
1.5modifypkgsrc/audio/mt-daapd/Makefile
1.14modifypkgsrc/audio/ubs/Makefile
1.3modifypkgsrc/chat/anope/Makefile
1.25modifypkgsrc/chat/i2cbd/Makefile
1.35modifypkgsrc/chat/ircd-hybrid/Makefile
1.28modifypkgsrc/chat/ircu/Makefile
1.28modifypkgsrc/chat/jabberd/Makefile
1.38modifypkgsrc/chat/jabberd2/Makefile
1.16modifypkgsrc/chat/mu-conference/Makefile
1.57modifypkgsrc/chat/silc-server/Makefile
1.19modifypkgsrc/chat/unrealircd/Makefile
1.39modifypkgsrc/comms/asterisk/Makefile
1.56modifypkgsrc/comms/minicom/Makefile
1.28modifypkgsrc/comms/xisp/Makefile
1.30modifypkgsrc/databases/gnats/Makefile
1.58modifypkgsrc/databases/mysql4-client/Makefile.common
1.22modifypkgsrc/databases/mysql5-client/Makefile.common
1.9modifypkgsrc/databases/openldap/Makefile.common
1.7modifypkgsrc/databases/openldap-server/Makefile
1.61modifypkgsrc/databases/phpmyadmin/Makefile
1.25modifypkgsrc/databases/postgresql80-server/Makefile
1.8modifypkgsrc/databases/postgresql81-server/Makefile
1.2modifypkgsrc/databases/postgresql82-server/Makefile
1.5modifypkgsrc/databases/sqlitemanager/Makefile
1.2modifypkgsrc/devel/RTx-Shredder/Makefile
1.25modifypkgsrc/devel/bugzilla/Makefile
1.6modifypkgsrc/devel/cvsd/Makefile
1.31modifypkgsrc/devel/distcc/Makefile
1.27modifypkgsrc/devel/mantis/Makefile
1.33modifypkgsrc/devel/monotone-server/Makefile
1.11modifypkgsrc/devel/p4d/Makefile
1.15modifypkgsrc/devel/rt-mysql/Makefile.common
1.25modifypkgsrc/devel/rt3/Makefile
1.4modifypkgsrc/devel/rt3/options.mk
1.17modifypkgsrc/inputmethod/canna/Makefile.common
1.19modifypkgsrc/inputmethod/canna-server/Makefile
1.13modifypkgsrc/inputmethod/ja-freewnn-lib/Makefile.common
1.16modifypkgsrc/inputmethod/ja-freewnn-server-bin/Makefile
1.15modifypkgsrc/inputmethod/sj3-server-bin/Makefile
1.76modifypkgsrc/mail/clamav/Makefile
1.33modifypkgsrc/mail/clamsmtp/Makefile
1.4modifypkgsrc/mail/courier-mta/Makefile.common
1.5modifypkgsrc/mail/courier-mta/options.mk
1.72modifypkgsrc/mail/cyrus-imapd/Makefile
1.43modifypkgsrc/mail/cyrus-imapd21/Makefile
1.98modifypkgsrc/mail/dovecot/Makefile
1.57modifypkgsrc/mail/dspam/Makefile
1.85modifypkgsrc/mail/exim/Makefile
1.35modifypkgsrc/mail/exim3/Makefile
1.6modifypkgsrc/mail/freepops/Makefile
1.23modifypkgsrc/mail/gld/Makefile
1.42modifypkgsrc/mail/imp/Makefile
1.9modifypkgsrc/mail/ingo/Makefile
1.48modifypkgsrc/mail/mailman/Makefile
1.29modifypkgsrc/mail/majordomo/Makefile
1.37modifypkgsrc/mail/mimedefang/Makefile
1.28modifypkgsrc/mail/nullmailer/Makefile
1.48modifypkgsrc/mail/popa3d/Makefile
1.20modifypkgsrc/mail/postgrey/Makefile
1.32modifypkgsrc/mail/prayer/Makefile
1.59modifypkgsrc/mail/qpopper/Makefile
1.5modifypkgsrc/mail/roundcube/Makefile
1.89modifypkgsrc/mail/squirrelmail/Makefile
1.29modifypkgsrc/mail/sympa/Makefile
1.21modifypkgsrc/mail/turba/Makefile
1.30modifypkgsrc/misc/jitterbug/Makefile
1.90modifypkgsrc/net/bind9/Makefile
1.60modifypkgsrc/net/freeradius/Makefile
1.6modifypkgsrc/net/hobbitclient/Makefile
1.19modifypkgsrc/net/hobbitmon/Makefile
1.16modifypkgsrc/net/howl/Makefile
1.50modifypkgsrc/net/ja-samba/Makefile
1.7modifypkgsrc/net/kismet/Makefile
1.21modifypkgsrc/net/lambdamoo/Makefile
1.45modifypkgsrc/net/mldonkey/Makefile
1.13modifypkgsrc/net/mydns-pgsql/Makefile.common
1.5modifypkgsrc/net/nagios-base/Makefile.common
1.8modifypkgsrc/net/nagios-nrpe/Makefile
1.4modifypkgsrc/net/nagios-nsca/Makefile.common
1.18modifypkgsrc/net/netdisco/Makefile
1.14modifypkgsrc/net/netsaint-base/Makefile.common
1.14modifypkgsrc/net/pygopherd/Makefile
1.3modifypkgsrc/net/rbldnsd/Makefile
1.31modifypkgsrc/net/snort/Makefile
1.21modifypkgsrc/net/spread/Makefile
1.4modifypkgsrc/net/teamspeak-server/Makefile
1.42modifypkgsrc/net/tor/Makefile
1.22modifypkgsrc/net/userppp/Makefile
1.10modifypkgsrc/net/uucp/Makefile
1.27modifypkgsrc/net/vsftpd/Makefile
1.84modifypkgsrc/news/inn/Makefile
1.36modifypkgsrc/news/leafnode/Makefile
1.25modifypkgsrc/parallel/sge/Makefile
1.124modifypkgsrc/print/cups/Makefile
1.33modifypkgsrc/security/amavisd-new/Makefile
1.15modifypkgsrc/security/base/Makefile
1.10modifypkgsrc/security/courier-authlib/Makefile.common
1.55modifypkgsrc/security/cyrus-sasl/Makefile
1.29modifypkgsrc/security/dirmngr/Makefile
1.23modifypkgsrc/security/libprelude/Makefile
1.180modifypkgsrc/security/openssh/Makefile
1.39modifypkgsrc/security/openssh+gssapi/Makefile
1.26modifypkgsrc/security/pks/Makefile
1.17modifypkgsrc/security/prelude-lml/Makefile
1.20modifypkgsrc/security/prelude-manager/Makefile
1.21modifypkgsrc/security/py-prewikka/Makefile
1.42modifypkgsrc/sysutils/amanda-common/Makefile
1.25modifypkgsrc/sysutils/amanda-common/Makefile.common
1.21modifypkgsrc/sysutils/bacula/Makefile
1.39modifypkgsrc/sysutils/bacula/Makefile.common
1.6modifypkgsrc/sysutils/bacula-clientonly/Makefile
1.24modifypkgsrc/sysutils/dbus/Makefile
1.9modifypkgsrc/sysutils/munin-node/Makefile
1.8modifypkgsrc/sysutils/munin-server/Makefile
1.48modifypkgsrc/sysutils/ups-nut/Makefile
1.10modifypkgsrc/time/kronolith/Makefile
1.11modifypkgsrc/www/ap2-suphp/Makefile
1.191modifypkgsrc/www/apache/Makefile
1.115modifypkgsrc/www/apache2/Makefile
1.7modifypkgsrc/www/apache2/options.mk
1.15modifypkgsrc/www/apache22/Makefile
1.2modifypkgsrc/www/apache22/options.mk
1.33modifypkgsrc/www/awstats/Makefile
1.22modifypkgsrc/www/drupal/Makefile
1.16modifypkgsrc/www/geeklog/Makefile
1.50modifypkgsrc/www/horde/Makefile
1.15modifypkgsrc/www/iasp/Makefile
1.31modifypkgsrc/www/privoxy/Makefile
1.19modifypkgsrc/www/screws/Makefile
1.193modifypkgsrc/www/squid/Makefile
1.2modifypkgsrc/www/squirm/Makefile
1.23modifypkgsrc/www/tinyproxy/Makefile
1.12modifypkgsrc/www/zope29/Makefile
1.16modifypkgsrc/www/zope3/Makefile
1.3modifypkgsrc/www/zope3/Makefile.common