diff options
author | 2013-04-01 22:21:31 +0000 | |
---|---|---|
committer | 2013-04-01 22:21:31 +0000 | |
commit | ef1a7add4d57b42038ec07795456131914721287 (patch) | |
tree | 8db93be05eff18e95a3297100d190f8c1f9e3d10 /net-print/cups/files | |
parent | Newer libmemcached has sasl suport unconditionally enabled. (diff) | |
download | historical-ef1a7add4d57b42038ec07795456131914721287.tar.gz historical-ef1a7add4d57b42038ec07795456131914721287.tar.bz2 historical-ef1a7add4d57b42038ec07795456131914721287.zip |
Move /var/run/cups to /run/cups, bug 451756
Package-Manager: portage-2.2.0_alpha170/cvs/Linux x86_64
Manifest-Sign-Key: 0xEBE6A336BE19039C!
Diffstat (limited to 'net-print/cups/files')
-rw-r--r-- | net-print/cups/files/cups-1.6.2-statedir.patch | 12 | ||||
-rw-r--r-- | net-print/cups/files/cupsd.init.d-r1 | 22 |
2 files changed, 34 insertions, 0 deletions
diff --git a/net-print/cups/files/cups-1.6.2-statedir.patch b/net-print/cups/files/cups-1.6.2-statedir.patch new file mode 100644 index 000000000000..3e836657de8a --- /dev/null +++ b/net-print/cups/files/cups-1.6.2-statedir.patch @@ -0,0 +1,12 @@ +diff -ruN cups-1.6.2.orig/config-scripts/cups-directories.m4 cups-1.6.2/config-scripts/cups-directories.m4 +--- cups-1.6.2.orig/config-scripts/cups-directories.m4 2012-10-01 03:55:23.000000000 +0200 ++++ cups-1.6.2/config-scripts/cups-directories.m4 2013-04-02 00:11:41.000000000 +0200 +@@ -429,7 +429,7 @@ + ;; + *) + # All others +- CUPS_STATEDIR="$localstatedir/run/cups" ++ CUPS_STATEDIR="/run/cups" + ;; + esac + AC_DEFINE_UNQUOTED(CUPS_STATEDIR, "$CUPS_STATEDIR") diff --git a/net-print/cups/files/cupsd.init.d-r1 b/net-print/cups/files/cupsd.init.d-r1 new file mode 100644 index 000000000000..99f617498823 --- /dev/null +++ b/net-print/cups/files/cupsd.init.d-r1 @@ -0,0 +1,22 @@ +#!/sbin/runscript + +depend() { + use net + @neededservices@ + before nfs + after logger +} + +start() { + ebegin "Starting cupsd" + checkpath -q -d -m 0755 -o root:lp /run/cups + checkpath -q -d -m 0511 -o lp:lpadmin /run/cups/certs + start-stop-daemon --start --quiet --exec /usr/sbin/cupsd + eend $? +} + +stop() { + ebegin "Stopping cupsd" + start-stop-daemon --stop --quiet --exec /usr/sbin/cupsd + eend $? +} |