updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / gshield / gshield.install
bloba21029ed1bcf69967cee110c3c2823870afcd535
1 post_install() {
2     for q in gShield-version gShield.rc tools sourced routables/routable.rules
3     do
4         ln -s /usr/share/gshield/$q /etc/gshield/$q
5     done
6     ln -s /etc/gshield /etc/firewall
8     echo ""
9     echo "--------------------------------------------------------------------------"
10     echo "Before running /etc/rc.d/gshield, be sure to edit the firewall"
11     echo "config file (/etc/gshield/gShield.conf) so that it will work for you site."
12     echo ""
13     echo "If you set BLACKLISTED=AUTO in /etc/gshield/gShield.conf"
14     echo "make sure to remove from /etc/hosts.deny lines like"
15     echo "ALL: ALL DENY"
16     echo "Otherwise you'll receive an error during gshield start."
17     echo "The syntax of /etc/hosts.deny for gshield is"
18     echo "ALL: ip_address"
19     echo ""
20     echo "--------------------------------------------------------------------------"
23 post_remove() {
24         rm -rf /etc/gshield
25         rm -f /etc/firewall
28 op=$1
29 shift
30 $op $*