summaryrefslogtreecommitdiffstats
path: root/abs/extra/cups/cups.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/cups/cups.install')
-rw-r--r--abs/extra/cups/cups.install17
1 files changed, 14 insertions, 3 deletions
diff --git a/abs/extra/cups/cups.install b/abs/extra/cups/cups.install
index e92e17e..47c3d9b 100644
--- a/abs/extra/cups/cups.install
+++ b/abs/extra/cups/cups.install
@@ -1,5 +1,7 @@
post_install() {
- xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
+ 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"
@@ -7,9 +9,18 @@ post_install() {
}
post_upgrade() {
- xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
+ 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() {
- xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
+ if [ -x usr/bin/xdg-icon-resource ]; then
+ xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
+ fi
}