summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD
AgeCommit message (Collapse)Author
2004-08-11allow for a fonts.dir.dist, for cases where mkfontdir doesn't know what to do.Marc Espie
2004-08-10cosmetic tweak: ensure all dirs always get exactly one / at the end.Marc Espie
cosmetic tweak: do not show a space after a keyword without args. dir support reworked: keep clones() of dir objects, and call cleanup/reload routines at end. @mandir/fontdir support: both mandir and fontdir remove extra files on delete. @fontdir creates alias files, runs mkfontdir, and uses fc-cache.
2004-08-07use chroot DESTDIR ldconfig in DESTDIR case.Marc Espie
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-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-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-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-07guard against stat not working, which happened to me...Marc Espie
okay naddy@, sturm@
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-05-19Add word boundary markers, so that the fast scanners get exactly what theyMarc Espie
are supposed to.
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-30do not allow non-sensible stuff in packing-lists.Marc Espie
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-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-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@
2004-01-27avoid File::IO, one less module to load.Marc Espie
catch more error conditions and die in a systematic way. okay sturm@
2004-01-27die $!Marc Espie
2004-01-27put $! in die messages.Marc Espie
2004-01-22document/activate @arch. Fix list handling.Marc Espie
2003-12-26Allow storing of `arch' annotations inside packages.Marc Espie
Factor common method code in write, keep variations in stringize.
2003-12-26pkg_add reports size taken on each fs.Marc Espie
Reorg and clean Vstat a bit. okay naddy@
2003-12-24Handle mount entries without options.Marc Espie
Found and tested by our ubiquitous afs user, Bob Beck.
2003-12-21Add virtual file system, so that pkg_add and pkg_delete can check forMarc Espie
read-only status, or size concerns, before even beginning to add/remove files. Allows pkg_add -n and pkg_delete -n to be more thorough as well. Some testing by Todd Millert, comments by Greg Steuck and Sam Smith.
2003-12-19Clean up PackageLocator so it looks somewhat more object-oriented.Marc Espie
Most importantly, put all the state information into the created object, so that the actual archive can be closed, later reopened, and scanned until the correct file is found. This will be used to allow retrieving packages through ftp without keeping loads of connections opened because of dependency resolving. Approved by fries and naddy.
2003-12-10stamp files and directories.Marc Espie
okay sturm@
2003-12-09better management of list of installed packages. Allow pkg_add/delete -nMarc Espie
to proceed correctly in case of dependencies.
2003-11-16Record no checksum in generated packing-list.Marc Espie
Thx to sturm@ for finding out something was wrong.
2003-11-06... pkg_add obviously much happier with borked_package...Marc Espie
2003-11-06Handle pkg_add -Marc Espie
let pkg_add postpone conflict handling until it has the real name of the package if necessary, and let PackageLocator deal correctly with a '-' filename.
2003-11-06Allow the use of full paths to refer to installed packages, so thatMarc Espie
pkg_delete /var/db/pkg/zsh-*/ works.