diff options
author | Daniel Stefan Haischt <dsh@pfsense.org> | 2006-08-17 16:35:22 +0000 |
---|---|---|
committer | Daniel Stefan Haischt <dsh@pfsense.org> | 2006-08-17 16:35:22 +0000 |
commit | 665619eb42cbed1ce5d3d45fbd190e31bf249995 (patch) | |
tree | 4e57cf070a00467d813f855b8014a411a63df56a /packages/freenas/pkg/freenas.inc | |
parent | 3cc4e9b45f49fb0b1ea9e65c6910adb4a5297423 (diff) | |
download | pfsense-packages-665619eb42cbed1ce5d3d45fbd190e31bf249995.tar.gz pfsense-packages-665619eb42cbed1ce5d3d45fbd190e31bf249995.tar.bz2 pfsense-packages-665619eb42cbed1ce5d3d45fbd190e31bf249995.zip |
bugfixing
Diffstat (limited to 'packages/freenas/pkg/freenas.inc')
-rw-r--r-- | packages/freenas/pkg/freenas.inc | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/packages/freenas/pkg/freenas.inc b/packages/freenas/pkg/freenas.inc index bb0685df..d00440a3 100644 --- a/packages/freenas/pkg/freenas.inc +++ b/packages/freenas/pkg/freenas.inc @@ -232,6 +232,8 @@ function oninstall_setup_config() { } function custom_php_install_command() { + global $g; + oninstall_copy_kernel_binaries(); oninstall_copy_misc_binaries(); adjust_package_contents(); @@ -240,27 +242,43 @@ function custom_php_install_command() { if (! file_exists("/usr/local/etc/rc.d")) mwexec("mkdir -p /usr/local/etc/rc.d"); + if (! file_exists("{$g['varrun_path']}/dbus")) + mkdir("{$g['varrun_path']}/dbus"); + + if (! file_exists("{$g['varrun_path']}/avahi-daemon")) + mkdir("{$g['varrun_path']}/avahi-daemon"); + rename("/usr/local/pkg/rc.freenas", "/usr/local/etc/rc.d/freenas.sh"); chmod ("/usr/local/etc/rc.d/freenas.sh", 0755); mwexec("ln -s /usr/local/etc/uams/uams_passwd.so /usr/local/etc/uams/uams_clrtxt.so"); mwexec("ln -s /usr/local/etc/uams/uams_dhx_passwd.so /usr/local/etc/uams/uams_dhx.so"); + /* hack cause I linked netatalk against db44 instead of db42 */ + mwexec("ln -s /usr/local/lib/libdb-4.4.so.0 /usr/local/lib/libdb-4.2.so.2"); } function custom_php_deinstall_command() { - global $config; + global $config, $g; oninstall_copy_kernel_binaries("deinstall"); oninstall_copy_misc_binaries("deinstall"); if (! file_exists("/usr/local/etc/rc.d")) - mwexec("rm -rf /usr/local/etc/rc.d"); } + mwexec("rm -rf /usr/local/etc/rc.d"); + + if (! file_exists("{$g['varrun_path']}/dbus")) + mwexec("rm -rf {$g['varrun_path']}/dbus"); + + if (! file_exists("{$g['varrun_path']}/avahi-daemon")) + mwexec("rm -rf {$g['varrun_path']}/avahi-daemon"); unlink_if_exists("/usr/local/etc/uams/uams_clrtxt.so"); unlink_if_exists("/usr/local/etc/uams/uams_dhx.so"); unlink_if_exists("/usr/local/etc/rc.d/freenas.sh"); + unlink_if_exists("/usr/local/lib/libdb-4.2.so.2"); unset($config['installedpackages']['freenas']); write_config(); conf_mount_ro(); +} ?> |