plist.c

Checkout Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
fix a memory leak

add asset dir owner mode type.

  1. … 2 more files in changeset.
fix comment

fix a bug with new plist parsing due to ignoring the leading (

start work on @(root,wheel,0755) command structure

  1. … 7 more files in changeset.
Initial implementation of pre exec/unexec and post exec/unexec for plists

Historically we've run @exec and @unexec inline. While this is still supported, we're now refactoring to allow steps before

and after package runs.

@preexec and @postexec fire on install and updates

@preunexec and @postunexec fire on deletes. (and updates when removing)

  1. … 3 more files in changeset.
whitespace & formatting

  1. … 1 more file in changeset.
teach libmport about @shell. We want to take this a step farther and "register" the shell next.

  1. … 4 more files in changeset.
add preliminary support for sample files aka @sample in the plist. This currently only installs the sample file, but eventually will do some additional steps.

  1. … 6 more files in changeset.
first pass at supporting permissions aka chmod, chown, chgrp as well as @dir command

  1. … 3 more files in changeset.
compute length once here.

don't use old style declarations

  1. … 7 more files in changeset.
Add new mport_setting_get and mport_setting_set functions to allow users to customize settings. The sqlite3 master database now contains a settings table with name and val fields.

There are two obvious uses for this:

1. defining the country the user is in to pick the nearest mirror list.

2. storing the last time we fetched an index so it doesn't try to do it all the time when it's out of date and we haven't generated one on stargazer yet.

  1. … 24 more files in changeset.
Change the xsystem command string to use up to the kern.argmax memory for @exec plist commands.

  1. … 1 more file in changeset.
Get rid of an extra param we don't need. (one less warning)

don't set NULL when we're not using the assignment anyway.

Use \0 when it's the end of a string for clarity.

  1. … 2 more files in changeset.
Fix a bug in update_primitive where a free'd var was strdup'd.

Assign NULL to several pointers. While it shouldn't matter, if something weird happens it will make it easier to track down.

  1. … 4 more files in changeset.
While this is mostly unnecessary, let's allocate memory in many cases with calloc for now. It will make finding bugs that much easier since we're guaranteed to have the memory zerod.

  1. … 8 more files in changeset.
Import OpenBSD's sysctl sensors framework. This is based on work by Constantine A. Murenin for the 2007 Google summer of code for FreeBSD.

Includes:

sample config file for sensord

rc scripts

documentation fixes and updates

sys/kern/kern_sensors.c

sys/sensors.h

This is compatible with OpenBSD 4.1 and 4.2 in terms of the userland bits.

  1. … 56 more files in changeset.
Upgrade to latest snap from github.

  1. … 23 more files in changeset.
Sync with the current devel version of libmport.

  1. … 20 more files in changeset.
Latest developement version of libmport.

Changes:

It is now possible to create, install, and delete packages from a system

with the library.

The install primative now uses the progress callback system to give the user

feedback during the install.

Support for installing into a chroot envirement is included at the library

level. This is useful if you have a GUI app and you don't want your entire

process stuck in the chroot.

Many function names have been changed in an effort to improve the library's

orginization.

Many bug fixes and subtle changes.

Todo:

Docs:

library overview.

function reference.

mport bundle specification.

The merge primative.

The fetch primative.

The update primative.

Top level functions to do things like "fetch this bundle, its depends, and

then install them all."

Some of the sematics are still up in the air. For example, gtk12 and

gtk2 both have a pkgname of gtk. libmport doesn't allow two package with

the same name to be installed.

Hard links are not implemented in a mport bundle.

Much more testing and bug fixing is needed.

  1. … 16 more files in changeset.
Improvements to the sub.package schema.

Cleanup now always runs.

Fixed error handing in db_create.c

  1. … 5 more files in changeset.
Updated the error handling in mport_parse_plist_file().

Start of libmport. At the moment all it can do is a make a tmpdir with the

package-meta database. Soon we'll pull in libarchive and start to make some

packages.

  1. … 6 more files in changeset.