]> git.ipfire.org Git - ipfire-2.x.git/blob - src/pakfire/pakfire
Update:
[ipfire-2.x.git] / src / pakfire / pakfire
1 #!/bin/bash
2 ############################################################################################
3 # Version 0.1a, Copyright (C) 2006 by IPFire.org #
4 # IPFire ist freie Software, die Sie unter bestimmten Bedingungen weitergeben dürfen. #
5 ############################################################################################
6
7 . /etc/pakfire.conf
8 . $PAKHOME/lib/get_mirror.sh
9 . $PAKHOME/lib/get_list.sh
10 . $PAKHOME/lib/check_pak.sh
11 . $PAKHOME/lib/get_upgrade.sh
12 . $PAKHOME/lib/get_base.sh
13 . $PAKHOME/lib/get_pak.sh
14
15 case "$1" in
16 update)
17 get_mirror
18 get_list
19 check_pak
20 ;;
21
22 upgrade)
23 get_upgrade
24 get_base
25 ;;
26
27 install)
28 case "$2" in
29 BASE-*)
30 echo $2
31 ;;
32 *)
33 if [ -e $DB_DIR/$2 ]; then
34 if [ -e $IP_DIR/$2 ]; then
35 pakfire_logger "$2 is already installed on this system."
36 else
37 get_pak $2
38 fi
39 else
40 pakfire_logger "There is no paket with this name: $2"
41 fi
42 ;;
43 esac
44 ;;
45
46 *)
47 echo -e "IPFire - Pakfire $PAKVER:"
48 echo -e "===\t===\t===\t===\t===\t===\t===\t==="
49 echo -e "pakfire install [packet]\t- Installs a new packet."
50 echo -e "pakfire remove [paket]\t\t- Uninstalls a paket."
51 echo -e "pakfire update\t\t\t- Reloads the package list."
52 echo -e "pakfire upgrade\t\t\t- Searches for new updates."
53 echo -e "===\t===\t===\t===\t===\t===\t===\t==="
54 ;;
55
56 esac
57
58 ################################### EOF ####################################################