jim-p
60dd7649d0
Move the stop_packages code to a function, and call the function from the shell script, and call the function directly for a reboot. Fixes #2402 and ticket #1564
2012-04-30 15:32:47 -04:00
Phil Davis
a1d4a048dc
remove_freebsd_package: check that a symlink exists and is currently pointing into the pbidir of the current package, then unlink it. This avoids possibly deleting real files, or deleting a symlink that points into some other package.
...
pkg_fetch_recursive: remove a bonus "$" in the symlink target specification. This was causing symlinks from /usr/local/bin to not be generated validly.
install_package_xml: make the grep for a pbi package name more robust by anchoring the search for the name to be at the start. This will prevent potential problems, e.g. with a package "bar" matching "foobar".
install_package_xml: check that the target pbi dir exists before creating the symlink. There can be extra conf files in /user/local/etc/... that are not in the PBI dir tree. This can happen with squidGuard on top of squid, particularly after adding/removing/adding the packages.
2012-03-23 12:13:07 +05:45
Phil Davis
44988c5e22
Remove an extra "-" left there by accident.
2012-03-21 23:51:42 +05:45
Phil Davis
8059acb56e
Handle mixed-case package names like squidGuard.
...
Check that conf files in PBI folders exist before unlink.
Pass correct package names 1 at a time from uninstalll_package to delete_package.
log_error if the PBI package name can't be found in remove_freebsd_package - this means that the PBI files will not get cleaned up. Usually this is caused because the system has been rebooted since the package was installed and the PBI db in /var/db/pbi has gone (e.g. on nanobsd /var is created from scratch at boot)
2012-03-21 23:41:11 +05:45
Phil Davis
84d50fe73c
Fix case where package names are substrings of each other. e.g. "squid" and "squid_radius_auth". Look for "squid-", which will match the full PBI package name for squid but will not match "squid_radius_auth". Bug #2301
2012-03-20 16:59:10 +05:45
smos
cfbfd9412b
The function split() is replaced by the function explode(). Starting with PHP 5.3 this is deprecated and with version 6 gone.
...
Replacing it surpresses all the warnings
2012-01-19 20:33:41 +01:00
jim-p
2176219846
Trim filename before use to clear away any unnecessary whitespace. Fixes client export package install (and probably others)
2011-11-10 10:35:34 -05:00
Scott Ullrich
19f576fdf6
Allow carriage returns to separate filenames as well as spaces
2011-11-03 12:43:48 -04:00
Scott Ullrich
44d55df614
Only symlink files once
2011-11-02 14:51:52 -04:00
Scott Ullrich
764bd0ac27
Download correct filenames
2011-11-02 14:50:52 -04:00
Scott Ullrich
05ff388ab7
Allow multiple PBI packages in one tag space separated
2011-10-06 09:24:38 -04:00
Vinicius Coque
169f15744a
Create symlinks for packages config files into the PBI directory
2011-09-30 22:47:09 -03:00
Vinicius Coque
9b1b25ee04
Fix pbi_info path
2011-09-30 22:47:09 -03:00
Vinicius Coque
a641010726
Remove line forgotten last commit
2011-09-30 22:47:09 -03:00
Vinicius Coque
531070641d
remove symlinks for PBI binaries
2011-09-29 00:49:29 -03:00
Vinicius Coque
569aeae791
remove PBI even when packages depends on only one PBI package
2011-09-29 00:49:29 -03:00
Vinicius Coque
43dad53568
Create symlinks for bin and sbin directories on /usr/local/ after installing a PBI
2011-09-29 00:49:29 -03:00
Vinicius Coque
a5566aa8a9
install/remove packages using PBI
2011-09-28 01:57:26 -03:00
Ermal
6f14b34a60
Unlink the failed downloaded file if present. Since it might contain harmful and not expected content
2011-09-01 19:54:03 +00:00
Ermal
5781119249
Move seting up of tabs/menus/service entries after custom php commands. Seems there is something tripping config vars that make these steps not work.
2011-08-03 20:50:11 +00:00
Ermal
f3a274b70a
Correct the ambiguity caused by missing curlies
2011-08-03 20:19:13 +00:00
Ermal
05ca39d93d
Remove this write_config call seems to be causing grief.
2011-08-03 17:29:48 +00:00
Ermal
27018d3cc4
Add yet another intermediate config write during pacakge processing which breaks some installation steps.
2011-08-03 14:30:31 +00:00
Vinicius Coque
b1e4005f9f
removes variables concatenation on gettext strings
2011-07-18 15:33:28 -03:00
jim-p
84bc8eb79a
Fix missing " in gettext line
2011-07-14 15:18:18 -04:00
Chris Buechler
0b07c7636f
fix missing "
2011-07-13 07:26:43 -04:00
Vinicius Coque
4842755397
Merge remote-tracking branch 'mainline/master' into inc
2011-06-28 16:55:51 -03:00
Scott Ullrich
d2a08a06eb
Add small comment about rrd binaries
2011-06-23 11:34:31 -04:00
Scott Ullrich
cb6630e5b5
Loosen grep for rrd
2011-06-23 11:14:06 -04:00
Scott Ullrich
efea79691d
Backup rrdtool binaries during package reinstallation. Currently that is the onlyp package that can be clobbered by others. We will rework this completely in a future version when we adopt PBIs.
2011-06-23 11:11:45 -04:00
Warren Baker
68d1632c2a
New line missing after pkg is extracted.
2011-06-22 16:39:26 +02:00
Vinicius Coque
d8012adbce
Merge remote-tracking branch 'mainline/master' into inc
...
Conflicts:
etc/inc/voucher.inc
usr/local/www/fbegin.inc
2011-06-07 10:47:29 -03:00
Bill Marquette
5b542ae505
Typoes
2011-06-03 17:29:25 -05:00
Vinicius Coque
45d4b71e07
Merge remote-tracking branch 'mainline/master' into inc
2011-05-23 15:57:23 -03:00
Ermal
941baf1e26
When uninstalling packages try to remove even any rc files created by packages.
2011-05-18 22:49:07 +00:00
Ermal
7eea44079f
When uninstalling a service actually stop it first.
2011-05-17 22:23:54 +00:00
Vinicius Coque
54bdff758f
Merge remote-tracking branch 'mainline/master' into inc
...
Conflicts:
etc/inc/auth.inc
etc/inc/config.lib.inc
etc/inc/filter.inc
etc/inc/pfsense-utils.inc
etc/inc/pkg-utils.inc
etc/inc/priv.defs.inc
etc/inc/services.inc
etc/inc/shaper.inc
etc/inc/voucher.inc
etc/inc/vpn.inc
usr/local/www/fbegin.inc
2011-03-25 08:49:04 -03:00
Ermal
96f1a57a16
Remove comment since the service is not started anymore after installation in 2.0
2011-03-14 19:53:58 +00:00
Ermal
c53eb90304
Be smart and remove the needs package sync toggle since the begining otherwise not behaving packages might mess up the whole thing.
2011-03-04 20:50:37 +00:00
jim-p
73d885d7c4
Ensure the pkg staging area exists on nanobsd before trying to use it.
2011-02-26 11:34:19 -05:00
jim-p
22beab884d
Move this code up a bit and also use /root/tmp to fetch packages instead of /tmp so it won't fill up.
2011-02-24 10:46:41 -05:00
jim-p
9011a843e8
If we're on nanobsd, pass -t to pkg_add to specify a different "staging area" path.
2011-02-24 10:37:58 -05:00
jim-p
633ef55166
Set PKG_TMPDIR here too, to help nanobsd pkg installs.
2011-02-23 14:07:21 -05:00
Vinicius Coque
9d3d8d005e
Merge branch 'master' into inc
...
Conflicts:
etc/inc/captiveportal.inc
etc/inc/config.console.inc
etc/inc/config.lib.inc
etc/inc/easyrule.inc
etc/inc/filter.inc
etc/inc/ipsec.inc
etc/inc/pkg-utils.inc
etc/inc/shaper.inc
etc/inc/system.inc
etc/inc/voucher.inc
2011-01-28 17:32:17 -02:00
jim-p
81e54daba5
Use a better method to determine the FTP URL for FreeBSD based on the version being used. The old method worked with 8.1-RELEASE-p2 but failed with just 8.1-RELEASE.
2011-01-21 12:09:07 -05:00
Scott Ullrich
09e11b6947
Comment what this variable does
2011-01-20 11:33:37 -05:00
Scott Ullrich
f0695975e8
Adding $builder_package_install variable. When set to true ignore library fixups and sync_package() directives.
2011-01-20 11:30:01 -05:00
jim-p
b1224cdc1e
Fix references to what was apparently supposed to be $g['booting'] and not $bootup.
2011-01-18 15:38:02 -05:00
jim-p
f9c8e64c63
Add a description to this write_config() so it's a little more obvious what it's doing in the logs.
2011-01-18 15:38:02 -05:00
jim-p
ad0d6389a2
Bail on reinstalling all packages if we can't contact the package repo.
2011-01-12 16:39:17 -05:00