Project

General

Profile

Download (41 KB) Statistics
| Branch: | Tag: | Revision:

# Date Author Comment
941baf1e 05/18/2011 10:49 PM Ermal LUÇI

When uninstalling packages try to remove even any rc files created by packages.

7eea4407 05/17/2011 10:23 PM Ermal LUÇI

When uninstalling a service actually stop it first.

96f1a57a 03/14/2011 07:53 PM Ermal LUÇI

Remove comment since the service is not started anymore after installation in 2.0

c53eb903 03/04/2011 08:50 PM Ermal LUÇI

Be smart and remove the needs package sync toggle since the begining otherwise not behaving packages might mess up the whole thing.

73d885d7 02/26/2011 04:34 PM Jim Pingle

Ensure the pkg staging area exists on nanobsd before trying to use it.

22beab88 02/24/2011 03:46 PM Jim Pingle

Move this code up a bit and also use /root/tmp to fetch packages instead of /tmp so it won't fill up.

9011a843 02/24/2011 03:37 PM Jim Pingle

If we're on nanobsd, pass -t to pkg_add to specify a different "staging area" path.

633ef551 02/23/2011 07:07 PM Jim Pingle

Set PKG_TMPDIR here too, to help nanobsd pkg installs.

81e54dab 01/21/2011 05:09 PM Jim Pingle

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.

09e11b69 01/20/2011 04:33 PM Scott Ullrich

Comment what this variable does

f0695975 01/20/2011 04:30 PM Scott Ullrich

Adding $builder_package_install variable. When set to true ignore library fixups and sync_package() directives.

b1224cdc 01/18/2011 08:38 PM Jim Pingle

Fix references to what was apparently supposed to be $g['booting'] and not $bootup.

f9c8e64c 01/18/2011 08:38 PM Jim Pingle

Add a description to this write_config() so it's a little more obvious what it's doing in the logs.

ad0d6389 01/12/2011 09:39 PM Jim Pingle

Bail on reinstalling all packages if we can't contact the package repo.

b7ff3186 01/10/2011 09:06 PM Ermal LUÇI

Ticket #875. While ldconfig should be called by pkg code itself do it explicitly to have the cache file rebuilt with correct list.

b2b15543 01/07/2011 03:53 PM Scott Ullrich

Need to use Unlink in tar

06e57df8 01/06/2011 11:56 PM Scott Ullrich

Shorten english

86af45ec 01/06/2011 10:48 PM Scott Ullrich

Ensure $pkg is defined. Send pkg_delete errors to /tmp/pkg-delete_errors.txt

64974db7 01/06/2011 10:37 PM Scott Ullrich

Fix package dependency check code now that we no longer nuke /var/db/pkg/ before operating on packages

28ed552d 01/06/2011 09:53 PM Scott Ullrich

Strip off the space between @depend and the package name. Otherwise it will return a space in front of the pkgname

550fea7a 01/06/2011 09:39 PM Scott Ullrich

Do not unlink file, it's handled by behind the scenes pkg-utils.inc code

608b154d 01/06/2011 08:58 PM Scott Ullrich

Shorten repo download message

ca99d6a6 01/06/2011 08:55 PM Scott Ullrich

Do not show already installed messages which fill up the textarea too many times

9d308f58 01/05/2011 09:50 PM Scott Ullrich

Do not nuke /var/db/pkg now that 2.0 has better handling

9b193619 01/05/2011 09:44 PM Scott Ullrich

Reinstall packages on bootup during console. Ticket #1156

2388a97d 12/29/2010 08:48 PM Scott Ullrich

Nuke newline

6622e126 12/27/2010 06:40 PM Scott Ullrich

Unlink needs_package_sync after one pkg has installed OK which means that our internet connection is up.

7dbbaecd 12/25/2010 06:51 PM Scott Ullrich

More misc pkg install txt fixups

f169e274 12/25/2010 06:50 PM Scott Ullrich

More misc pkg install txt fixups

73e52b99 12/25/2010 06:45 PM Scott Ullrich

Add newline after restoring libs

4c6a49d7 12/25/2010 06:40 PM Scott Ullrich

backup and restore libs in correct location

2b216e51 12/25/2010 06:38 PM Scott Ullrich

misc text formatting fixes (tabs)

b2dd7ab4 12/25/2010 06:04 PM Scott Ullrich

Only backup libraries at the beginning of the deinstall cycle.

7102210a 12/25/2010 06:03 PM Scott Ullrich

Add tab

d96623ef 12/25/2010 05:52 PM Scott Ullrich

Add newline after installation aborted

76a6d6ae 12/25/2010 05:51 PM Scott Ullrich

s/Trying to download/Downloading

e9c7a334 12/25/2010 05:20 PM Scott Ullrich

