From 016314ffab29dcacb45bd9d93150c7690ed803ba Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 11 Aug 2005 16:58:43 +0000 Subject: Add Simon Dick's WIDENTD package. --- packages/widentd.xml | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 packages/widentd.xml (limited to 'packages') diff --git a/packages/widentd.xml b/packages/widentd.xml new file mode 100644 index 00000000..8a1fd657 --- /dev/null +++ b/packages/widentd.xml @@ -0,0 +1,77 @@ + + + widentd + 1.03 + installedpackages->package->$packagename->configuration->settings + Services: widentd + + widentd + Modify widentd settings. +
Services
+ widentd.xml +
+ + widentd + widentd.sh + widentd + + + + Listening interface + interface + Enter the desired listening interface here. + interfaces_selection + + + Username + username + Enter the username you'd like displayed via widentd. + input + + + System name + sysname + Enter the system name you'd like displayed via widentd + pfSense + input + + + + unlink_if_exists("/usr/local/etc/rc.d/widentd.sh"); + + + function sync_package_widentd() { + conf_mount_rw(); + config_lock(); + global $config; + if (!isset($config['installedpackages']['widentd']['config'][0]['interface']) { + $config['installedpackages']['widentd']['config'][0]['interface'] = 'WAN'; + } + if (!isset($config['installedpackages']['widentd']['config'][0]['username'])) { + $config['installedpackages']['widentd']['config'][0]['username'] = 'user'; + } + if (!isset($config['installedpackages']['widentd']['config'][0]['sysname'])) { + $config['installedpackages']['widentd']['config'][0]['sysname'] = 'UNIX'; + } + $int = convert_friendly_interface_to_real_interface_name($config['installedpackages']['widentd']['config'][0]['interface']); + $ip = find_interface_ip($int); + $user = $config['installedpackages']['widentd']['config'][0]['username']; + $system = $config['installedpackages']['widentd']['config'][0]['sysname']; + $start = "/usr/local/sbin/widentd -u {$user} -o {$system} -i {$ip}"; + $stop = "/usr/bin/killall widentd"; + write_rcfile(array( + "file" => "widentd.sh", + "start" => $start, + "stop" => $stop + ) + ); + restart_service("widentd"); + conf_mount_ro(); + config_unlock(); + } + + + sync_package_widentd(); + +
+ -- cgit v1.2.3