summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install/delete/main.c
AgeCommit message (Collapse)Author
2007-07-16Switch to src/dist as primary src location of pkg_install.joerg
Adjust the Makefiles to be reachover Makefiles and remove some unnecessary warning exceptions. audit-packages.conf is stored redundantly in src/etc, not changed yet. pkgsrc.7 is also kept in share/man/man7. Add a comment in lib/nbcompat.h to make the file non-empty.
2005-12-03Only warn about running as non-root when -v is givenhubertf
(or when running in non-unprivilegedmode, but how to detect?)
2005-11-05Add compat #ifdefs from pkgsrc, to make syncing easier between thewiz
two versions.
2004-12-29Introduce a new abstraction in the C code, called MaxPathSize. Allagc
previous occurrences of MAXPATHLEN and FILENAME_MAX have been changed to use MaxPathSize instead. If MAXPATHLEN is not defined, then assume a default value of 1024 (this is primarily for use on the Hurd). The reason for this is that some older platforms define FILENAME_MAX to be 14, although MAXPATHLEN is 1024. On BSD-derived systems, FILENAME_MAX And MAXPATHLEN are both 1024. Bump pkg_install version to 20041226. These modifications have been tested so far on a NetBSD-current bulk build.
2004-11-03Sync usage with man page; sort options.wiz
2004-11-02Merge version 20041101 from pkgsrc.erh
2004-03-29Changes to make these work on Interix: remove nonroot warnings if ontv
Interix, and remove absolute setting of umask in pkg_add.
2004-01-14no need to include errno.h.grant
2003-09-02Merge src/usr.sbin/pkg_install on the pkgviews branch into the HEAD byjlam
running: cd src/usr.sbin/pkg_install cvs update -Pd -A cvs update -Pd -j pkgviews-base -j pkgviews
2003-06-25deleting as non-root works fine, so don't insist on running as roothubertf
2003-06-19Firstly, let's give credit where credit is due - the idea came from uwe.agc
Add the ability to pkg_info(1) and pkg_delete(1) to take a directory name for the name of the package, so that shell-completion can help when finding out information or deleting packages.
2003-06-12Make the "-f" switch to pkg_delete(1) into a counter. Require two "-f"agc
switches to delete a package that has been preserved. Document this change.
2003-06-05Set the program name via setprogname(3).agc
2003-01-10Order the getopt(3) options alphabetically.agc
2003-01-10Add a pkgdb_remove_pkg() function and use it in pkg_delete(1).agc
Bump lib/version.h due to added functionality.
2003-01-05Add an enumerated type which is used in pkgdb_open() to specifyagc
read-only or read-write mode. Modify the return value of pkgdb_open() to have a more logical boolean value.
2003-01-05Use EXIT_FAILURE, rather than hardcoding a value of '1' in err(3) andagc
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.
2002-07-20sweep of errx/warnx, remove unnecessary trailing \ngrant
2002-06-09- make last arg of findmatchingname void*.yamt
- move some duplicated functions into lib/.
2002-03-12Improved error reporting: when a pkg pattern is given, andhubertf
/var/db/pkg does not exist (e.g. on a new system), say do!
2001-03-05Add -V option to all pkgtools, which reports the version of the pkgtools.wiz
Document it. While there, fix the ordering of the option descriptions in some man pages. Set version to 20010305.
2000-06-07Don't use asprintf() which isn't available on NetBSD 1.3.2.hubertf
2000-05-11When expanding wildcards given on the command line, don't includehubertf
files (from /var/db/pkg). Only directories can contain pkgs. Fixed PR 10083 by Dan McMahill <mcmahill@mtl.mit.edu>
1999-09-24Add some sanity checks on what pkgdb_retrieve() returns.hubertf
Noted by D'Arcy J.M. Cain <darcy@druid.druid.net> on current-users.
1999-08-24Bring closer to /usr/share/misc/style with the aid of indent(1).hubertf
1999-08-19Allow specifying a package name without a version.hubertf
If no (installed) package is found with the given name, "-[0-9]*" is appended, and the search retried. Withs with any options to pkg_delete and (esp.) pkg_info: pkg_info kde pkg_info -e emacs pkg_info -qL xlock pkg_delete -v emacs
1999-03-22Replace static array of packages given to pkg_perform() with linearhubertf
list, using chopss' list functions (moved to lib/lpkg.c and lib/lib.h). Properly handle wildcards in arguments to "pkg_info", "pkg_delete" and "pkg_admin check". Some other minor cleanups.
1999-03-08Add -R flag (similar to -r but the other way 'round)hubertf
1999-03-03Add -O option to only delete things from the pkgdb, and do not touchhubertf
anything else of the package or it's files. To be used on "make reinstall" by the buildsystem (quite exclusively).
1999-02-26add -r flag to delete all packages that require the user specified onechopps
1999-01-19Add code for pkgdb.hubertf
1998-10-12+ Remove obsolete and unused string functions.agc
+ Fix a bug introduced when the package name comparison routines were moved - alternate matching now completes and works properly. + Add -R argument to pkg_create, which re-orders any directories in the generated PLIST into reverse alphabetic order. + Add -l argument to pkg_create, which checks that any symbolic links in the package are relative-to-$PREFIX pathnames, rather than full pathnames. + General cleanup elsewhere.
1997-10-17WARNSify, cleanup Makefileslukem
1997-10-16First cut on importing pkg_install as of FreeBSD 971013:hubertf
- warn()/err() instead of whinge()/barf() - Update RCS Id strings - Update manpages (mostly)
1997-06-13Fix for misuse of NULL definition, from Arne Juulagc
(<arnej@math.ntnu.no>). Fixes bin/3745.
1997-06-05Add NetBSD Idsagc
Un-munge pkg_install/lib/Makefile which I'd overwritten on libftpio commit. Make it compile on NetBSD. Install pkg_* programs in /usr/sbin XXX agc - Still to do XXX Cleanup call to mktemp (for a tmp dir) in pkg_install/lib/pen.c Create ftperr.c in the correct directory.
1997-06-05Initial import of FreeBSD packaging tool.agc