updated on Fri Jan 6 04:00:21 UTC 2012
[aur-mirror.git] / asp / asp.install
blob085e7618e8f773e5c7a3cbc6b270ab1377a62a3e
1 pre_install() {
2   /bin/true
5 post_install() {
6     cp /bin/tr /usr/bin/
7     chown nobody /opt/casp/admin -R
8     chgrp nobody /opt/casp/admin -R
9     echo "This makes ASP believe Arch is supported." > /etc/slackware-version
10     echo '<% Response.Write("Hello World!") %>' > /home/httpd/html/test.asp
11     echo "Include /opt/casp/include/asp.conf" >> /etc/httpd/conf/httpd.conf
12     echo "Now please start /etc/rc.d/asp-server and reload /etc/rc.d/httpd"
13     echo "Then you can check /home/httpd/html/test.asp from your webserver with your favourite browser."
14     echo "For the Administration Console you have to start /etc/rc.d/asp-admin and visit http://your.webserver:5103"
15     echo "Please remember to change the default user (admin) and password (root) using /opt/casp/admtool"
18 pre_upgrade() {
19   /bin/true
22 post_upgrade() {
23     echo "Successfully upgraded."
26 pre_remove() {
27   /bin/true
30 post_remove() {
31     rm /home/httpd/html/test.asp
32     rm -rf /opt/casp
33     sed -i '/Include \/opt\/casp\/include\/asp.conf/d' /etc/httpd/conf/httpd.conf
34     pidof admd >> /dev/null 2>&1 && killall admd
35     pidof admdog >> /dev/null 2>&1 && killall admdog
36     pidof caspd >> /dev/null 2>&1 && killall caspd
37     echo "Successfully removed. Please remember to reload httpd."
40 op=$1
41 shift
42 $op $*