updated on Fri Jan 20 20:16:25 UTC 2012
[aur-mirror.git] / starbug / starbug.install
blob9e57bbe6238f57f1e49e4ffc69f855198cc8cda3
1 # arg 1:  the new package version
2 pre_install() {
3   /bin/true
6 # arg 1:  the new package version
7 post_install() {
8   if [[ ! `grep "^extension=mysql.so" /etc/php/php.ini` ]]
9         then echo "Enable the MySQL module for PHP by adding the line:"
10         echo "   extension=mysql.so"
11         echo "to your /etc/php/php.ini, otherwise starbug won't work."
12   fi
13   if [[ ! `grep "^extension=pdo.so" /etc/php/php.ini` ]]
14         then echo "Enable the PDO module for PHP by adding the line:"
15         echo "   extension=pdo.so"
16         echo "to your /etc/php/php.ini, otherwise starbug won't work."
17   fi
18   if [[ ! `grep "^extension=pdo_mysql.so" /etc/php/php.ini` ]]
19         then echo "Enable the MySQL driver for PDO by adding the line:"
20         echo "   extension=mysql_pdo.so"
21         echo "to your /etc/php/php.ini, otherwise starbug won't work."
22   fi
23   /bin/true
26 # arg 1:  the new package version
27 # arg 2:  the old package version
28 pre_upgrade() {
29   /bin/true
32 # arg 1:  the new package version
33 # arg 2:  the old package version
34 post_upgrade() {
35   /bin/true
38 # arg 1:  the old package version
39 pre_remove() {
40   /bin/true
43 # arg 1:  the old package version
44 post_remove() {
45   /bin/true
48 op=$1
49 shift
50 $op $*