Commit Graph

691 Commits

Author SHA1 Message Date
lukem 66176dfdff Rename MKPRIVATELIB to LIBISPRIVATE, to make it clearer that this is
a variable that is used by in-tree Makefiles to control behaviour.
(MKsomevar variables are generally intended to be controlled by the end-user)
2008-05-03 14:48:30 +00:00
joerg d0251018da Update for pkg_install-20080222 and sort sources. 2008-02-22 16:20:53 +00:00
joerg 2ec9a34ee9 Deal with statvfs compat issue by including it in nbcompat.h for now. 2008-02-07 23:46:47 +00:00
joerg 32cb208674 Catch up with pkg_install-20080202: pkg_info needs libarchive, libbz2
and libz now.
2008-02-03 21:27:27 +00:00
joerg fd3f654960 Catch up with pkg_install-20071224. 2007-12-24 00:04:45 +00:00
joerg 7fb995bb6e Catch up with pkg_install-20070814. 2007-08-14 23:01:05 +00:00
joerg ca08f11a4d Regen config.h. 2007-08-08 22:44:49 +00:00
wiz 96a93618fa It is probably better to use build.c in SRCS instead of build.o. 2007-08-03 21:50:27 +00:00
joerg 9f6fe41470 Update reach-over code for pkg_install-20070802. 2007-08-03 14:04:15 +00:00
joerg 2ccbc1ff9d Switch to src/dist as primary src location of pkg_install.
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.
2007-07-16 19:57:46 +00:00
joerg f6afac53fa Switch to src/dist as primary src location of pkg_install.
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.
2007-07-16 19:33:02 +00:00
joerg 3a6411a4c8 When fixing vsftpd, other FTP server were broken as they return
different error codes for unmatching glob patterns. Basically ignore the
error code and just try the other pattern. chdir errors are still
considered fatal.

Bump version to 20070715.
2007-07-14 22:53:27 +00:00
adrianp 38581a0561 Update to pkg_install-20070714
Merge of audit-packages with various improvements:
* Version 20070714
	Initial release of re-write in C
	Add support for notfication of eol packages (-e)
	Multiple levels of verbosity (e.g. -v -v)
	Specify a custom config file to use (-c)
	Query running config values (-Q)
	Default to download .gz compress pkg-vulnerabilities file
	Support for .bz2 compress pkg-vulnerabilities file
	Verify signature on downloaded files (-s)

Thanks to tron@, jschauma@, agc@, joerg@ and pkgsrc-security@ for feedback
and testing.
2007-07-14 20:03:41 +00:00
tls 4147a3c54a Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
wiz 0946d2d22d Improve wording for -T. 2007-05-19 14:41:13 +00:00
christos 77306f057c PR/36274: Jukka Salmi: pkg_add(8) -t option broken, template passed in
is treated as a directory. While there simplify and shorten the code...
2007-05-05 16:43:01 +00:00
joerg 7c4234f30b Avoid using glob-style [] patterns with NLIST. At least vsftpd doesn't
support them, but all known FTP server support wildcard matches. So just
run two commands to get the list of tgz and tbz packages.

Bump pkg_install version to 20070416.

Original commit ended up local, but keep this with the original date as
that is what pkgsrc itself is using. Thanks to Hubert for noticing.
2007-05-03 00:26:53 +00:00
joerg 5149c83981 To avoid the defs.h to disappear again, change users of PRIu64 to
MY_PRIu64 and define that to PRIu64 by default.
2007-04-20 14:22:25 +00:00
tnn c370d31c5a Sync w/ pkgsrc/pkgtools/pkg_install: Include "defs.h" to get definition
of PRIu64 on platforms that don't define it themselves.
2007-04-20 14:03:14 +00:00
joerg 2fcc3fcbe6 Add a new option to pkg_create to allow easy registration of all
dependencies. Just like -P is used for the full dependencies to create
@blddep entries in the PLIST, -T does that as well. To reduce the chance
of confusing older tools, they are sorted after the full dependencies.
Bump pkg_install version to 20070308.
2007-03-08 18:20:20 +00:00
joerg eafde1f2ac First step to killing the require script heritage: remove support
in pkg_create for them and complain in pkg_add and pkg_info.
2007-03-08 15:36:57 +00:00
joerg fc6d83e38e Remove documentation for -h as well. 2007-03-08 15:20:18 +00:00
joerg 8f8f925511 Nuke -h option for pkg_create. Following all symlinks is not useful
either and can fail for those packages which intentionally or not
install broken symlinks.
2007-03-08 00:52:04 +00:00
joerg 91ba7f5d95 Nuke -X option for pkg_create. Filtering the PLIST thrown at tar is not
really useful and easier done directly. This feature was supposedly
never used at all.