Backup system libraries and restore during pkg deinstall.

673e8095 12/22/2010 03:39 PM Scott Ullrich

nuke trailing carriage returns

3aad9551 12/17/2010 03:32 PM Jim Pingle

When we supply a version number, it should be under All/ and not Latest/ (which has names but no version numbers)

979c5783 12/16/2010 06:56 PM Jim Pingle

Make $rel lowercase, since that's how it is on FreeBSD's package servers.

c9b08a50 12/12/2010 11:49 PM Jim Pingle

Show the full URL used to download package files, to aid in tracking down packages that do not install correctly.

a00fc1e2 12/07/2010 08:30 PM Ermal LUÇI

Do not atempt to start a service during installation.

b098343a 12/02/2010 07:08 PM Ermal LUÇI

Correct binaries needed.

8e428017 12/02/2010 06:09 PM Ermal LUÇI

Do not try to be smart on the package name and also use a better resulting condition testing.

75e22cbc 12/01/2010 04:25 AM Scott Ullrich

Do not output blank pkg names

78b94214 11/30/2010 05:27 PM Ermal LUÇI

Mount rw so we can have the packages processing correctly.

fedab998 11/24/2010 06:08 PM Scott Ullrich

Nuke trailing c/r

bafe2769 11/23/2010 04:58 PM Ermal LUÇI

Remove this since it does not make anymore sense after code arrangements.

a0b205f0 11/23/2010 04:57 PM Ermal LUÇI

Do not output done. because it does not related overall to the output messages.

b3a4ff7c 11/21/2010 10:40 PM Scott Ullrich

Add newlines

c049daef 11/20/2010 05:19 AM Jim Pingle

Disable this test, it was causing some package file downloads to be skipped for me, and nothing else seems to set/use this variable anywhere.

ad88ff3f 11/19/2010 03:34 PM Ermal LUÇI

Cleanup some code and properly handle failure of pkg_fetch_recursive.

d08b0064 11/19/2010 03:21 PM Ermal LUÇI

Clarify message.

0cdf4e87 11/19/2010 03:17 PM Ermal LUÇI

Use correct extension of tgz rather than tgz for automatically discovered dependencies.

c132bdb0 11/19/2010 12:12 AM Ermal LUÇI

Honor the config parsed var if set.

01a6e665 11/19/2010 12:02 AM Ermal LUÇI

globals.inc is better first.

d9426abc 11/19/2010 12:00 AM Ermal LUÇI

More safety belts.

d465a277 11/18/2010 11:44 PM Ermal LUÇI

Fix fetching of package list.

21bc451b 11/18/2010 06:56 PM Ermal LUÇI

Add myself to the copyright. Have modified enough the file.

2addd5b2 11/18/2010 12:57 PM Ermal LUÇI

Fix problem with syslog adding/removing for pacakges. Fix sync pacakges to call the right functions. Optimizations and code cleanup along the way.

fa15f4ae 11/17/2010 10:45 PM Ermal LUÇI

Clear up some code.

eab543ed 11/17/2010 08:17 PM Ermal LUÇI

Ticket #1017. Move the fwrite and fd_log initializing to a function. Name the function pkg_debug to properly show what is its purpose and also make it write something only when $debug is set.

4c3d9312 11/17/2010 07:47 PM Ermal LUÇI

Ticket #1017. Put a @ before each fwrite to silence errors. Also setup the log file in the beginning rather than on each individual function.

cfcebf07 11/17/2010 10:32 AM Renato Botelho

Fix typo

aeaa7358 11/16/2010 10:59 PM Ermal LUÇI

Make the pkg_fetch_recursive code stronger and try also to fetch from freebsd repo when fails to fetch from pfSense one.

1b28121f 11/16/2010 10:11 PM Ermal LUÇI

Correctly form the url from where to fetch packages if a base is not specified. This unbreaks packages on amd64! Also do no remove a package which is required by other installations.

fe81116d 11/16/2010 07:56 PM Ermal LUÇI

Correct variable name.

fcf92dae 11/16/2010 07:40 PM Ermal LUÇI
  • Use pkg_info -E pkgname* for testing if a package is installed.
  • Do not call eval if we cannot include an .inc file since that will make the whole script fail.
  • Keep the log from the start to the end without overwriting. This makes debugging and problem reporting easy and explains what is done during installation....
9734b054 11/10/2010 05:00 PM Scott Ullrich

Remove trailing carriage return

08452bff 11/08/2010 06:55 AM Warren Baker

Cosmetic issue, add space before 'done', otherwise package XML name and done are combined.

c62d973d 11/05/2010 06:33 PM Warren Baker

Spelling fix.

2c794549 10/14/2010 07:32 PM Ermal LUÇI

