wok annotate turbine/receipt @ rev 23216
openvpn: add make-ovpn
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 22 20:02:34 2020 +0100 (2020-03-22) |
parents | 4ad0d7bbe903 |
children |
rev | line source |
---|---|
hackdorte@20046 | 1 # SliTaz package receipt. |
hackdorte@20046 | 2 |
hackdorte@20046 | 3 PACKAGE="turbine" |
hackdorte@20046 | 4 VERSION="1.0" |
hackdorte@20046 | 5 CATEGORY="system-tools" |
hackdorte@20046 | 6 SHORT_DESC="The Memory Cleaner for SliTaz." |
hackdorte@20046 | 7 MAINTAINER="devel@slitaz.org" |
hackdorte@20046 | 8 LICENSE="GPLv3" |
hackdorte@20046 | 9 WEB_SITE="http://people.slitaz.org/~leonardolaporte/sh/turbine" |
hackdorte@20046 | 10 |
hackdorte@20046 | 11 DEPENDS="bash librsvg yad-gtk2-html" |
hackdorte@20046 | 12 |
hackdorte@20046 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
hackdorte@20046 | 14 genpkg_rules() |
hackdorte@20046 | 15 { |
hackdorte@20046 | 16 |
hackdorte@20046 | 17 local_dir="var/www/cgi-bin/turbine" |
hackdorte@20046 | 18 launcher_dir="usr/share/applications" |
hackdorte@20046 | 19 |
hackdorte@20046 | 20 mkdir -p $fs/$local_dir $fs/$launcher_dir |
hackdorte@20046 | 21 |
hackdorte@20046 | 22 cp -a stuff/* $fs/$local_dir |
hackdorte@20046 | 23 cp -a stuff/res/desktop/turbine.desktop $fs/$launcher_dir |
hackdorte@20046 | 24 |
hackdorte@20046 | 25 } |
hackdorte@20046 | 26 |
hackdorte@20048 | 27 pre_install() |
hackdorte@20048 | 28 { |
hackdorte@20048 | 29 if [ -e "/usr/bin/turbine" ] |
hackdorte@20048 | 30 then |
hackdorte@20048 | 31 rm -rf /usr/bin/turbine |
hackdorte@20048 | 32 fi |
hackdorte@20048 | 33 } |
hackdorte@20048 | 34 |
hackdorte@20046 | 35 post_install() |
hackdorte@20046 | 36 { |
hackdorte@20046 | 37 |
hackdorte@20046 | 38 startup_app="$1/var/www/cgi-bin/turbine/turbine" |
hackdorte@20046 | 39 quit_app="$1/var/www/cgi-bin/turbine/res/base/quit" |
hackdorte@20046 | 40 |
hackdorte@20046 | 41 chmod +x $startup_app $quit_app |
hackdorte@20046 | 42 cd $1/usr/bin && ln -s $startup_app turbine |
hackdorte@20046 | 43 exit |
hackdorte@20046 | 44 |
hackdorte@20046 | 45 } |
hackdorte@20046 | 46 |
hackdorte@20046 | 47 post_remove() |
hackdorte@20046 | 48 { |
hackdorte@20046 | 49 |
hackdorte@20046 | 50 # Remove the symbolic link. |
hackdorte@20046 | 51 rm -rf $1/usr/bin/turbine |
hackdorte@20046 | 52 exit |
hackdorte@20046 | 53 |
hackdorte@20046 | 54 } |