diff options
author | salo <salo> | 2003-05-30 11:53:16 +0000 |
---|---|---|
committer | salo <salo> | 2003-05-30 11:53:16 +0000 |
commit | eeb083c110c1c3aa6e489f806b33c53ded04b0e7 (patch) | |
tree | 1592349ed21d75758eae07ed05ddbdbd625c8a37 /net/ipa/files | |
parent | 6fbf7307d2efc065a1cd1d0f50f7f262a8cf3fca (diff) | |
download | pkgsrc-eeb083c110c1c3aa6e489f806b33c53ded04b0e7.tar.gz |
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
Diffstat (limited to 'net/ipa/files')
-rw-r--r-- | net/ipa/files/ipa.generic | 78 | ||||
-rw-r--r-- | net/ipa/files/ipa.sh | 43 |
2 files changed, 121 insertions, 0 deletions
diff --git a/net/ipa/files/ipa.generic b/net/ipa/files/ipa.generic new file mode 100644 index 00000000000..7ac8b1af072 --- /dev/null +++ b/net/ipa/files/ipa.generic @@ -0,0 +1,78 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: ipa.generic,v 1.1 2003/05/30 11:53:17 salo Exp $ +# + +name="ipa" +required_files="@PKG_SYSCONFDIR@/${name}.conf" +required_dirs="/var/ipa" +pidfile="/var/run/${name}.pid" +command="@PREFIX@/bin/ipa" + +ipa_start() +{ + if [ ! -r $required_files ]; then + echo "$0: WARNING: $required_files is not readable." + exit 1 + fi + if [ ! -d $required_dirs ]; then + echo "$0: WARNING: $required_dirs is not a directory." + exit 1 + fi + + echo "Starting ${name}." + eval $command + return_code=$? + if [ $return_code != "0" ]; then + exit 1 + fi +} + +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 +} + +case $1 in + +'start') + ipa_start + ;; + +'stop') + ipa_stop + ;; + +'restart') + ipa_stop + ipa_start + ;; + +'reconfigure') + ipa_reconfigure + ;; + +'dump') + ipa_dump + ;; + +*) + echo "Usage: $0 (start|stop|restart|reconfigure|dump)" + ;; +esac diff --git a/net/ipa/files/ipa.sh b/net/ipa/files/ipa.sh new file mode 100644 index 00000000000..d4a85076694 --- /dev/null +++ b/net/ipa/files/ipa.sh @@ -0,0 +1,43 @@ +#!@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" |