summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
AgeCommit message (Collapse)Author
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@
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-27Don't just detect errors in pre_add(), but exit. Gets rid of strangeNikolay Sturm
error messages if a dependency cannot be installed. found by naddy@, ok espie@
2004-01-27more forced keywords.Marc Espie
`looks sane' henning@
2004-01-27first series of -forced switches, looks okay to henning@.Marc Espie
2004-01-27bullet lists of one item don't make much sense.Marc Espie
2004-01-27-f framework, manpage fixes.Marc Espie
comments and okay jmc@
2004-01-27die $!Marc Espie
2004-01-27show $! in system related errors.Marc Espie
2004-01-27remove package if RequiredBy file ends up empty too soon.Marc Espie
This allows users to remove packages with bogus dependency registration that happened at one point in the life of the pkg_*. This should please henning.
2004-01-27put $! in die messages.Marc Espie
2004-01-22document/activate @arch. Fix list handling.Marc Espie
2004-01-01post-INSTALL script falling -> record installation as a borked packageMarc Espie
instead of aborting outright with loads of files unregistered...
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-11NOMAN building works, fix NOMAN installation.Marc Espie
Noticed by jmc@
2003-12-10stamp files and directories.Marc Espie
okay sturm@