summarylogtreecommitdiffstats
path: root/texmaster.install
blob: 8f92af8c224e035ba4f0d28e3254a75b77dceb8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
post_install() {
    GAMEDIR=/usr/local/games/Texmaster2009-3
    LAUNCHER=$GAMEDIR/texmaster-launcher
    groupadd -f -g 50 games
    chgrp games $GAMEDIR $LAUNCHER
    chmod g+w $GAMEDIR
    chmod g+s $LAUNCHER
}

pre_remove() {
    pre_upgrade

    rm -f $GAMEDIR/*.bmp
    rm -f $GAMEDIR/Texmaster2009.ubuntu10.04.nv
    rm -f $GAMEDIR/Texmaster2009.ubuntu10.04.sav
}

pre_upgrade() {
    GAMEDIR=/usr/local/games/Texmaster2009-3
    LAUNCHER=$GAMEDIR/texmaster-launcher

    chmod g-s $LAUNCHER
    chmod g-w $GAMEDIR
    chgrp root $GAMEDIR $LAUNCHER
}

post_upgrade() {
    post_install
}