updated on Sat Jan 21 20:03:50 UTC 2012
[aur-mirror.git] / apf-firewall / apf-firewall.install
blobd9c2168f671054acdc1776cb858cd651d18fba1f
1 # arg 1:  the new package version
2 # arg 2:  the old package version
4 msg="\nDon't forget to configure apf at \"/etc/apf/conf.apf\"\nThe default interface is set to eth0.\n\nAdd apf to /etc/rc.config like this \"DAEMONS=(network apf)\"\nto load the firewall at startup.\n"
7 _cleanup() {
8   rm -f /var/log/apf_log 2>/dev/null
9   rm -fr /etc/apf 2>/dev/null
10   rm -f /etc/cron.daily/apf
13 pre_install() {
14   _cleanup
17 post_install () {
18   echo -e "${msg}"
21 post_upgrade() {
22   echo -e "${msg}"
25 post_remove() {
26   _cleanup
27   echo -e "\nplease remove apf from \"DAEMONS\" in rc.config\n"