autoconf patch to pick the correct CUPS_USER for Mac OSX 10.3 #270

Closed
michaelrsweet opened this Issue Sep 9, 2003 · 2 comments

Comments

Projects
None yet
1 participant
Collaborator

michaelrsweet commented Sep 9, 2003

Version: 1.1.20rc1
CUPS.org User: jlovell

Attached is a patch that picks the correct CUPS_USER/GROUP on Mac OSX 10.3 (Panther).

Collaborator

michaelrsweet commented Sep 15, 2003

CUPS.org User: mike

Thanks, commited to CVS for 1.1.20.

Collaborator

michaelrsweet commented Sep 15, 2003

"cups-opsys.diff":

Index: cups-opsys.m4

RCS file: /home/anoncvs/cups/config-scripts/cups-opsys.m4,v
retrieving revision 1.9
diff -u -d -b -w -r1.9 cups-opsys.m4
--- cups-opsys.m4 17 Dec 2002 18:56:39 -0000 1.9
+++ cups-opsys.m4 9 Sep 2003 19:51:17 -0000
@@ -55,13 +55,14 @@
AC_ARG_WITH(cups-group, [ --with-cups-group set default group for CUPS],
CUPS_GROUP="$withval",
AC_MSG_CHECKING(for default print group)

  • if test -f /etc/group; then
    if test x$uname = xDarwin; then

  •   CUPS_GROUP="admin"
    
  •   AC_MSG_RESULT(Darwin, using "$CUPS_GROUP")
    
  •       GROUP_LIST="lp admin"
    

    else

  •   if test -f /etc/group; then
    
  •       GROUP_LIST="sys system root"
    
  •   fi
        CUPS_GROUP=""
    
  •       for group in sys system root; do
    
  •   for group in $GROUP_LIST; do
            if test "`grep \^${group}: /etc/group`" != ""; then
                CUPS_GROUP="$group"
                AC_MSG_RESULT($group)
    

    @@ -76,7 +77,6 @@
    else
    CUPS_GROUP="${GROUP:=nobody}"
    AC_MSG_RESULT(no group file, using "$CUPS_GROUP")

  •   fi
    

    fi)

    AC_SUBST(CUPS_USER)

michaelrsweet added this to the Stable milestone Mar 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment