summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/pkg_create
AgeCommit message (Collapse)Author
2009-04-14initial implementation of package signatures, based on x509 certificates andMarc Espie
smime detached signatures.
2008-10-24tweak compute_digest so that it `defaults' if invoked without a 2nd argument.Marc Espie
switch the default digest to sha256. It's been there for a few weeks, all package tools cope with both formats, now is the time for the switch.
2008-10-06turn the checksums stored in packing elements into real objects, so thatMarc Espie
pkg_add becomes mostly independent of the type of checksum stored. separate md5 into an abstract OpenBSD::digest class and an md5 subclass with specific methods to compute checksums and serialize results, and create an sha class that does the same thing with sha256 (with a base64 serializer)
2008-06-11defer to the packing element for computing md5Marc Espie
2008-04-07put Subst stuff into its own library file, to reuse elsewhere.Marc Espie
2007-06-16use OpenBSD::Paths contentsMarc Espie
2007-06-14explicitly mark -S as deprecated, I'd love to use for something else...Marc Espie
2007-06-04more efficient regexps: anchor stuff at both ends, be more specific inMarc Espie
what matches. Get rid of $`, $', $&, which encur a performance penalty. (not yet done on PackageName and PkgSpec).
2007-06-04avoid parsing libraries by hand.Marc Espie
Store shared libraries in a `better' format, which will also us to report issues more nicely.
2007-06-04some minor systematic changes.Marc Espie
- mark all regexps I can with /o if they can be compiled once. - turn $o->method() into $o->method - remove unneeded prototypes - reduce split /re/ into split "string" where possible.
2007-05-31oops, move realname up so that ::Sample sees it too.Marc Espie
remove last traces of MODULEs.
2007-05-31kill REQ script directly. I'm pretty sure it doesn't quite work anyways.Marc Espie
Deprecate INSTALL and DEINSTALL, write out warnings in pkg_create. Clean up some more old cruft
2007-05-30use set_pkgnameMarc Espie
2007-05-29slightly more descriptive names.Marc Espie
2007-05-29in checksum creation, allow $base to be undef.Marc Espie
This allows us to always compute checksums based on $self->fullname, so as a result, we no longer need to pass as many parameters around. Small negative side-effect: the method names no longer reflect reality well, they will need renaming at some point...
2007-05-29use the infodir property of packing-lists and specialfiles instead ofMarc Espie
passing extra parameters around.
2007-05-28oops, can't copy CONTENTS twiceMarc Espie
2007-05-28always create packing-lists with a `contents' entry.Marc Espie
2007-05-25move the mode checker code from pkg_create into ArcCheck, so that pkg_addMarc Espie
can reuse it.
2007-05-22remove duplicate -M entry from set_usage(); ok espieJason McIntyre
2007-05-22remove -h from set_usage();Jason McIntyre
2007-05-22finish removing unused -h optionMarc Espie
2007-05-15make sure to give all special files to root/wheel, and strip them of writeMarc Espie
and suid bits.
2007-05-12strip extra quotes from all defines.Marc Espie
2007-05-07zap old unused codeMarc Espie
2007-05-06let pkg_create generate the correct description if the HOMEPAGE is empty.Marc Espie
2007-05-05set up new way to define COMMENTS, to be able to remove some stuff fromMarc Espie
the ports' infrastructure.
2007-05-05ditch extra param to copy_subst, now that it's constant.Marc Espie
2007-05-05use copy_subst_fhMarc Espie
2007-05-05reorg tests to simplify logicMarc Espie
2007-05-05split copy_subst to allow for existing filehandle.Marc Espie
2007-05-04move some checks after -q/-Q so that plists can still be printed.Marc Espie
problem noticed by Bernd.
2007-05-03Simplify code to handle fragments by using real objects.Marc Espie
2007-05-03fix creation of packing-list for package regenerationMarc Espie
2007-05-03move the fragments reading code to its own routine.Marc Espie
2007-05-02remove extraneous () in method call: $o->method() becomes $o->methodMarc Espie
2007-05-01kill old constructs that have been deprecated since 2004.Marc Espie
2007-04-30don't bother trying to substitute if there's no $ in the string.Marc Espie
According to perl's profiler, this actually accounts for *most* of the user time of pkg_create...
2007-04-30simplify regen mode logic: if we don't add anything to the packing-list,Marc Espie
we never have to check we added nothing. so, process -P/-W in two steps: stash we've seen them first, and add them later. As a benefit, sort/unify them once, so that we can stash them correctly directly.
2007-04-30make creation of special files more obvious.Marc Espie
2007-04-30All options that add special files follow the same pattern, so reuse theMarc Espie
same code.
2007-04-30Fix prepare_for_archival().Bernd Ahlers
2007-04-30special mode `pretend_to_archive' for -n, which does most things exceptMarc Espie
writing the package itself (includes mode verifications).
2007-04-30archive special files exactly like we archive normal files. This providesMarc Espie
for more checks in very fishy cases (like if we end up with /var/db belonging to the wrong person).
2007-04-30split preparation and check into prepare_item.Marc Espie
2007-04-30unsimplify checksum creation, fix @link markers.Marc Espie
found out by bernd@
2007-04-30allow pkg_create to regen on a dirname, supply +CONTENTS automaticallyMarc Espie
2007-04-30reorg main code to separate regeneration case better.Marc Espie
2007-04-30add items based on options, not on file existence.Marc Espie
2007-04-30fold checksumming code for special files. As a bonus, we now check md5Marc Espie
on package regeneration