OK agc@, jlam@
2007-03-08 00:33:53 +00:00
wiz 0021a7283b Links to pkgsrc(7) instead of packages(7). Bump date. 2007-03-02 11:36:38 +00:00
wiz cc97ec4b3c Drop trailing whitespace, remove superfluous Pp. 2007-02-07 06:47:33 +00:00
reed aa7b0cce96 Add an example on how the data is generated.
Point to pkg_info(1).
Add a brief history.
2007-02-06 01:22:40 +00:00
joerg e8a733de1a Bump pkg_install version to 20061103 for plist processing fix and
more verbosity in pkg_delete.
2006-11-03 09:20:45 +00:00
joerg bab4eecdd4 When processing symlinks in pkg_delete and the call to readlink failed,
it often helps to know why, so use warn instead of warnx.
2006-11-03 09:19:15 +00:00
joerg 5409c36039 If a plist contains @owner or @group entries and first rename failed,
pushout was called with NULL argument. This has the semantic of using a
working directory of "/", even though already read plist entries are
relative to prefix. The calls to chown and chgrp therefore end up with
the wrong arguments for the current directory. To compensate for this,
don't pushout the first time. As plists are not supposed to have
multiple @cwd entries anymore, this could most likely be simplified, but
that is outside the scope of this commit.

Reviewed by agc@
2006-11-03 09:17:24 +00:00
gson 3c6f48ffcd Bump PKGTOOLS_VERSION for today's fix to add/perform.c. 2006-07-20 11:19:33 +00:00
gson 23198f432e Fix uninitialized variable which was causing pkg_add -u to randomly
dump core.  This may fix PR pkg/30292.
2006-07-20 08:34:32 +00:00
rillig 591ed5a67e In header files, there shall be no variable definitions, only
declarations. Found by MIPSpro.
2006-07-10 21:42:18 +00:00
dillo 4b176d8d5e Fix pkg_info -Q for binary packages, noted by rillig.
Bump version to 20060701.
2006-07-01 19:31:23 +00:00
hubertf 611d442807 Update usage() to match the manpage - most important, add missing options 2006-06-27 23:33:21 +00:00
mrg 43419a069b sprinkle a little (char *) to quell GCC4. 2006-05-11 23:50:15 +00:00
mrg aadd7d4847 sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4. 2006-05-11 23:16:28 +00:00
dillo d67db6407e HOMEPAGE is not required, noted by wiz. 2006-04-25 13:28:10 +00:00
wiz 7f1b30bfd9 Sort. 2006-04-24 22:04:12 +00:00
dillo 845f7524ad Add support for creating summary file containing all information
about a package repository needed by package managing software.
This allows better use of remote binary package repositories.

Discussed on tech-pkg.
2006-04-24 13:36:22 +00:00
hubertf 0161f34fc6 Bump for today's timeout change in ftpio.c 2006-04-18 20:40:48 +00:00
hubertf 19ef9ca981 unpackURL():
Make timeout mechanism's granularity always per-file (inside package)
instead of per-package (if not -v) or per-file (inside package, if -v).
2006-04-18 13:11:05 +00:00
hubertf 2e3214a0d4 Bump ftp timeout from 10 minutes to 1 hour.
When installing teTeX over a dog slow VPN, this can be necessary.
2006-04-11 10:36:19 +00:00
wiz 91bfc3f2c9 Formatting nits. 2006-04-08 23:05:38 +00:00
reed 0078fc2ced pkg_add also now check for USE_ABI_DEPENDS.
Check if USE_ABI_DEPENDS or IGNORE_RECOMMENDED was set
when this package was built. IGNORE_RECOMMENDED is now historical.

Remove on space in warning (and add "ABI")
so will fit on standard 80 column console.
2006-04-06 06:45:08 +00:00
hubertf 3cdb8f0a5c http_expand_URL(): fclose() the fdopen()'ed filedescriptor
before leaving the function (for all cases).

Actual fix and sanity checking by Dillo & Wiz
Coverity CID 2340
2006-04-05 18:01:20 +00:00
hubertf a4ff1305f4 When recognizing a broken package version/name,
make sure to error out really, don't just print a warning
and the run into further problems.

Coverity CID 2739.
2006-04-05 17:50:48 +00:00
wiz da9647bfba Bump date, so that version in src and pkgsrc have the same
version _and_ the same code.
2006-04-04 06:38:53 +00:00
christos 3b6811d33b PR/33123: Murray Armfield: standards compliance & glob.h
Certain fields in glob.h need to be size_t; fix this and version glob(3).
    http://www.opengroup.org/onlinepubs/000095399/basedefs/glob.h.html
2006-03-26 18:11:22 +00:00
hubertf dc01675c5a Put check if "best" is empty back into the right place, messed up
in previous commit.
Noted by yamt@
2006-03-17 17:46:44 +00:00