updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / firefox-firesheep / firefox-firesheep.install
blob53383e67ecb7b8ce7e8c7b6416424970a511d512
1 post_install() {
2   _ffver=`pacman -Q firefox | cut -f2 -d\ | cut -f1 -d-`
3   emid=`pacman -Ql firefox-firesheep | cut -f6 -d/|tail -1`
4   arch=`uname -m`
5   if [ $arch == i686 ];then
6     ARCH=x86
7   elif [ $arch == x86_64 ];then
8     ARCH=$arch
9   fi
10   #/usr/lib/firefox-${_ffver}/extensions/$emid/platform/Linux_x86_64-gcc3/firesheep-backend --fix-permissions
11   /usr/lib/firefox-${_ffver}/extensions/$emid/platform/Linux_${ARCH}-gcc3/firesheep-backend --fix-permissions
12   echo ""
13   echo ">>> Fixed backend permissions: firesheep-backend --fix-permissions"
14   echo ">>> Security: suid bit set on firesheep-backend binary"
15   echo ""
16   /bin/true
19 post_upgrade() {
20     post_install