From fd4a79e2535b5cd78f1fa47cdb54122b96a20b49 Mon Sep 17 00:00:00 2001 From: Colin Smith Date: Mon, 4 Apr 2005 03:06:10 +0000 Subject: Add arpwatch package. --- packages/arpwatch.xml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 packages/arpwatch.xml (limited to 'packages/arpwatch.xml') diff --git a/packages/arpwatch.xml b/packages/arpwatch.xml new file mode 100644 index 00000000..97f907c2 --- /dev/null +++ b/packages/arpwatch.xml @@ -0,0 +1,46 @@ + + arpwatch + arpwatch: Settings + 2.1.a13 + installedpackages->package->$packagename->configuration->settings + pkg_edit.php?xml=arpwatch.xml&id=0 + + arpwatch + Modify arpwatch settings. +
Services
+ arpwatch.xml + /pkg_edit.php?xml=arpwatch.xml&id=0 +
+ + + Listening Interface + interface + Enter the desired listening interface here. + interfaces_selection + + + + unlink_if_exists("/usr/local/etc/rc.d/arpwatch.sh"); + + + function sync_package_arpwatch() { + conf_mount_rw(); + config_lock(); + global $config; + $fout = fopen("/usr/local/etc/rc.d/arpwatch.sh","w"); + fwrite($fout, "# This file was automatically generated by the pfSense\n# package management system.\n\n"); + if(isset($config['installedpackages']['arpwatch']['config']['0']['interface'])) { + $int = convert_friendly_interface_to_real_interface_name($config['installedpackages']['arpwatch']['config']['0']['interface']); + fwrite($fout, "/usr/local/sbin/arpwatch -i " . $int . "\n\n"); + } + fclose($fout); + conf_mount_ro(); + config_unlock(); + } + + + sync_package_arpwatch(); + mwexec("/usr/bin/killall -HUP arpwatch"); + +
+ -- cgit v1.2.3