summaryrefslogtreecommitdiff
path: root/pcr/mpdscribble/mpdscribble.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-05-19 20:24:17 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-05-19 20:24:17 -0300
commit2a50130eb015ae0821f1d7d775f7920578b79a55 (patch)
tree0230e49c899147993ff8404b0c859d5dee1d8744 /pcr/mpdscribble/mpdscribble.install
parentcea8490173dfafe478f0feb3d01311ff0d42408a (diff)
mpdscribble: add new package to [pcr]
Diffstat (limited to 'pcr/mpdscribble/mpdscribble.install')
-rw-r--r--pcr/mpdscribble/mpdscribble.install22
1 files changed, 22 insertions, 0 deletions
diff --git a/pcr/mpdscribble/mpdscribble.install b/pcr/mpdscribble/mpdscribble.install
new file mode 100644
index 000000000..e7038d5d8
--- /dev/null
+++ b/pcr/mpdscribble/mpdscribble.install
@@ -0,0 +1,22 @@
+post_install() {
+ echo 'An example config is provided in /usr/share/mpdscribble/mpdscribble.conf.example'
+ echo
+ echo 'For system-wide config copy this file to /etc/mpdscribble.conf'
+ echo 'For per-user config copy this file to ~/.mpdscribble/mpdscribble.conf'
+}
+
+## arg 1: the new package version
+## arg 2: the old package version
+pre_upgrade() {
+ # removed /etc/mpdscribble.conf on FEB 19 2011
+ # only display warning for people with mpdscribble older then 0.21
+ if (( "$(vercmp 0.21-1 $2)" > 0 )) && [[ -f /etc/mpdscribble.conf ]]
+ then
+ echo "$1 is new $2 is old"
+ cp /etc/mpdscribble.conf /etc/mpdscribble.conf.oldbackup
+ echo 'The package does not provide /etc/mpdscribble.conf anymore.'
+ echo 'Copied /etc/mpdscribble.conf to /etc/mpdscribble.conf.oldbackup'
+ echo
+ echo 'The example file is now located at /etc/mpdscribble.conf.example'
+ fi
+}