hubertf
ba73896f0c
Fix some bugs discovered tonight when installing on a fresh 1.3.2
...
machine:
- create /var/db/pkg if not there
- fix wrong handling of findmatchingname() return code, resulting
in missing /var/db/pkg dir being interpreted as match found
- only move +BUILD_VERSION and +BUILD_INFO files if they're
actually present (old pkgs don't have them!)
1998-11-07 23:16:50 +00:00
christos
5b514fad6f
include fcntl.h to get O_RDONLY; our headers include too much stuff.
1998-11-02 22:40:11 +00:00
agc
48b4d2e2ba
Instead of ignoring any SIGINTs when cleaning up, allow them. The
...
user might actually know better, just this once.
1998-10-27 19:27:17 +00:00
agc
266128247c
Always tell the user about the temporary directory we're about to delete.
1998-10-26 18:01:22 +00:00
agc
3fdf3a6fae
Modify pkg_create to recognise Build Information and Version files, when
...
creating packages, and modify pkg_add to copy the files when a binary
package is added. This preserves the fine-grained version information in
a binary package, and also the options with which the binary package was
built.
1998-10-26 17:39:20 +00:00
hubertf
ee768386ba
s/freebsd/netbsd/, pointed out by Heiko Rupp
1998-10-26 11:35:00 +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
e758d0c608
Make the new symlink relative to the name of the symlink, rather than
...
the target.
1998-10-19 20:15:24 +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
67f5c7183e
Get rid of YES and NO definitions. NO was defined but never used.
...
YES was defined, and one variable was set to YES. However, it was
never checked, just non-zero comparison was used.
1998-10-13 10:05:38 +00:00
agc
5e8df8cb74
Fixes for Alpha, from Hideo MASUDA (h-masuda@jm3spa.felix.or.jp), in
...
PR bin/6284, slightly munged about for platforms which aren't LP64.
Also, don't use hardcoded strings (or their lengths) when we've
already defined them in a common header file.
1998-10-13 10:00:09 +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
7bdbc205e5
Use the same table for input and output of PLISTs.
1998-10-09 19:51:21 +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
16ae233008
Some minor KNF.
...
Lots more to be done.
1998-10-09 11:16:57 +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
65e1849228
Garbage collect unused variable..
...
Update documentation accordingly.
1998-10-09 09:22:15 +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
b6bd49da4e
One more piece of lint.
1998-10-08 12:22:54 +00:00
agc
e5d1fd5f5a
Get rid of some lint.
...
No functional changes.
1998-10-08 12:15:24 +00:00
ross
a258e2c9b1
Squelch minor LP64-related compiler warning/error (-Werror)
1998-10-05 09:02:28 +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
4c0a9c52a7
In an ideal world, make_playpen() and leave_playpen() would maintain
...
a stack of directories, we'll do with a save/restore_dirs cludge for
now. => Fixes the bug I mentioned yesterday that shows when one pkg
installs another (depending) pkg via FTP.
Fixed another bug with extract-in-place when the destination dir is
already there.
1998-10-01 21:16:26 +00:00
hubertf
966a060e98
minor fixup for -e option
1998-09-12 21:59:18 +00:00
tron
63ef9847d5
Fix broken package dependence handling mentioned by Brook Milligan on
...
"tech-pkg@netbsd.org".
1998-09-08 21:54:01 +00:00
hubertf
e6c468e777
Make really sure to only nuke LogDir when it's been set. Fixes problem
...
described in PR 5308, code was contributed by Eivind Eklund <eivind@yes.no>.
1998-08-28 00:35:51 +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
b1934d6034
{} fixes from Erik Bertelsen <erik@erik-be.uni-c.dk> (PR 6047) to shut up egcs.
1998-08-27 20:31:00 +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
2fb1caee16
Pass prefix for depending pkgs.
1998-08-25 01:16: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
89f14c0f4e
Prevent args of pkg_info -e from expansion (in case wildcard matching is requested)
1998-07-12 14:05:51 +00:00
hubertf
7a033bd0d4
Extend "pkg_info -e" to allow pkg-globbing, and allow using it.
1998-07-09 17:49:51 +00:00
hubertf
ad11dcd500
Replace FreeBSD's libftpio with our calls to our great ftp client.
1998-07-09 16:47:26 +00:00
hubertf
cab003200b
Abort on "rm -rf /"...
1998-07-08 07:17:30 +00:00
mrg
32f519716b
- use an array MAXHOSTNAMELEN+1 size to hold hostnames
...
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:56:06 +00:00
tron
1ea9bb436f
When adding a binary package from a locale file "pkg_add" fails now if
...
a dependence can't be resolved unless "-f" is used, fixes PR pkg/5625
by Jeremy Cooper.
1998-07-05 21:15:55 +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
frueauf
dd2f801595
Add support for CONFLICTS entry, implement -C switch for pkg_create
...
and document that new feature.
1998-06-05 11:22:19 +00:00
jeremy
52a7423256
Documented how the require and install scripts interact with the installation
...
process more clearly.
1998-05-28 02:30:39 +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
hubertf
55444efe60
return new dir; fixes PR 5456 by "Heiko W.Rupp" <hwr@pilhuhn.de>
1998-05-18 23:43:57 +00:00
agc
47f6bce353
Add a check (from FreeBSD) so that the removal of the temporary dir
...
takes place only once, if pkg_add is interrupted, and exit after the
cleanup is done.
1998-05-06 15:05:29 +00:00
agc
62aaf11f0b
In isdir() function, use lstat(2) instead of stat(2), so that we do
...
not traverse through any symbolic link. This fix means that packages
which make symbolic links to directories can now be de-installed.
1998-04-23 10:40:04 +00:00
frueauf
6326329eba
Don't use "+CONTENTS" direct, use CONTENTS_FNAME instead.
1998-04-20 08:27:45 +00:00
hubertf
4ca037fe41
Fix handling of doubleclicking on installed packages.
...
With many thanks to Alistair Crooks for his TCL knowledge.
1998-03-30 21:37:47 +00:00
agc
efa0b41486
Clean up some lint warnings about return value of errx.
1998-03-27 12:17:58 +00:00
agc
ac649ec457
When reading the PLIST file, don't abort everything if you don't
...
recognise an '@' command - just flag the line as being unrecognised,
and move to the next line.
1998-03-27 12:16:26 +00:00
perry
34a98169f0
macroize BSD, NetBSD, FreeBSD and misc cleanup
1998-02-06 05:54:12 +00:00
christos
6efeed277f
Don't hardcode 1900
1998-02-04 15:29:19 +00:00
hubertf
fdbf4d9eec
Quote filenames handed off to tar, chmod, chown. (Fixes possible security
...
problem discovered while looking at pkgsrc/audio/tracker).
1998-01-19 00:24:03 +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
hubertf
fa829ce599
Document $PKG_PATH and $PKG_DBDIR
1997-11-10 00:29:21 +00:00
lukem
0a94f4f077
use CPPFLAGS instead of CFLAGS
1997-10-25 06:57:53 +00:00
mrg
ca2afdd453
fix compile warnings on the alpha.
1997-10-19 09:39:35 +00:00
lukem
031fee8254
use strchr/strrchr/memset/memmove instead of index/rindex/bzero/bcopy
1997-10-18 11:05:34 +00:00
lukem
149f1867d1
rcsid fascism
1997-10-18 04:36:50 +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
ca6157bdca
- document $PKG_PATH
...
- use -v on pkg_add for dependent packages (forgot on last commit)
- most important: do string-magic on the right variable when trying
to find dependent packages on the local disk (i.e. package given as
filename, not URL)
1997-10-16 00:55:01 +00:00
hubertf
508ee08a34
Second part of intrgration of FreeBSD pkg_install as of 971013.
...
This patch adds @option preserve and handling for -s (SrcDir)
option.
1997-10-16 00:50:20 +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
e10ebcabe2
pass the "-v"-switch on pkg_add to any pkg_add-calls
...
made for dependent packages
1997-10-11 22:25:16 +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
hubertf
b979def939
Fix typo: hte -> the
1997-10-10 03:42:18 +00:00
agc
04cc1342e6
Fix for misuse of NULL definition, from Arne Juul
...
(<arnej@math.ntnu.no>). Fixes bin/3745.
1997-06-13 16:10:15 +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
thorpej
3dcfaef872
NetBSD Makefiles use "MAN=foo.3" not "MAN3=foo.0". However, since we
...
do not install this library, do not even bother with the ftpio.3 manpage.
1997-06-05 20:43:28 +00:00
agc
2ad13dba57
Don't install libinstall.a (from Bernd Ernesti)
...
pkg_delete manual page mods got lost in previous commit.
1997-06-05 14:25:49 +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
5d78b65530
Initial import of FreeBSD libftpio.
...
Placed here (under pkg_install) to make it private to that tool.
1997-06-05 09:11:59 +00:00
agc
5d4508e153
Initial import of FreeBSD packaging tool.
1997-06-05 08:54:23 +00:00