summaryrefslogtreecommitdiff
path: root/testing/cups/cups.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-06-14 00:01:48 +0000
committerroot <root@rshg054.dnsready.net>2012-06-14 00:01:48 +0000
commit35c30674b2b901077a809a6f1d8e5a0115098c8b (patch)
treebac1c7d0c5b1651fef436eb13be31506b5aa60b1 /testing/cups/cups.install
parentf46e734fbcd0b4cbae2cff1a017b95e4e8e02d53 (diff)
Thu Jun 14 00:01:48 UTC 2012
Diffstat (limited to 'testing/cups/cups.install')
-rw-r--r--testing/cups/cups.install26
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/cups/cups.install b/testing/cups/cups.install
new file mode 100644
index 000000000..47c3d9b82
--- /dev/null
+++ b/testing/cups/cups.install
@@ -0,0 +1,26 @@
+post_install() {
+ if [ -x usr/bin/xdg-icon-resource ]; then
+ xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
+ fi
+ echo ">> If you use an HTTPS connection to CUPS, the first time you access"
+ echo ">> the interface it may take a very long time before the site comes up."
+ echo ">> This is because the first request triggers the generation of the CUPS"
+ echo ">> SSL certificates which can be a very time-consuming job."
+}
+
+post_upgrade() {
+ if [ -x usr/bin/xdg-icon-resource ]; then
+ xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
+ fi
+ if [ "`vercmp $2 1.4.7-2`" -lt 0 ]; then
+ # important upgrade notice
+ echo "daemon script has been renamed to /etc/rc.d/cupsd"
+ echo "change your entry in /etc/rc.conf"
+ fi
+}
+
+post_remove() {
+ if [ -x usr/bin/xdg-icon-resource ]; then
+ xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
+ fi
+}