summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install
AgeCommit message (Collapse)AuthorFilesLines
2003-02-18correct #ifdef misplacement.grant1-3/+3
2003-02-11Fix some RCS ids.grant5-5/+8
2003-02-11belatedly sync with src:grant3-11/+11
Allow '%D' to be used when no last_file available. Fixes binary package installation of gnome-dirs. crank PKGTOOLS_VERSION to 20030202.
2003-02-11belatedly sync with src:grant1-2/+6
In pkgdb_remove_pkg, only perform DB functions if HAVE_DBOPEN is defined, else return EXIT_SUCCESS unconditionally (as in other functions dealing with db functionality). fixes build problem on Solaris when no libdb is available.
2003-01-14Synch with latest changes from src (changes by agc, synch ok'd by agc)jschauma13-88/+144
---------------------------------------------------------------------- Add a pkgdb_remove_pkg() function and use it in pkg_delete(1). Bump lib/version.h due to added functionality. Order the getopt(3) options alphabetically. Introduce the notion of "preserving" an installed package. A preserved package may not be deleted by pkg_delete(1) (unless the -f option is given), and the preserved capability will be carried into any binary package. pkg_add(1) will also keep the preserved capability if it was present in the binary package. The "preserve" capability can be given to a package by using the PKG_PRESERVE definition in a package Makefile in pkgsrc. Ride on the recently-bumped lib/version.h for new functionality.
2003-01-12Comment out (non-cat) man pages, currently not installed.wiz1-6/+6
2003-01-11Add } that got lost in last.wiz1-2/+2
2003-01-11Fix cut-and-paste whitespace damage.schmonz1-4/+4
2003-01-11On NetBSD, man pages were getting installed into /usr/man. That's,schmonz7-14/+19
like, so 80's! Pass a value more appropriate for the current decade to --mandir via CONFIGURE_ARGS, and let ./configure set this in the Makefiles. Install catted man pages with the suffix ".0" rather than ".1". Bump PKGTOOLS_VERSION.
2003-01-10Add PKG_PRESERVE to the package Makefile.agc1-1/+2
Keep the old NO_PKG_REGISTER and NO_PACKAGE definitions for now, rather than force everyone to upgrade their pkg_install sources to today's version. At the next bsd.pkg.mk bump of PKGTOOLS_REQD, this can be readdressed.
2003-01-09Define NO_PKGTOOLS_REQD_CHECK, which will mean something in a moment.schmonz2-4/+6
Rather than override LOCALBASE, set PREFIX (after including bsd.pkg.mk). Bump PKGTOOLS_VERSION (many changes since 20021123).
2003-01-07``On second thought, let's not go to Camelot. It is a silly place.''jschauma4-17/+17
(Make pkdb_open return pkgdbp!=NULL as src's does, and revert previous patch. As discussed with agc.)
2003-01-07Unlike pkg_install in src, this version of pkg_install containsjschauma3-13/+13
a pkgdb_open that may return one of _three_ values (0,1,-1), so that we can not simply use if (!pkgdb_open(ReadOnly)) but need to use if (pkgdb_open(ReadOnly) == -1) Mea culpa.
2003-01-07sync with src:grant1-20/+13
In pkgdb_remove(), use the return value from (*db->del), rather than explicitly setting and checking errno. Do some CSE in pkgdb_iter(). Use the db access functions in the proper manner. Also fix some whitespace nits.
2003-01-06Synch with basesrc:jschauma17-133/+135
Use EXIT_FAILURE, rather than hardcoding a value of '1' in err(3) and errx(3). Plug a memory leak by modifying the signature of _pkgdb_getPKGDB_FILE() to take a buffer and its size, and fill in that buffer and return it. Add an enumerated type which is used in pkgdb_open() to specify read-only or read-write mode. Modify the return value of pkgdb_open() to have a more logical boolean value.
2002-12-28Synch with bootstrap-pkgsrc to make this compile on linux.jschauma2-5/+5
(Pointed out by Jeremy C. Reed (reed at reedmedia dot net).)
2002-12-24pkg_install uses Berkeley DB. USE_BUILDLINK2, USE_DB185, and includeschmonz1-2/+5
databases/db/buildlink2.mk. On platforms that lack Berkeley DB, pkg_install will build and install from bootstrap-pkgsrc, but will be missing some important functionality. On such systems, once bootstrapped, install this package to get full functionality. (We'll take care of this automatically in the future.) Platforms that are reported to lack Berkeley DB in the base system: Solaris, some Linuxes. There are probably others. Suggested by "Jeremy C. Reed" <reed@reedmedia.net> on tech-pkg@.
2002-12-22reorder libraries passed to ld(1) so that this works if libdb1 isgrant5-6/+6
present. From Frank Cusack in PR pkg/19494.
2002-12-22fix MD5File() compatibility function to accept NULL second argument.grant1-4/+11
fixes problem with `pkg_admin check'. Fix from Frank Cusack in PR pkg/19492.
2002-12-22Revert previous change.salo1-4/+1
It turned out to be "pkg_install installed over zoularis and wrong PATH" local problem. Sorry for the fuzz.
2002-12-22Update ZOULARIS_VERSION on non-NetBSD systems after installation.salo1-1/+4
This stops current loop: - PKGTOOLS_REQD bump - update pkg_install - ZOULARIS_VERSION is too small, newer pkg_install required - update pkg_install - ZOULARIS_VERSION is too small, newer pkg_install required ...
2002-12-21These packages no longer use BSD-style .mk files, so MANCOMPRESSED_IF_MANZschmonz1-3/+1
and MANINSTALL aren't needed.
2002-12-21USE_BUILDLINK2=no because this is a pkgsrc bootstrap tool.schmonz1-1/+3
2002-12-20There's no need for a custom ${WRKSRC} definition.schmonz1-3/+1
2002-12-20As the sources are now in ${FILESDIR}, there's no distfile to fetch,schmonz13-397/+28
and the "do-extract" target copies the sources into ${WRKSRC}. We automagically determine VERSION by inspecting ${FILESDIR}/lib/version.h. Thanks to autoconf, all the patches and almost all of the cruftulent ${OPSYS}-specific stuff in the Makefile are gone.
2002-12-20Import autoconf'd pkg_install source fromschmonz65-0/+17009
othersrc/bootstrap-pkgsrc/pkg_install into ${FILESDIR}. Using autoconf greatly simplifies maintenance of this package across multiple platforms. Placing the extracted source under ${FILESDIR} will eventually let us use the same source for bootstrapping as well, though we're not ready for this yet.
2002-12-12Clean up wording a bit. Emphasize that PKGTOOLS_REQD should only behubertf1-3/+7
changed if really necessary.
2002-12-07Replace IGNORE with PKG_FAIL_REASON or PKG_SKIP_REASON as appropriate.schmonz1-2/+2
2002-11-23Always use pkgdiff -- this avoids having RCS Ids in patches.wiz2-10/+8
2002-11-23Commit change to patch-ad that mysteriously got lost in last commit.jschauma2-6/+6
(Thanks wiz!)
2002-11-23Upgrade to version 20021123, which fixes PR pkg/18384 by Grant.jschauma5-67/+39
Curiously, several of the patches required some changes -- have these not been tested with the latest version of pkg_install?
2002-11-17Tweaks for OpenBSD (cf. recent bootstrap-pkgsrc commit)cjep1-1/+8
2002-09-23Toss in strlcpy.c and hey presto: Instant linux pkg_install binaries.abs2-4/+4
2002-09-23If defining TAILQ_FIRST and TAILQ_NEXT ensure we also defineabs2-8/+21
TAILQ_HEAD_INITIALIZER - required for linux build.
2002-09-05Revert previous change (which wouldn't have worked in all cases) until moreagc1-7/+1
discussion has taken place.
2002-09-05make pkg_install self-bootstrapping (no need for /usr/sbin/pkg_*).itojun1-1/+7
2002-08-12Darwin needs -DTAR_MISSING_FAST_READ, as noted by "Masahiro =Rhythmschmonz2-6/+7
Drive= Ishiyama" <masahiro@wide.ad.jp> on tech-pkg@.
2002-08-06Make it build on 1.4-1.4.2.wiz4-16/+34
2002-08-05regenwiz1-2/+2
2002-08-05Make compile again on 1.4.3. [Does not compile on 1.4.2 due to missingwiz2-2/+18
strlcpy.]
2002-08-05Reduce warning levels on NetBSD, to make this compile on the netbsd-1-5fredb2-6/+11
branch. WARNS=2 turns on all kinds of stuff that isn't really appropriate, and isn't turned on in current. "-Wwrite-strings", in particular, triggers an error on a bit of harmless code in "file.c". Closes PR pkg/17840.
2002-08-03Until this package is updated one more time from basesrc, provide a patchseb2-5/+14
for Solaris on FTP_CMD value in Makefile.inc. Fixed in revision 1.19 of basesrc/usr.sbin/pkg_install/Makefile.inc.
2002-08-01The 20020723 pkg_install tools use strlcpy(), which Darwin lacks.schmonz3-7/+77
Provide a strlcpy() implementation (from -r1.12 of basesrc/lib/libc/string/strlcpy.c), and use it on Darwin.
2002-08-01Updated pkg_install to 20020723martti6-25/+25
- remove handling of PKG_ADD_BASE. - don't search current directory if PKG_PATH is set. - don't prefer local directories. - constify and cleanup.
2002-07-05Remove $Id$ from patch, and standardize. regen distinfo.wiz2-79/+77
2002-07-05how did I mess up distinfo on patch-ah? Its a new file but.... mysteryabs1-2/+2
2002-07-03LORDER and TSORT will be handled in the correct placeabs1-2/+1
2002-07-03Compile and run under Linux. We're still missing pax and mtree, but using theabs10-73/+242
Darwin bootstrap kit everything else now works.
2002-06-10Updated pkg_install to 20020402 (fixes pkg/16176)martti2-5/+5
Check the return code from the second invocation of installprereq(), to make sure that a failed installation of a rpe-requisite package kills the attempt to add the package. This reverts pkg_add(1) to traditional behaviour.
2002-06-08Darwin provides a /usr/bin/gnutar newer than what's in archivers/gtar-base.schmonz2-5/+5