Ticket #950. Correctly handle failures while installing packages which might leave stale information behind. Also do not try to startup services twice. Rename uninstall_package_from_name to uninstall_package because the operation on packages is only done through package names.

b2a66231 09/03/2010 10:54 PM Ermal LUÇI

Ticket #873. Call write_config() before including file to avoid loosing already done modifications. While here do some code cleanup and formating to make it more readble.

83fdcf45 08/06/2010 09:46 PM Ermal LUÇI

Remove useless code which might even abort package deletion process.

466f7000 08/06/2010 09:34 PM Ermal LUÇI

Use global to not cause breakage if path changes.

d282095a 08/06/2010 07:08 PM Renato Botelho

Avoid duplicate service tags when reinstalling packages

d6d09c70 07/23/2010 05:53 PM Renato Botelho

Pass name instead of config_file for start_service

3a9eb3c9 06/18/2010 09:05 PM Ermal LUÇI

If packages are reinstalled during bootup than there is no need to reinstall them again during GUI login.

af8fca8f 06/08/2010 08:48 PM Jim Pingle

Don't delete these additional files until the end of the package uninstall process. Otherwise files needed in some steps will be missing. Should fix some outstanding package issues (especially uninstall/reinstall issues). At the very least this fixes uninstall/reinstall of OpenVPN Client Export.

d7f742c2 05/21/2010 04:05 AM Scott Ullrich

Do not process items in which we cannot resolve the config file

df5da531 04/27/2010 11:10 AM Ermal LUÇI

Missed curly.

b7729cee 04/27/2010 11:08 AM Ermal LUÇI

Do not error out when trying to delete an unexisting package. Just display an error message.

40a721c0 03/17/2010 03:46 PM Scott Ullrich

get_pkg_depends must return the whole paths of dependency files in order
to enable sync_package to check for files which are not installed in the
standard pkg location (i.e. outside of /usr/local/pkg).

Ticket #431
Submitted-by: Lorenz Schori

3339fac0 03/08/2010 06:34 PM Ermal Luçi

Place conf_mount_ro() calls where supposed too.

6ee34f4d 03/08/2010 10:27 AM Ermal Luçi

Silence errors.

017d381c 03/06/2010 11:10 PM Scott Ullrich

Ensure prefix directory exists before downloading and installing additional file

43ad432c 03/03/2010 11:18 PM Ermal Luçi

Ticket #396. Try to fix issues with missing include files or filesystem being in ro mode during operations.

f4bca05a 02/04/2010 12:08 AM Ermal Luçi

More cleanup and code flow simplification.

1570d27a 02/03/2010 11:55 PM Ermal Luçi

When removing a package delete its underlying FreeBSD pacakges.
Correct checks for avioding as much as possible errors.
Simplify logic in some cases.
Remove package include files when uninstalling packages.

NOTE: Some work is needed to have more error reporting. Espescially when failing to retrieve files or add them locally.

8604523b 02/02/2010 10:17 PM Ermal Luçi

Ticket #309. Fix it for packages.

90a89478 02/02/2010 06:54 PM Ermal Luçi

Reactivate the hack for packages to show as installed. Untill php decides to behave.

ab94ba00 02/01/2010 06:23 PM Ermal Luçi

Ticket #309. Correctly fix the problems of intermediate config lost because of inclusion of config.inc. This might have speed impacts to be measured.

ed6b04d8 02/01/2010 06:06 PM Ermal Luçi

Resolves #309. Seems that including config.inc has bad habits on packages. Workaround this for now until the package config include is fixed.

232b01db 01/04/2010 12:06 AM Jim Pingle

Fix some package uninstall bits on nano

6955830f 12/28/2009 09:42 AM Ermal Luçi

Replace some occurrence of /tmp with the propper global variable in attempt to minimize the search for what changes /tmp permissions.

4143a437 12/24/2009 05:57 PM Scott Ullrich

Nuke pkg_build_filter_rules(). It is not called anywhere in the code and adds complexity that I do not wish to see in the codebase

e4c3d767 12/10/2009 11:13 PM Scott Ullrich

Transmit freebsd machine (uname -m) so that we can be begin offering multi platform packages

cd12593b 12/03/2009 04:21 AM Scott Ullrich

Check to see if syslogd is running before killing

093bcebc 11/07/2009 03:33 AM Scott Ullrich

Move newer xmlreader code to xmlreader.inc. Restore old xmlparse code to xmlparse.inc. Default to the older xmlparse.inc but add a flag check if /cf/conf/use_xmlreader is present the newer code will be included instead until the remaining bugs can be resolved with it (see rcs for many).

ffba4976 10/06/2009 10:01 PM Jim Pingle

Add a new (unlinked) page which allows entering a custom pkg repo URL