diff options
author | James Meyer <james.meyer@operamail.com> | 2012-08-07 19:43:13 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-08-07 19:43:13 (GMT) |
commit | 682fa53ae5764bbf06c49618fbdf6610712533ae (patch) | |
tree | 11dac6536928cf207d672d8c2248f832eb8e5802 /abs/extra/cups/cups.install | |
parent | 74b3d6193d21af031f39b797cb374fc332934808 (diff) | |
download | linhes_pkgbuild-682fa53ae5764bbf06c49618fbdf6610712533ae.zip linhes_pkgbuild-682fa53ae5764bbf06c49618fbdf6610712533ae.tar.gz linhes_pkgbuild-682fa53ae5764bbf06c49618fbdf6610712533ae.tar.bz2 |
cups 1.5.3
Diffstat (limited to 'abs/extra/cups/cups.install')
-rw-r--r-- | abs/extra/cups/cups.install | 17 |
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 } |