updated on Fri Jan 20 04:00:45 UTC 2012
[aur-mirror.git] / mint-fm2 / install
blobaf19e91decd75b433111471459dcfb6d49ab796c
1 #!/bin/bash
3 #pre_install() {
4 # do something here
5 #}
7 ## arg 1: the new package version
8 post_install() {
9 #link mint-fm2 in bin directory
10 if [ ! -L /usr/bin/mint-fm2 ]
11 then
12 ln -s /usr/lib/linuxmint/mint-fm2/mint-fm2 /usr/bin/mint-fm2
14 # link root daemon
15 if [ ! -L /etc/rc.d/mfmrootdaemon ]
16 then
17 ln -s /usr/lib/linuxmint/mint-fm2/mfmrootdaemon /etc/rc.d/mfmrootdaemon
19 echo "****************************************"
20 echo "Mint-FM2 is the autogenerating and
21 autoupdating menu system for the Linux Mint Fluxbox
22 Edition. Mint-FM2 also provides an exit dialog.
23 This is the Arch Linux port."
24 echo ""
25 echo "This AUR package will install the system
26 wide daemon to monitor for changes. Please enable
27 the daemon by adding 'mfmrootdaemon' to the DAEMONS
28 section in /etc/rc.conf."
29 echo ""
30 echo "You will also have to launch the menu in
31 your Fluxbox startup file (~/.fluxbox/startup).
32 Simply add the following line at an appropriate
33 place.
34 mint-fm2 start"
35 echo ""
36 echo "If you are upgrading from v2.xx, please
37 delete ~/.mint-fm2 and ~/.fluxbox/menu."
38 echo ""
39 echo "For more info visit:
40 http://community.linuxmint.com/tutorial/view/96"
41 echo "****************************************"
42 echo
45 ## arg 1: the new package version
46 ## arg 2: the old package version
47 pre_upgrade() {
48 sleep 0
51 ## arg 1: the new package version
52 ## arg 2: the old package version
53 post_upgrade() {
54 /etc/rc.d/mfmrootdaemon restart
55 post_install
58 ## arg 1: the old package version
59 pre_remove() {
60 /etc/rc.d/mfmrootdaemon stop
63 ## arg 1: the old package version
64 post_remove() {
65 #delete links
66 if [ -L /usr/bin/mint-fm2 ]
67 then
68 rm /usr/bin/mint-fm2
70 if [ -L /etc/rc.d/mfmrootdaemon ]
71 then
72 rm /etc/rc.d/mfmrootdaemon
74 echo
75 echo "****************************************"
76 echo 'Users must delete the folder ~/.mint-fm2 for uninstallation to be complete'
77 echo "****************************************"