pkgsrc/net/ipa/files/ipa.sh
salo 7d2002d261 Updated to version 1.3.4.
Addresses PR pkg/21719 by Andrey Simonenko (MAINTAINER).

Changes:
- don't include bsd.pkg.install.mk if USE_PKGINSTALL is already set
- restrict to *BSD
- install /var/ipa directory
- fix paths in manual pages
- better rc scripts, NetBSD native and generic one
- DESCR has 80 columns

1.3.4:
======
- Added support for PF from OpenBSD 3.3
- Minor changes
2003-05-30 11:53:16 +00:00

43 lines
638 B
Bash

#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: ipa.sh,v 1.1 2003/05/30 11:53:17 salo Exp $
#
# PROVIDE: ipa
# REQUIRE: ipfilter
. /etc/rc.subr
name="ipa"
rcvar=$name
command="@PREFIX@/bin/${name}"
required_files="@PKG_SYSCONFDIR@/$name.conf"
required_dir="/var/${name}"
stop_cmd="ipa_stop"
reconfigure_cmd="ipa_reconfigure"
dump_cmd="ipa_dump"
extra_commands="reconfigure dump"
ipa_stop()
{
echo "Stopping ${name}."
${command} -k shutdown
}
ipa_reconfigure()
{
echo "Reloading ${name} configuration."
${command} -k reconfigure
}
ipa_dump()
{
echo "Dumping ${name} stats."
${command} -k dump
}
load_rc_config $name
run_rc_command "$1"