summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
AgeCommit message (Collapse)Author
2004-08-06fix one of the most bizarre bugs in a while...Marc Espie
found by henning@.
2004-08-06@lib shared library marker.Marc Espie
- runs ldconfig to find out search library path. - if library is in path, mark directory for updating cache. - run ldconfig when needed, e.g., right before executing something that might depend on the library. Doesn't handle destdir case yet.
2004-08-06Document filename semantics, @sample, @extra.Marc Espie
Clean up.
2004-08-06unneeded switch to main package.Marc Espie
2004-08-06avoid pulling in OpenBSD::md5 and File::Copy if we can.Marc Espie
2004-08-06block-scoped require is way simpler than weird AUTOLOAD hack.Marc Espie
2004-08-06unified headers, switch to smaller copyright notice.Marc Espie
2004-08-06Extradir name.Marc Espie
Don't bother deleting it if it's not there.
2004-08-06deinstall DirRm like DirBase.Marc Espie
2004-08-05kill 3 lines of unused codeMarc Espie
2004-08-05refactor classes in PackingElement to share more code.Marc Espie
- all files go through FileBase, all directories go through DirBase. - dirclass() is used to switch classes based on final /, so that @sample, @extra, and @file all take directories as well. - set NoDuplicateNames() more thoroughly. - make sure all no-default-conflict objects are correct. compute_fullname() checks for absolute paths, allowed for @sample and @extra. lastfile only gets set for actual files. special names like INSTALL are only checked for normal files. add a CVSTag class for @comment $OpenBSD$, so that these get sorted first. Changes for make-plist rewrite: clone() method that can create copies of all hash objects, to specialize if needed. add_object() method so that add() is now new() followed by add_object() for most objects (useful for cloned objects). Check that plist has a name in pkg_create, allowing PackingList to write unnamed plists.
2004-08-03forgot mandir. reorder slightly.Marc Espie
2004-08-03Support @sample, tested by fries@.Marc Espie
@mandir and @fontdir keywords recognition.
2004-08-02@man type file for manpages.Marc Espie
2004-08-02Reuse first component of @newdepends, @libdepends to containMarc Espie
a PKG_PATH (easy backward compatibility: is there a slash ?) That's missing info to enable pkg_add to launch package building in the ports tree as an alternate source of binary packages.
2004-07-22fast-scanner should now about dir/ too.Marc Espie
2004-07-22useMarc Espie
directory/ instead of @dir directory okay naddy@
2004-07-20support for gnu-info, with @info keyword.Marc Espie
- modify pkg_create so that it will look for info-[0-9]+ and add them to the packing-list. - deal with installing the info file/de-installing it at pkg_add/pkg_delete time. tested by naddy@
2004-07-18when deleting @link, don't bother checking for md5, since we don't have any.Marc Espie
The check will have been done for the `parent' file anyways. noticed by krw@, seems all heavy-duty porters use -q, so we didn't notice it...
2004-07-14Rework @dirrm: keep them all, and remove them at the end of pkg_delete.Marc Espie
Add @dir, more powerful than @dirrm, so that we can get rid of those pesky @exec mkdir -p. okay naddy@
2004-07-13at pkg_create time, mark hard links with @link, and symlinks with @symlink,Marc Espie
instead of computing size and md5. okay naddy@, sturm@
2004-07-11hunt for the originating packages in case of collision, and sortMarc Espie
the colliding files by package. okay naddy@, and typo fix naddy/pval.
2004-07-07guard against stat not working, which happened to me...Marc Espie
okay naddy@, sturm@
2004-07-06commit from the wrong tree. noticed by krw@Marc Espie
2004-07-05description looking slightly more like a regular manpage and not a pipe-dream.Marc Espie
okay naddy@, with nits from jmc@.
2004-07-05too clever, perl regexps are greedy, ensure we get the correct name.Marc Espie
2004-07-05Still deduce a pkg-name even if there is no .tgz in the pkg-name specifiedMarc Espie
on the command-line. Problem noticed by Brad Webb.
2004-07-05less esoteric error message for missing @name, on a question fromMarc Espie
Brad Webb.
2004-06-21support for old stuff in pkg_info/pkg_delete, e.g., @srcMarc Espie
prompted by miod@, okay miod@ millert@.
2004-06-21Implement pkg_add -I for real; ok espie@Miod Vallat
2004-05-19Add word boundary markers, so that the fast scanners get exactly what theyMarc Espie
are supposed to.
2004-04-28Use the string version of system. Works with PAGER=less -s.Marc Espie
ho@
2004-04-28slightly more intricate selectors code.Marc Espie
Approved by at least sturm@ and fries@
2004-04-28Blech, SFS yields weird mount/df shit.Marc Espie
Non absolute mount points ? give me a break. Fix for ugly nonsense. Problem reported by David Mazieres.
2004-03-30wrap each install operation into eval {} so that a die there will leaveMarc Espie
us a chance to register what's already happened.
2004-03-30do not allow non-sensible stuff in packing-lists.Marc Espie
2004-03-18When using an install prefix with -B to install packages, and the packingThorsten Lockert
list uses @owner, @group and/or @mode, setting these did not use the install prefix. ok deraadt@
2004-03-11repair pkg_add -, by making sure `-' is a special object.Marc Espie
2004-03-10Help it cope with symlinks. Mostly from rd@thrush.com.Marc Espie
okay pvalchev@
2004-03-07A few useful features:Marc Espie
- pkg_add -A arch, to make believe we are extracting on a given arch (matches pkg_create). - pkg_add -P cdrom/-P ftp, to enforce extracting only cdrom'able packages or ftp'able packages. Helps a lot for checking cdrom lists. - dependency look-up will look through local directory listings to solve dependencies, so that non-default dependencies will work more seemlessly. (doing the same thing for distant repository will happen after 3.5, but this requires more apparatus: caching package lists, and killing/restoring existing connections, plus more error handling). okay pval
2004-02-25Add -B support to pkg_delete.Marc Espie
new method in Logger, annotate, so that the pkg_delete log script can set PKG_DESTDIR= conditionally, and use ${PKG_DESTDIR} later on in filenames.
2004-02-23document that this even more off-limits than the rest of theMarc Espie
(so far and intentionally) undocumented interface.
2004-02-21distinguish between unreadable directories and non packages.Marc Espie
problem found by John L. Scarfone, who runs a paranoid root.
2004-02-20PKG_DESTDIR / -B support in pkg_add.Marc Espie
2004-02-20move wildcard rewriting down. Allows flavors in package-specs toMarc Espie
properly contain a dot and other fun characters. Reported by Jason Ish. Survives a full ports build.
2004-02-15remove extra . I left when putting $self->{destdir} inside...Marc Espie
2004-01-31pkg_create -L support, which I forgot to commit.Marc Espie
-B pkg-destdir, synonymous to -S, and PKG_DESTDIR support.
2004-01-29destdir supportMarc Espie
okay pvalchev.
2004-01-28some code refactoring.Marc Espie
minor optimization: don't try to open pipe to local file that doesn't exist anyways. track connections per-host for ftp/http. Don't allow more than maxcount() connections per-host (for now, one connection). tests by sturm@, fries@
2004-01-28Add -L to record/enforce localbase.Marc Espie
Okay sturm@