jim-p
2b125a17e9
Be a lot more verbose in the logs during package reinstallation.
2013-06-28 14:54:12 -04:00
marcelloc
9b4df982f3
Add dynamic category tabs for better listing all available packages
2013-05-22 13:15:31 -03:00
bcyrill
633d51b75c
Add version check to package install
2013-01-17 19:36:17 +01:00
Phil Davis
75a01a7ca0
Support different package internal name
...
Allow the package external name (e.g. Ipguard-dev or squid3) to be different from the internal name (ipguard or squid). In particular, this allows package start and stop code to know what the associated package service name and/or *.sh start/stop script name is when the external package name is different.
2012-12-14 22:26:19 +05:45
phildd
c59667116d
Change rcfileprefix to a constant
2012-08-07 16:10:11 +05:45
Phil Davis
449d3e96fd
Tidy package cleanup output
...
Add a "done." and newline after "Cleaning up..."
Then when output is going to the serial console the next line will start cleanly and %age figures will not write over the top of "Clean".
2012-08-02 14:51:48 +05:45
Ermal
9fd9b6bf71
Silence tar command to not garble console
2012-08-01 10:45:28 +00:00
jim-p
0b233932f2
Try to keep existing files rather than unlinking/replacing when restoring the package libraries during a package removal. Needs some testing, but for NanoBSD it fixes #1049
2012-07-31 16:28:44 -04:00
Phil Davis
a70cdb7364
Don't conf_mount_rw every time packages are listed
...
Every time System:Packages is selected, the code does a conf_mount_rw, checks for existence of some dirs, then does conf_mount_ro. This makes navigating the package install GUI slow on nanobsd, and it is not needed.
Do is_dir checks first, then conf_mount_rw only if they need to be created. The is_dir function works fine on a read-only filesystem.
2012-07-31 14:47:30 +05:45
jim-p
d94280cd85
make sure this grep parameter is quoted
2012-06-23 19:54:49 -04:00
jim-p
4593069602
Setup library paths to include /usr/pbi/*/lib as a last resort to make sure things can find libraries. We may eventually replace this with a better method as this can lead to conflicts, but for now it will allow packages to find their proper libraries.
2012-06-23 13:25:03 -04:00
jim-p
a448b35f55
Restore this code that was accidentally reverted
2012-06-21 13:15:06 -04:00
Erik Fonnesbeck
9bdb6a1349
Remove null character at end of file
2012-06-19 13:05:48 -06:00
jim-p
f2d5c538a5
Fix trailing whitespace
2012-06-19 09:45:16 -04:00
jim-p
ce35c6068c
Don't fall back to fetching PBIs from FreeBSD, they have none.
2012-06-18 11:43:36 -04:00
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