Commit Graph

97 Commits

Author SHA1 Message Date
hubertf
8ee940971e Bring closer to /usr/share/misc/style with the aid of indent(1). 1999-08-24 00:48:37 +00:00
hubertf
c39c4fc075 Hide test for URLlength()>0 behind a macro (IS_URL()). 1999-08-23 15:17:03 +00:00
hubertf
c94d3e89cb Allow specifying a package name without a version.
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-08-19 19:37:20 +00:00
agc
d5c5c423a3 Consolidate URL handling into a table of valid leading strings for
URLs, and an access function (URLlength) - saves having various
hardcoded strings all over the place. Delete isURL, and use URLlength
in its place. Also use URLlength when parsing a filename for host
and filename part.
1999-08-19 14:12:34 +00:00
agc
72077b961b Clean up minor nits in C code. 1999-08-19 13:29:59 +00:00
tron
343ac4c964 Remove support for absolutes pathnames completely. This can't work with
binary packages like we support them now.
1999-05-30 16:08:23 +00:00
christos
3024caeb08 Don't prepend directories if the plist files are absolute. 1999-05-29 20:44:20 +00:00
hubertf
b6d55241da @srcdir was renamed to @src long ago, reflect this in documentation;
noted in PR 7555 by R. C. Dowdeswell <elric@imrryr.org>
1999-05-15 03:27:50 +00:00
garbled
d1407362ba More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:43:46 +00:00
abs
7960b91475 Ignore files in /var/db/pkg (hint 'pkg_info pkgdb.byfile.db') 1999-03-22 06:04:16 +00:00
hubertf
04417da166 Replace static array of packages given to pkg_perform() with linear
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-22 05:02:39 +00:00
mycroft
d77575d3c8 Clean up SYNOPSIS formatting. 1999-03-07 11:58:22 +00:00
hubertf
dc7b712a59 Prevent printinv of empty "Requires:" section. 1999-03-04 01:45:22 +00:00
hubertf
7964a11f60 Do not only display the packages which require this package
(-> +REQUIRED_BY), but also show which package this package wants
installed (-> @pkgdep).
1999-03-04 00:35:05 +00:00
hubertf
f9e71e406c Add code for pkgdb. 1999-01-19 17:01:56 +00:00
tron
81714a52c8 Patches supplied by Greg A. Woods in PR bin/6626 to make "pkg_info"
recognize the width of the current terminal.
1998-12-31 00:04:07 +00:00
hubertf
9854172140 Remove extra : printed for @cwd,
per PR 6481 by Jim Bernard <jbernard@ox.mines.edu>
1998-11-22 16:22:41 +00:00
agc
ff77ebb33f Add a -B option to pkg_info to print out the "Build Information" for
packages.
1998-10-21 09:54:09 +00:00
agc
9aea3f2ecb Add -b argument to pkg_info to display the +BUILD_VERSION file for the
binary package, should it exist.
1998-10-13 17:08:28 +00:00
agc
959d0a0cde + Remove obsolete and unused string functions.
+ 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.
1998-10-12 12:03:24 +00:00
agc
9daf7cc9b2 More cleanup - various bits of KNF.
Use another table when parsing PLIST files - makes this much more extensible.
1998-10-09 18:27:31 +00:00
agc
3679178e31 Make pkg_info a tad more extensible by using a table to hold the strings
to be printed. Also, don't error out if any unexpected input is read -
just log the error, and keep on going.
Fix a slight bug along the way - if there was an @option in the package,
then pkg_info would die.
1998-10-09 11:05:58 +00:00
agc
82f2922229 Fix a bug in pkg_info -f with @pkgcfl entries. 1998-10-09 09:35:39 +00:00
agc
70c6765099 Eliminate all use of sprintf(3), and replace it with snprintf(3).
Bounds check the @exec and @unexec commands when they are constructed.
1998-10-08 12:57:58 +00:00
agc
e5d1fd5f5a Get rid of some lint.
No functional changes.
1998-10-08 12:15:24 +00:00
hubertf
4cc256a5d1 fix some egcs warnings 1998-10-04 01:48:15 +00:00
hubertf
0151583b9c Teach our tools about dependencies containing wildcards. 1998-10-03 16:24:07 +00:00
hubertf
966a060e98 minor fixup for -e option 1998-09-12 21:59:18 +00:00
hubertf
90c872591e Allow symlinks to directories instead of pure directories in several
places (/usr/pkg, /var/db/pkg, ...). Closes PR 6009 by Jim Bernard
<jimjbernard@ox.mines.edu>.
1998-08-27 23:37:35 +00:00
ross
206d54f97f LP64 fixes for recently added code. (In LP64, ptrdiff_t != int.) 1998-08-27 20:11:31 +00:00
agc
8bdbb59a69 Add csh(1)-style alternates to pkg_info -e.
Add dewey-decimal relational number matching for package version numbers.
1998-08-27 12:54:03 +00:00
hubertf
d54f140300 Remove some trailing (extra) "."s. 1998-08-25 00:54:08 +00:00
hubertf
1285035fe7 Don't exit cleanup() functions if not called from signal handler - this
will show error messages before aborting.
Patch supplied by Jim Bernard <jbernard@ox.mines.edu> in PR 6010, cleanup()
in delete/perform.c prepared to be used as signal handler by me.
1998-08-25 00:12:16 +00:00
tron
6986701b82 Sync manual page and usage() with reality, patches supplied by
Jim Bernard in PR pkg/6005.
1998-08-23 10:16:19 +00:00
hubertf
7a033bd0d4 Extend "pkg_info -e" to allow pkg-globbing, and allow using it. 1998-07-09 17:49:51 +00:00
lukem
fa0c2d578e everything has bugs; either document them or don't bother with a BUGS section 1998-06-08 12:36:55 +00:00
hubertf
c086a7443b No need to unpack file after fileGetURL(), which already did the work for us;
Fixes PR 5456 by "Heiko W.Rupp" <hwr@pilhuhn.de>
1998-05-18 23:47:23 +00:00
perry
34a98169f0 macroize BSD, NetBSD, FreeBSD and misc cleanup 1998-02-06 05:54:12 +00:00
agc
5c0d2a645d Implement default -Ia arg to pkg_info a bit differently. 1997-11-17 12:08:59 +00:00
hubertf
793d82f785 Alter the default behaviour of pkg_info. With no options given, behave as
if -Ia was given, instead of showing usage.
1997-11-13 15:15:48 +00:00
lukem
05941d095a WARNSify, cleanup Makefiles 1997-10-17 14:53:18 +00:00
lukem
e94356b174 fix make -j race condition building lib/ , use ../Makefile.inc for BINDIR 1997-10-17 12:03:36 +00:00
hubertf
d0245e3952 First cut on importing pkg_install as of FreeBSD 971013:
- warn()/err() instead of whinge()/barf()
 - Update RCS Id strings
 - Update manpages (mostly)
1997-10-16 00:31:32 +00:00
hubertf
0df6d19df1 add case PLIST_UNEXEC in show_plist();
makes "pkg_info -v" barf no more when @unexec command are present in PLIST
1997-10-11 20:26:22 +00:00
agc
cafa757ff8 Use malloc and free in extract.c, not alloca.
Minor mods to English in pkg_info.1
Add a mandatory argument to Synopsis section of pkg_create.1
1997-06-09 15:24:32 +00:00
agc
153272e388 Add NetBSD Ids
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-05 12:59:18 +00:00
agc
5d4508e153 Initial import of FreeBSD packaging tool. 1997-06-05 08:54:23 +00:00