Bug 156866 - [PATCH] change cachedir location/permission for print/cups-base
Summary: [PATCH] change cachedir location/permission for print/cups-base
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dirk Meyer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-07 17:50 UTC by alex.deiter
Modified: 2011-05-11 19:20 UTC (History)
0 users

See Also:


Attachments
file.diff (2.07 KB, patch)
2011-05-07 17:50 UTC, alex.deiter
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description alex.deiter 2011-05-07 17:50:02 UTC
1. Change default location for Cups cachedir from /var/cache/cups to /var/db/cups according to man 7 hier:

     /var/      multi-purpose log, temporary, transient, and spool files
     db/        miscellaneous automatically generated system-spe‐
                cific database files

2. Change permission for Cups cachedir from 755 to 775:

Cups original cups-1.4.6/scheduler/Makefile used 775 permission for cups CACHEDIR:

       echo Creating $(CACHEDIR)...
       $(INSTALL_DIR) -m 775 -g $(CUPS_GROUP) $(CACHEDIR)

with 755 permission we have errors in cups errorlog:

E [07/May/2011:18:57:55 +0400] [cups-driverd] Unable to write "/var/cache/cups/ppds.dat" - Permission denied

Could you please review attached patch ?

Fix: cd /usr/ports/print/cups-base && patch -p0 < patch-cups-cachedir.txt && make install

Patch attached with submission follows:
How-To-Repeat: cd /usr/ports/print/cups-base && make install
Comment 1 Edwin Groothuis freebsd_committer 2011-05-07 17:50:11 UTC
Responsible Changed
From-To: freebsd-ports-bugs->dinoex

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer 2011-05-11 19:15:30 UTC
dinoex      2011-05-11 18:15:21 UTC

  FreeBSD ports repository

  Modified files:
    print/cups-base      Makefile pkg-plist 
  Log:
  PR:             156866
  Submitted by:   Alex Deiter
  
  Revision  Changes    Path
  1.157     +5 -3      ports/print/cups-base/Makefile
  1.63      +4 -4      ports/print/cups-base/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Dirk Meyer freebsd_committer 2011-05-11 19:20:11 UTC
State Changed
From-To: open->closed

committed, thanks.