]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - scheduler/Makefile
Load cups into easysw/current.
[thirdparty/cups.git] / scheduler / Makefile
index ecbe0f96f83f374288e57af7fb7a0294e70eaba1..adbebbf54aba0600edba8c4a1994f4db67d2e07a 100644 (file)
@@ -1,9 +1,9 @@
 #
-# "$Id: Makefile 4801 2005-10-18 21:09:12Z mike $"
+# "$Id: Makefile 5116 2006-02-16 12:52:32Z mike $"
 #
 #   Scheduler Makefile for the Common UNIX Printing System (CUPS).
 #
-#   Copyright 1997-2005 by Easy Software Products, all rights reserved.
+#   Copyright 1997-2006 by Easy Software Products, all rights reserved.
 #
 #   These coded instructions, statements, and computer programs are the
 #   property of Easy Software Products and are protected by Federal
@@ -45,7 +45,8 @@ CUPSDOBJS =   \
                quotas.o \
                server.o \
                statbuf.o \
-               subscriptions.o
+               subscriptions.o \
+               sysman.o
 MIMEOBJS =     \
                filter.o \
                mime.o \
@@ -103,40 +104,48 @@ depend:
 
 install:       all
        echo Creating $(SBINDIR)...
-       $(INSTALL_DIR) $(SBINDIR)
+       $(INSTALL_DIR) -m 755 $(SBINDIR)
        echo Installing cupsd in $(SBINDIR)...
        $(INSTALL_BIN) cupsd $(SBINDIR)
        echo Creating $(SERVERBIN)...
-       $(INSTALL_DIR) $(SERVERBIN)
+       $(INSTALL_DIR) -m 755 $(SERVERBIN)
        echo Creating $(SERVERBIN)/daemon...
-       $(INSTALL_DIR) $(SERVERBIN)/daemon
+       $(INSTALL_DIR) -m 755 $(SERVERBIN)/daemon
        echo Installing cups-deviced, cups-driverd, cups-lpd, and cups-polld in $(SERVERBIN)/daemon...
        $(INSTALL_BIN) cups-deviced $(SERVERBIN)/daemon
        $(INSTALL_BIN) cups-driverd $(SERVERBIN)/daemon
        $(INSTALL_BIN) cups-lpd $(SERVERBIN)/daemon
        $(INSTALL_BIN) cups-polld $(SERVERBIN)/daemon
        echo Creating $(SERVERBIN)/driver...
-       $(INSTALL_DIR) $(SERVERBIN)/driver
+       $(INSTALL_DIR) -m 755 $(SERVERBIN)/driver
        echo Creating $(SERVERROOT)...
-       $(INSTALL_DIR) $(SERVERROOT)
+       $(INSTALL_DIR) -m 755 $(SERVERROOT)
+       -chgrp $(CUPS_GROUP) $(SERVERROOT)
        echo Creating $(SERVERROOT)/interfaces...
-       $(INSTALL_DIR) $(SERVERROOT)/interfaces
+       $(INSTALL_DIR) -m 755 $(SERVERROOT)/interfaces
+       -chgrp $(CUPS_GROUP) $(SERVERROOT)/interfaces
        echo Creating $(SERVERROOT)/ppd...
-       $(INSTALL_DIR) $(SERVERROOT)/ppd
+       $(INSTALL_DIR) -m 755 $(SERVERROOT)/ppd
+       -chgrp $(CUPS_GROUP) $(SERVERROOT)/ppd
        echo Creating $(STATEDIR)...
-       $(INSTALL_DIR) $(STATEDIR)
+       $(INSTALL_DIR) -m 755 $(STATEDIR)
        echo Creating $(STATEDIR)/certs...
-       $(INSTALL_DIR) $(STATEDIR)/certs
+       $(INSTALL_DIR) -m 511 $(STATEDIR)/certs
+       -chgrp $(CUPS_PRIMARY_SYSTEM_GROUP) $(STATEDIR)/certs
        echo Creating $(LOGDIR)...
-       $(INSTALL_DIR) $(LOGDIR)
+       $(INSTALL_DIR) -m 755 $(LOGDIR)
        echo Creating $(REQUESTS)...
-       $(INSTALL_DIR) $(REQUESTS)
+       $(INSTALL_DIR) -m 710 $(REQUESTS)
+       -chgrp $(CUPS_GROUP) $(REQUESTS)
        echo Creating $(REQUESTS)/tmp...
-       $(INSTALL_DIR) $(REQUESTS)/tmp
+       $(INSTALL_DIR) -m 1770 $(REQUESTS)/tmp
+       -chgrp $(CUPS_GROUP) $(REQUESTS)/tmp
        echo Creating $(CACHEDIR)...
-       $(INSTALL_DIR) $(CACHEDIR)
-       echo Creating $(CACHEDIR)/ppd...
-       $(INSTALL_DIR) $(CACHEDIR)/ppd
+       $(INSTALL_DIR) -m 775 $(CACHEDIR)
+       -chgrp $(CUPS_GROUP) $(CACHEDIR)
+#      echo Creating $(CACHEDIR)/ppd...
+#      $(INSTALL_DIR) -m 755 $(CACHEDIR)/ppd
+#      -chgrp $(CUPS_GROUP) $(CACHEDIR)/ppd
 
 
 #
@@ -146,14 +155,14 @@ install:  all
 cupsd: $(CUPSDOBJS) libmime.a ../cups/$(LIBCUPS)
        echo Linking $@...
        $(CC) $(LDFLAGS) -o cupsd $(CUPSDOBJS) libmime.a \
-               $(LIBZ) $(SSLLIBS) $(LIBSLP) $(PAMLIBS) $(LIBS) \
-               $(LIBPAPER) $(LIBMALLOC)
+               $(LIBZ) $(SSLLIBS) $(LIBSLP) $(PAMLIBS) \
+               $(LIBPAPER) $(LIBMALLOC) $(CUPSDLIBS) $(LIBS)
 
 cupsd-static:  $(CUPSDOBJS) libmime.a ../cups/libcups.a
        echo Linking $@...
        $(CC) $(LDFLAGS) -o cupsd-static $(CUPSDOBJS) libmime.a \
                $(LIBZ) $(SSLLIBS) $(LIBSLP) $(PAMLIBS) ../cups/libcups.a \
-               $(COMMONLIBS) $(LIBZ) $(LIBPAPER) $(LIBMALLOC)
+               $(COMMONLIBS) $(LIBZ) $(LIBPAPER) $(LIBMALLOC) $(CUPSDLIBS)
 
 
 #
@@ -216,10 +225,10 @@ testdirsvc:       testdirsvc.o
 # testmime
 #
 
-testmime:      testmime.o libmime.a
+testmime:      testmime.o libmime.a ../cups/libcups.a
        echo Linking $@...
        $(CC) $(LDFLAGS) -o $@ testmime.o libmime.a ../cups/libcups.a \
-               $(COMMONLIBS) $(LIBZ)
+               $(COMMONLIBS) $(LIBZ) $(SSLLIBS)
 
 
 #
@@ -239,5 +248,5 @@ include Dependencies
 
 
 #
-# End of "$Id: Makefile 4801 2005-10-18 21:09:12Z mike $".
+# End of "$Id: Makefile 5116 2006-02-16 12:52:32Z mike $".
 #