updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / fuckipred / fuckipred.install
blob96c627fa2e1a80931149dfa1dded3814a5eb07bd
1 # arch linux install script for fuckipred by sluggo // dm9
3 post_install() {
4         echo -e "\E[32mfuckipred post-install script!\E[0m\E[0m"
5         printf "\E[32mLooking for wesside-ng.. "
6         if command -v wesside-ng >/dev/null 2>&1
7         then
8                 printf "Found!\E[0m\E[0m\n"
9                 exit 0
10         else
11                 printf "\E[31mNot found!\n"
12         fi
14         AC_VERSION="1.0-rc3"
15         AC_URL="http://download.aircrack-ng.org/aircrack-ng-"$AC_VERSION".tar.gz"
17         echo -e "\E[32mDownloading aircrack-ng to $HOME..\E[0m\E[0m"
18         cd $HOME
19         wget $AC_URL
21         echo -e "\E[32mUnpacking..\E[0m\E[0m"
22         tar -zxf aircrack-ng-$AC_VERSION.tar.gz
24         cd aircrack-ng-$AC_VERSION
26         echo -e "\E[32mCompiling..\E[0m\E[0m"
27         make strip
28         make SQLITE=true unstable=true
30         echo -e "\E[32mInstalling aircrack-ng, please enter your password..\E[0m\E[0m"
31         sudo make SQLITE=true unstable=true install
33         cd ..
35         echo -e "\E[32mCleaning up..\E[0m\E[0m"
36         rm -v -f aircrack-ng-$AC_VERSION.tar.gz
39 post_remove() {
40         AC_VERSION="1.0-rc3"
41         echo -e "\E[32mfuckipred post-uninstall script!\E[0m\E[0m"
42         echo -e "\E[32muninstalling aircrack-ng..\E[0m\E[0m"
43         cd $HOME/aircrack-ng-$AC_VERSION
44         sudo make uninstall
45         echo -e "\E[32mCleaning up..\E[0m\E[0m"
46         cd ..
47         rm -r -v -f aircrack-ng-$AC_VERSION