Commit graph

3300 commits

Author SHA1 Message Date
wiz
065afff669 Replace reference to (obsolete) -M with tar(1). Bump date.
Requested by joerg.
2007-08-23 21:58:24 +00:00
heinz
9368c471eb Added support for installation to DESTDIR. 2007-08-23 20:40:56 +00:00
joerg
6f95ca1670 xorg-dirs is gone. Bump to 4.79. 2007-08-23 09:47:37 +00:00
adrianp
92d3b5842c Fix a bug in the processing of GPG in audit-packages.conf. This should fix
PR# 36773 opened by David A. Holland.
While we're here look for settings with no values in audit-packages.conf
and ignore them.
Tighten up processing of audit-packages.conf for the situation where
settings are specified multiple times. (report from joerg@).
2007-08-22 23:23:22 +00:00
joerg
731c214320 When looking for a package with a wildcard pattern, don't add the
suffix. find_best_matching_file does that already and doing it twice
is actually counterproductive. Bump to 20070821.
2007-08-21 07:11:42 +00:00
agc
3f175c6486 Add DESTDIR support
Make symbolic links to directories in the appropriate way
Change email addres sto match current preferences
2007-08-20 21:44:03 +00:00
agc
446a0e15d2 Add DESTDIR support 2007-08-20 21:42:26 +00:00
joerg
a9278bdbcb x11/xorg-libs/version.mk was removed, catch up. 2007-08-18 00:20:56 +00:00
gdt
785779a3cc Remove leading spaces from PKGNAME, to cope with an old bug. 2007-08-17 01:19:45 +00:00
joerg
1d9752887b close is a function, fix C&P errors. From Aleksey Cheusov.
Bump version, remove pkgrevision.
2007-08-16 13:02:05 +00:00
joerg
6eee19dc11 Work around broken default visibility in Linux (PR 36790).
Linux has sin_len either (PR 36791).
2007-08-16 12:50:34 +00:00
tnn
38c78edf17 Revbump sweep of all libevent consumers due to update to libevent-1.3d. 2007-08-16 09:27:03 +00:00
joerg
020f22df97 Don't hard-code tar as tar, but make it an option and use the tool
version correctly. Fixes issues on platforms where the first tar
in path doesn't support -z. Bump to pbulk-0.12.
2007-08-15 21:10:54 +00:00
joerg
515bcbf499 Shorten wording. 2007-08-15 20:55:28 +00:00
joerg
7d8b7c6596 Fix grammar. From salo@ 2007-08-15 20:52:02 +00:00
joerg
14b81a3089 Start abstracting pkgdb access by introducing pkgdb_pkg_file.
The function returns the path name of the given file for the package.
The memory needs to be freed by the caller.
2007-08-15 02:08:40 +00:00
joerg
66657d027d Make _pkgdb_getPKGDB_DIR return const char * and fix fallout. 2007-08-15 01:49:02 +00:00
joerg
8d30fc2491 Bail out if the PLIST contains no @name field. This check existed since
the initial revision in 2002, so assume it just works...
2007-08-15 01:21:46 +00:00
joerg
ab17300d32 Split off the part dealing with already installed packages into
a subfunction.

Bail out if the package name doesn't have a version name.
Bail out if the internal rename failed (it was an assert before).
Invert some of the branches to cut off three levels of indirection.
2007-08-15 01:16:27 +00:00
joerg
6a1fd2334f Add new option -m to pkg_add. This allows to override MACHINE_ARCH
for the purpose of installing a package and enables cross-compiled
pkgsrc to not use -f all the time.

Bump version to 20070815.
2007-08-14 22:47:51 +00:00
joerg
f8f97243e2 Fix indentation. 2007-08-14 13:15:58 +00:00
joerg
6a86f42a52 Merge tmppkg into main variable block and remove indentation. 2007-08-13 19:15:37 +00:00
joerg
0363bc546f Check explictly for argc == 0 to find out if options where specified.
Don't depend on NULL termination of argv, count instead.
Remove more traces of slave mode.
2007-08-13 19:13:13 +00:00
rillig
6aecf48699 Added mk/misc/category.mk, which contains the definitions that are only
useful for category Makefiles, as opposed to bsd.pkg.subdir.mk, which is
also relevant for the top-level directory. Adjusted the category Makefiles.
2007-08-13 08:12:41 +00:00
rillig
0505043778 Documented expect() and prepared pkglint for the upcoming introduction
of category.mk.
2007-08-13 08:08:44 +00:00
joerg
8ab021fab7 pkg_admin: when retrying with a wildcard pattern, use the computed
pattern and not the base name.
pkg_info: add -E option to return the best matching installed package.

Bump to 20070813.
2007-08-12 22:09:02 +00:00
joerg
386755f3cb Restore ignorance of entry types for lsbest and lsall for now.
The check for already installed packages depends on being able
to run them in PKGDB_DIR. This is clearly obnoxius, but leave it
for later.
2007-08-12 18:54:08 +00:00
joerg
567020fab0 Reference correct variable. 2007-08-12 17:51:36 +00:00
joerg
7df87b070e - Introduce find_best_matching_file and match_local_files. This replace
the functionality offered by findmatchingname and findbestmatching
  name. They optionally strip the suffix from the filename before
  matching it, instead of modifying the pattern directly.
  Drop the old functions.
- Fix a bug in pkg_order where the version strings where inverted
- Make pkg_admin lsbest and lsall use the new functions.
- Make ftpio use pkg_order directly.

Bump version to 20070812.
2007-08-12 16:47:17 +00:00
adrianp
5bc5a2248d * Use stdout for printing results of vulnerable/eol packages found.
Reported by Greg Troxel on tech-pkg@
* Add -q which operates the same as 'pkg_info -q' and only displays
  the package name of any vulnerable/eol packages found.
  Suggestion by joerg@
* man page updates for -q
* Document the required permissions for audit-packages and
  download-vulnerability-list in the man page.
2007-08-10 22:50:46 +00:00
joerg
3c81e91396 Remove comment about importing from NetBSD. 2007-08-10 22:42:13 +00:00
gdt
52887c8e10 Reword description of rebuild-tree, and point to pkg_delete -f as a
possible cause of inconsistencies. Remove comment about make replace,
since it does not, absent pkgsrc/mk bugs, result in incorrect
dependency records.
2007-08-10 22:39:13 +00:00
gdt
2c897a092e pkg_delete In the list of options, note -ff option to remove {\bf
preserved} packages, and caution the reader that it is dangerous.
Ride hours-earlier version bump.
2007-08-10 22:29:49 +00:00
joerg
ded9371ddc Not my day. If I write "return 0 when at least one match was found",
actually return 0...
2007-08-10 21:43:58 +00:00
joerg
0fa5f07e10 Add "rebuild-tree" command to pkg_admin. It recomputes the dependencies
and builds the +REQUIRED_BY files from that.

Bump to 20070810.
2007-08-10 21:18:31 +00:00
joerg
ea7045b735 Contrary to its comments, CheckForPkg is meant to print all matching
packages (see pkg_info -e). Restore this behaviour. Still print a
warning when the pkgdb can't be processed.

Reported by Daniel Horecki and pointed to the option by tnn@.
2007-08-10 15:37:51 +00:00
joerg
06cbbe0491 Don't use ld -x or ld -X. Bump version to 20070810.
Discussed with and tested by various people over the last two month.
This problem was exposed by pbulk.
2007-08-10 13:04:13 +00:00
wiz
00d71b8259 regen. 2007-08-10 01:12:02 +00:00
wiz
59bfde374f More indent for tagged lists; add key to FILES and add
descriptions there.
2007-08-10 01:11:05 +00:00
joerg
0009d030c3 Actually assign variable that tells the caller that we got a match. 2007-08-10 00:03:51 +00:00
joerg
a4790010d4 Make var_set and var_get arguments always use full path names. 2007-08-09 23:54:17 +00:00
joerg
14862bcfd4 Remove @option extract-in-place support for now (will be the default
later) and document @option preserve in pkg_add(1).
2007-08-09 23:32:59 +00:00
joerg
7a51a218c2 Change interface of is_automatic_installed and
mark_as_automatic_installed to take a package name and not a full path.
Add assertions to test for this.

Drop a few islinktodir checks.

Change pkg_info to use iterate_pkg_db instead of scanning the directory
by hand. As a side effect don't try to check for the pkgdb dir first,
let pkgdb_dump and iterate_pkg_db handle that.

Make pkgdb_dump return failure if it can't open the package db.
2007-08-09 23:18:30 +00:00
joerg
710504e20a Pass a number of strings around as const char *. 2007-08-09 23:06:42 +00:00
joerg
b847c0bf73 Fix segmentation fault when the package has no variables set and
no info file. Patch from Dieter Baron in pkg/36741.
Bump version to 20070809 for today's fixes.
2007-08-09 18:03:38 +00:00
joerg
9da2f994e0 Use the passed in string and Pkgdeps when calling strsep, fixing
processing of the build options. Reported by tron@ in PR 36754 and
Mark E. Perkins on pkgsrc-users.
2007-08-09 14:14:45 +00:00
joerg
1295367366 For user-destdir installation, we need to ues the REAL_ROOT_USER.
It doesn't hurt in the other cases, so do it consistently.
2007-08-09 14:12:35 +00:00
joerg
a50b83c42f Add DESTDIR support. 2007-08-09 13:29:02 +00:00
joerg
5d2cdcf3b6 When matching a non-pattern (aka a base name), assign the correct
variable. This fixes pkg_info -e and in turn pkg_tarup.
2007-08-09 12:53:35 +00:00
joerg
f9b953763b Replace note_whats_installed, add_to_list_fn and generally most
users of findbestmatchingname and findmatching name with more
descriptive and easier to use iterator functions. This functions
are a first step to abstract away pkgdb layout from most parts of
the code. It also helps to reduce side effects and point out potential
bugs in this code.

Fix a potential, but practically irrelevant buffer overflow.

No longer allow symbolic links directly in pkgdb to store the meta
data of individual packages outside. E.g. /var/db/pkg/atk-1.18.0
must be a directory and not point to it. This is not yet enforced in
all parts of the code, more changes will follow.

Bump version to 20070808.
2007-08-08 22:33:38 +00:00
wiz
a367b31fdf New sentence, new line; use more markup; fix a typo. 2007-08-08 22:00:40 +00:00
tnn
8629b7a0f5 Fix build on Solaris by including fcntl.h, needed for O_RDONLY definition. 2007-08-08 12:21:14 +00:00
tnn
f32a62ac9e pkg_rolling-replace-0.10:
- Abort if any of rebuild, unsafe_depends, unsafe_depends_strict are still
  set after "make replace".
- Following changes in pkgsrc, does not replace by default if the
  dependencies' ABI is still compatible.
- Add option -s that retains the old behaviour of always replacing.
- Add option -r for "replace only", this supresses creation of binary pkgs.
- The -n option has not been fully updated for these changes.
- versions 0.[7-9] were skipped to avoid any ambiguity from the 0.04 -> 0.5
  transition.
2007-08-08 11:28:04 +00:00
wiz
892e6014df Drop trailing whitespace. 2007-08-07 20:46:43 +00:00
lukem
a6b77a348a No need for PKGREVISION for tnftp-20070806. 2007-08-07 05:05:04 +00:00
tnn
ad86fdd1e5 Update to pkg_rolling-replace-0.6:
- Explicitly unset 'unsafe_depends' and 'rebuild' tags after replacing.
  Needed after changes in pkgsrc/mk/flavor/pkg/replace.mk, fixes PR 36738.
- Introduce ${PKG_ADMIN}, ${PKG_INFO}, ${PKG_CHK} variables instead of
  calling the tools directly by name.
2007-08-06 15:07:56 +00:00
tnn
7b610949fe Use full parameter lists in macros to avoid bogus replacements. 2007-08-05 22:06:11 +00:00
adrianp
0f8a3686bb s//etc/${PKG_SYSCONFDIR}/ 2007-08-05 17:21:50 +00:00
joerg
a40dec8f12 Correctly handle ordering NULL -- this greatly simplifies using it
in iteration functions. Fix a major thinko that prevented the actual
order rules from being used. Bump to 20070804.
2007-08-05 14:58:49 +00:00
joerg
e2a9c6ca63 Don't compare a function name against NULL, master_mode is meant here.
Thanks tnn@.

Reverse the test for extracting the bootstrap kit as the old version
hits set -e error handling.

Bump to pbulk-1.11.
2007-08-05 14:15:55 +00:00
tnn
a3b45d16a1 Do SUBST handling in post-patch instead of pre-configure. This makes
substitution (and any substitution warnings) run before the build starts,
rather than after building libnbcompat. The reason for this is that
libnbcompat is _built_ in the pre-configure stage when in inplace mode.
2007-08-05 12:30:10 +00:00
tnn
b21160e197 Tru64 doesn't have strtoll, but alpha is a pure LP64 platform so we can
just define it to strtol and most consumers of strtoll should be happy.
2007-08-05 11:20:47 +00:00
tnn
917db2d03b Add quotes around sed scripts. 2007-08-05 11:10:11 +00:00
tnn
49bc4064e5 Add some useful comments. 2007-08-05 09:37:19 +00:00
tnn
15823f5d6b No sin_len on digital unix derivatives. (xxx: time for a configure test?) 2007-08-05 09:03:09 +00:00
joerg
b5e9c6cd26 Detect grp.h. Regen. 2007-08-05 01:27:55 +00:00
joerg
f24ae1bb8a Try hard to get 64bit offsets in all modules, fixing misunderstandings
between libarchive and pkg_create e.g. on HP-UX.

Add my copyright to build.c, it is almost completely rewritten.
2007-08-04 12:32:01 +00:00
tnn
5b5761f0b7 Bump version to 20070803 after fixing a crash when generating Tiger hashes 2007-08-03 21:42:04 +00:00
tnn
155170f318 Allocate enough storage space to hold a tiger hash. Corrects a
segfault caused by writing past the end of the buffer.
XXX how do I bump the version of this package?
2007-08-03 17:10:07 +00:00
joerg
73ba3ef5c6 Fix bootstrap issues reported by tnn@ 2007-08-03 15:44:18 +00:00
joerg
46e6de189b The forced disabling of zlib and bzip2 was meant for testing only,
remove it. *blink*
2007-08-03 15:12:43 +00:00
joerg
fb85dba2b4 Bump date for last change. 2007-08-03 13:55:29 +00:00
joerg
199aa00ff5 - only build pkg_admin, pkg_create and pkg_info for --enable-bootstrap
- for pkg_create, split-off the package creation from the plist
  processing. package creation is disabled for --enable-bootstrap
- change package creation to use libarchive
- add two options (-u and -g) to override file system ownership
- pkg_create now creates files in the tarball with correct owner/group
  based on -u/-g or @owner/@group
- add a function to compute the +CONTENTS file in memory

Bump version to 20070802.
Review of a slightly older version by jlam@
2007-08-03 13:15:58 +00:00
tnn
e04e9eecc3 pkg_rolling-replace-0.5:
Redirecting output to /dev/stderr is not portable and will create a
regular file "stderr" if the device does not exist. Instead use the
portable 1>&2 redirection syntax. PKGREVISION was at nb9; get rid of it
and bump minor version number.
2007-08-03 00:55:08 +00:00
wiz
440dab353e regen. 2007-08-02 23:34:08 +00:00
wiz
e22d5fa05f Bump date for fixed paths. 2007-08-02 23:34:00 +00:00
wiz
f9b0a454db Update some paths on ftp.NetBSD.org.
Addresses PR 36721.
2007-08-02 23:30:20 +00:00
joerg
5122a367fd Include inttypes.h if it exists. Fixes issues on OSF/1 as reported
by tnn@.
2007-08-02 13:54:34 +00:00
tron
ef97254c92 Include "bsd.prefs.mk" to avoid error messages from e.g. "pkg_chk".
Fix suggested by Joerg Sonnenberger.
2007-08-02 07:22:31 +00:00
taca
42ca54029b Include <stdint.h> if HAVE_STDINT_H is defined, not HAVE_INTTYPES_H.
Fix build problem on SunOS 5.8.
2007-08-01 23:58:15 +00:00
tnn
c075ccd194 Near full rewrite of posix_headers:
- Implement a simple framework for automated header testing and generation
  using the c preprocessor.
- Make it installable on all platforms. On most platforms it will not install
  any files however.
- Bump revision to 0.5.

The changes should make it easier to add Interix support to this package.
Note that the package is still far from complete; for example the replacement
stdint.h does not yet provide fallback definitions for int_*t and friends
but relies on inttypes.h to provide them, which turns out to work for HPUX.
2007-08-01 21:33:40 +00:00
joerg
f699d716e9 Allow libnbcompat to be used in cross-compiled packages.
Supported-by: Google SoC 2007.
2007-08-01 18:16:38 +00:00
joerg
402a1d0078 Disable CHECK_PERMS here as it is needed for groff onsome platforms. 2007-07-31 14:40:45 +00:00
joerg
f1cd925f5b -Wall is a non-standard flag, don't use it in a bootstrap package.
Bombed out on by xlC.
2007-07-31 13:32:04 +00:00
joerg
0e17f71497 Don't use u_{char,short,int,long} as they are non-standard.
Bump version to 20070731.
2007-07-31 13:17:33 +00:00
joerg
c54865f2f5 Remove a now unused extern declaration. 2007-07-30 10:33:07 +00:00
joerg
ee5d571224 Remove first obstactle in pkg_add for switching to libarchive:
MASTER/SLAVE mode is gone now.

Bump version to 20070730.
2007-07-30 08:09:14 +00:00
joerg
d3a02b798c Don't build a list for a single item, but change the pkg_perform
interface to hand it down directly.
2007-07-30 07:25:10 +00:00
joerg
ba250884a3 Push pkg_perform prototype into the individual packages. 2007-07-30 07:16:21 +00:00
rillig
523896247e + REPLACE_KSH 2007-07-29 18:41:08 +00:00
seb
e40571f70c Specify PKG_DBDIR to pkg_admin and pkg_info via their -K argument
instead of environment. This allows mk/flavor/pkg/resolve-dependencies
to execute '${PKG_ADMIN}': you can encounter this problem
on platforms in need of pkgtools/pkg_install because their native
pkg_* tools are older than PKGTOOLS_REQD, id est NetBSD 2.x and earlier.

Ok'ed joerg@.
2007-07-29 17:39:31 +00:00
adrianp
5ca9237032 Remove redundant SUBST_* from package Makefile
OK'ed joerg@
2007-07-29 14:06:44 +00:00
rillig
474bbf93e4 Added REPLACE_PYTHON to fix a warning reported by gdt. 2007-07-29 01:32:47 +00:00
wiz
581b49d91c Fix two typos, and improve wording. 2007-07-28 07:26:26 +00:00
joerg
315daaa372 As reported by tnn@, the old approach to find the byte order
doesn't work on HP-UX/Itanium. Use the standard approach using
AC_C_BIGENDIAN. Tested by myself on i386, he@ on SPARC and tnn@ on
HP-UX.
2007-07-27 17:08:27 +00:00
tnn
c712efac2d No need to use the -p flag to cp(1) here. 2007-07-27 14:20:20 +00:00
joerg
07eedea6c2 Split bootstrap into two phases:
- phase one builds the essential tools in the bare minimal version
  needed by the infrastructure to run "make install".
- phase two runs "make install" for all the bootstrap packages.

Set WRKOBJDIR for the second phase, we never want to leave garbage
around.

This increases the time for running bootstrap, but gives more
deterministic results. It also means that e.g. configuration files
in pkg_install can be handled normally. It is a prerequirement to
sanely allow pkg_install some more extended work like building
its own libarchive without having to worry too much about limitations
on some platforms.

This fixes the expansion of @gzcat@ in the download-vulnerability-list
script.

Tested by tnn@ on Interix and myself on DragonFly.
2007-07-27 10:43:24 +00:00
joerg
20911999c4 Some people actually watch the pbulk-build client output, so add
a newline after each message. Bump to pbulk-0.10.
2007-07-27 09:59:36 +00:00
abs
d46b3dd8b6 Update pkglint to 4.78:
- lintpkgsrc.pl - less brokenly parse the contents of make conditionals
  like "if empty(FOO)". Specifically handle the case where FOO
  contains a :M modifier or a variable expansion.
  Fixes 'lintpkgsrc -r' incorrectly deleting ruby18-base-1.8.6nb1 each time
  Mmm... lintpkgsrc.pl needs to die
2007-07-26 17:07:59 +00:00
joerg
1b8a4975f6 Thinking again, include bsd.prefs.mk *first* and override CHECK_PERMS
afterwards, the user might have set it.
2007-07-26 12:24:52 +00:00
joerg
2745164118 Skip the permission check for libkver as well to avoid cyclic
dependencies.
2007-07-26 12:24:08 +00:00
joerg
17c965dcc3 After the obsoletion on March, remove the support for require scripts.
Also remove the documentation of the mtree parts as it is not supported.
2007-07-26 11:30:55 +00:00
joerg
43de2f8a8b As discussed in PR 36662, the include of nbcompat.h takes care of
the need to include sys/cdefs.h. Do include err.h if it exists
or we are not building for pkgsrc, otherwise use nbcompat/err.h.
2007-07-26 11:27:58 +00:00
joerg
057de8d82c pkgsrc_base_dir is now without leading /, compensate. GC it in the HTML
report script. Bump to pbulk-0.9.
2007-07-25 15:12:53 +00:00
joerg
64c41eca87 Mostly deorbit mtree support:
- pkg_create bails out with -m
- pkg_add ignores mtree specs in packages and prints a warning.
  It does not remove the file like before.
- remove now obsolete documentation.

pkg_info still prints the information and pkg_admin ignores the files.
Make the dependency on the tools a runtime dependency.
Take maintainership of pkg_install and bump version to 20070725.
2007-07-25 15:01:45 +00:00
joerg
a25b67ca2e Remove an additional ) and correct the assignment of a variable.
Bump to 0.8.
2007-07-25 11:07:28 +00:00
adrianp
2637bfc26b Check we can write to ${PKGVULNDIR} before attempting a download.
Reported by wiz@
2007-07-24 18:57:02 +00:00
adrianp
ae1629c33a Include nbcompat.h to sort out err.h
Add a conditional include for cdefs.h
This resolves the remainder of the issues in PR #36662
Thanks to Stuart Shelton for testing and feedback.
2007-07-23 12:29:32 +00:00
tnn
954b179cfd Move variable declaration to top of function body to make this build with
older versions of gcc. From Anonymous on IRC.
2007-07-22 13:22:21 +00:00
tnn
0466c89ba4 Wrap inclusion of inttypes.h in #ifdef HAVE_INTTYPES_H 2007-07-21 15:44:02 +00:00
tnn
0cf99d1015 Uses ntohl(), so include <arpa/inet.h> 2007-07-21 15:36:36 +00:00
tnn
d600ba1e7f Add workaround for broken 'struct sigaction' on Interix. 2007-07-21 15:29:50 +00:00
tnn
495f8a912e Add workaround for broken 'struct sigaction' on Interix. 2007-07-21 15:12:06 +00:00
tnn
bde72979d7 Interix doesn't have sockaddr_in.sin_len. 2007-07-21 14:45:12 +00:00
tnn
310e0cf3e1 Another version bump due to added configure check for uintptr_t 2007-07-21 14:39:25 +00:00
tnn
dc991988c1 * configure.ac: Add AC_TYPE_UINTPTR_T, needed by sha2.c.
Fixes build on Interix. Suggested by joerg@
* configure, config.h.in: regen
2007-07-21 13:57:33 +00:00
adrianp
39b2b8ef53 Add missed file in last update 2007-07-21 10:21:38 +00:00
adrianp
74d71ced16 Misc man page fixes
Update to autoconf 2.61
Add checks for AC_TYPE_UINT{8,16,32,64}_T
Add checks for stdint.h
Change how config file notification works
If no IGNORE_URLS directive is found then just say that
Check that pkg-vulnerabilities exists before we try any operations on it
Use st_ctime as opposed to st_ctimespec.tv_sec as the former is SUSv3
This update should fix PR #36655 and go part way to fixing PR #36662

Thanks to tnn@ and joerg@ for suggested fixes and Yakovetsky Vladimir and
 Stuart Shelton for testing and patches.
2007-07-21 10:21:04 +00:00
joerg
5fc8c04e5a Split pattern related functions from lib/str.c off into lib/opattern.c.
Rename pmatch to pkg_match and add new function pkg_order that
implements the order logic used by pkg_add internally.

Change the interface of findmatchingname's callback to take the pattern
used for the matching as first argument. The new pkg_order function
takes it and it doesn't hurt in other cases. Adjust callers and
corresponding callbacks accordingly.

Remove an unused matchfn typedef in dewey.c.

Bump to 20070720. OK jlam@
2007-07-20 22:22:52 +00:00
joerg
e00c79e3eb Always call setprogname for platforms that don't have __progname.
Don't depend on date to implement %s or even %F and %R or support -r,
compute dates as one comment and split. This works even with the very
special HP-UX date. Requested and tested by tnn@

Bump to pbulk-0.7.
2007-07-20 19:39:33 +00:00
tnn
f698f7ba2b Bump version due to changes in asprintf, snprintf and vsnprintf. 2007-07-20 00:32:01 +00:00
tnn
a4439a21a6 * configure.ac: Test for a standards-conformant vsnprintf. If it is found
to be broken, fall back to the one provided by libnbcompat.
* configure:    regen
* config.h.in:  regen
2007-07-20 00:21:02 +00:00
tnn
943cff783d Handle trailing NUL correctly. 2007-07-20 00:11:25 +00:00
tnn
4d407c5bcb Fix logic error in buffer handling (Hi Joerg!) 2007-07-20 00:10:06 +00:00
tnn
587152daa8 Replace "poor man's printf" implementation of (v)snprintf with an
imlementation using vfprintf. The advantage is that format strings behave
like other *printf functions on the host, the drawback is that it is slower.
2007-07-19 22:06:43 +00:00
wiz
fdfa17436f New sentence, new line. Sort options. 2007-07-18 23:33:19 +00:00
joerg
9b00c3e863 Fix SHA256/SHA512 to work on strict alignment platforms. This was
exposed by the C version of audit-packages and report in PR pkg/36662.
2007-07-18 14:09:55 +00:00
tnn
f5e2487470 Link libnbcompat before libevent (which may link to libc), so that
libnbcompat is guaranteed to appear before libc. Avoids various weak
aliasing problems with getopt on HPUX. Ok joerg@
2007-07-17 18:11:37 +00:00
tnn
d1718215ba HPUX's sockaddr_in doesn't have a sin_len member, so don't initialise it. 2007-07-17 12:09:29 +00:00
joerg
4c2322c0eb Add two variables to specify the prefix of the report mail's subject
and the recipient. Bump to pbulk-0.6.
2007-07-16 20:35:04 +00:00
joerg
68254bb9e4 bulkdir was an old configuration variable and replaced with bulklog
in the example config. Catch up in the scripts as well.
Create the log directory first for limited bulk builds.

Bump to pbulk-0.5.
2007-07-16 19:25:25 +00:00
joerg
1e9a4230a4 Change download-vulnerability-list.sh to use exec_prefix in the
sense of pkg_tools_prefix and prefix in the sense of LOCALBASE.
This allows individual overriding for NetBSD.

Add the forgotten part to allow DESTDIR builds and the pkgsrc.7 man
page.
2007-07-16 13:23:02 +00:00
joerg
bc4117d57f Retire helper scripts for merge from src, this is now the authoritive
version.
2007-07-16 11:40:10 +00:00
joerg
9df3e415c9 Merge remaining small changes from NetBSD, most of all the pkgsrc.7 man
page. Fix build on !NetBSD. Rebuild man pages with nroff -mandoc on
NetBSD current for consistency. Make it DESTDIR safe. Remove the note
that src/usr.sbin/pkg_install is the authoritive version, it won't be
any longer.
2007-07-16 09:57:56 +00:00
joerg
289ba68704 Merge r1.37 from NetBSD:
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-07-16 09:54:55 +00:00
rillig
5c72bdd8d3 Added support for SUBST_VARS.*. 2007-07-15 22:13:46 +00:00
rillig
d8eced8cbe Added PKG_GROUPS_VARS, PKG_SYSCONFDIR_PERMS, PKG_USERS_VARS and
SETUID_ROOT_PERMS.
2007-07-15 22:11:03 +00:00
joerg
ca03bfb945 Merge 1.75 of lib/ftpio.c from NetBSD:
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:57:15 +00:00
adrianp
8f09fd52a9 Bump pkg_install 2007-07-14 20:19:48 +00:00
adrianp
16b215dd7e 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:17:06 +00:00
agc
45c75f52c6 Some bug fixes following feedback from Aleksey Cheusov.
Check that some directories exist before trying to use them.

Calculate the architecture, overridable on the command line.
2007-07-14 14:51:19 +00:00
joerg
18bfea6740 Workaround too aggressive RCS ID find, so that +BUILD_VERSION and
ident agree.
2007-07-12 15:35:43 +00:00
joerg
80fbcad274 Avoid embedding $NetBSD\$ and similiar constructs in-tree files.
The strings would be picked up for +BUILD_VERSION and create mismatches
when using ident on the same files.
2007-07-10 15:27:57 +00:00
joerg
eb66d11868 Remove PKG_TOOLS_PREFIX handling for mtree, pax, pkg_install and
tnftp. Modifying files and possibly removing them from the base system
is doing more harm than use. Bump revision or version of each
package.
2007-07-10 15:19:17 +00:00
joerg
9118800e95 Update patchsum. 2007-07-09 15:21:03 +00:00
joerg
05b6e204ce Follow update of digest Makefile, bits is no longer. 2007-07-09 15:19:15 +00:00
minskim
30720001b0 Include stdint.h to use integer types such as uint32_t. 2007-07-08 05:09:09 +00:00
wiz
2ba0c80af0 Fix a typo. Improve heading for top ten. 2007-07-07 13:54:36 +00:00
joerg
b1a42ef8c2 Make pkgtools/digest cross-compilation ready and actually improve
portability somewhat:
- consistently use POSIX uint{8,16,32,64}_t throughout the code.
- asssume for now that the compiler supports ULL as suffix
- use AC_TYPE_UINT{8,16,32,64}_T instead of bits.c to compute
  possible replacement types.

Bump to 20070703. Tested by Thorsten Glaser on Interix and tnn@ on
Solaris.
2007-07-03 18:54:02 +00:00
joerg
10e3eaa283 Override CHECK_PERMS for checkperms and its dependency digest.
This allows making it a real dependency for bulk builds.
2007-07-03 14:04:17 +00:00
tnn
c81466f3a0 Correct previous. (sigh, I am not good with numbers) 2007-07-02 13:34:14 +00:00
tnn
0234d40e0a xargs(1) on Interix is broken. It executes the utility on the command line
even if standard input is the empty string. Install a wrapper script
bundled with pkgtools/bootstrap-extras to deal with this. This is an
attempt at a permanent workaround for the problem described in PR pkg/25777
which has regressed since it was initially fixed.

We can now bootstrap again on Interix 3.5.
2007-07-01 23:27:43 +00:00
tnn
f96c6ae7ef Use REPLACE_SH to make this work on SunOS 2007-06-30 12:58:59 +00:00
joerg
7c7be6491b #!/usr/bin/awk -f -
works for some reasons on NetBSD, but not with other versions
of one-true-awk or gawk. Bump to 0.4.
2007-06-29 22:43:26 +00:00
tnn
263f9b1f8d Use REPLACE_SH to get a sane shell on borked platforms. 2007-06-29 18:18:37 +00:00
tnn
1812dfe155 *really* fix previous. 2007-06-29 17:16:24 +00:00
tnn
c752744b57 Convert extended RE into basic RE equivalent, making us portable again.
Noted by Mehul N. Sanghvi on pkgsrc-users@
2007-06-29 17:00:44 +00:00
joerg
f4d685fd16 Scripts get installed without suffix, so fix default configuration
to match the installed names. Bump version to 0.3.
2007-06-28 23:19:17 +00:00
dmcmahill
8b94264115 Protect TAILQ_INSERT_{AFTER,BEFORE} from being redefined. Lets
pbulk build on netbsd-2/alpha (and probably other netbsd platforms)
again.
2007-06-26 22:10:46 +00:00
rillig
f0015599b2 Fixed the regular expression for detecting the use of the shell variable
$$ (the PID).
2007-06-26 06:08:11 +00:00
joerg
08e238e949 Use libnbcompat and fix build issues on Solaris.
Don't depend on sin_len. Slightly factor out code for setting
non-blocking IO.

Bump to pbulk-0.2. Tested by dmcmahill@.
2007-06-25 21:38:43 +00:00
joerg
c13f697f19 Add asprintf implementation based on snprintf.
Add vsnprintf prototype as the function is implemented and used.
Add all the macros from NetBSD's sys/queue.h defined for the types
implemented.
Bump version to libnbcompat-20070622.

Tested by dmcmahill@NetBSD.org on Solaris.
OK jlam@, agc@
2007-06-25 21:35:03 +00:00
joerg
f00ac9b035 Force devel/libevent on NetBSD 2, as it is far too old. Found by Dan on
NetBSD/alpha.
2007-06-20 13:31:26 +00:00
joerg
412ff09fd5 Missing cast to to int for %.*s as noted by dmcahill@ and wiz@. 2007-06-20 13:04:15 +00:00
rillig
0b04c80905 This package uses BSD-style Makefiles. 2007-06-19 23:51:18 +00:00
joerg
19c1ea3335 Two more includes of sys/types.h to fix build on Mac OS X.
From schmonz@
2007-06-19 21:06:05 +00:00
joerg
5547b07b46 Include sys/types.h first to help Mac OS X. 2007-06-19 20:42:49 +00:00
joerg
5f93d7559f Remove duplicate assignment. 2007-06-19 20:38:43 +00:00
rillig
394d457386 Added INSTALL_ENV and SUBST_VARS. Noted by joerg. 2007-06-19 20:05:36 +00:00
joerg
ee4dd4ca40 Added pbulk. 2007-06-19 19:51:35 +00:00
joerg
8d27258d17 Initial import of pbulk, the new pkgsrc bulk build framework.
Discussion of various parts of the design with jlam@, wiz@, tls@
and many other developers. Special thanks to David Maxwell for
testing the initial prototype and finding some bugs with
Coverity Prevent.

Supported by Google's Summer of Code 2007 project.

OK for import during the freeze: jlam@

From DESCR:
pbulk is the modular bulk build framework for pkgsrc.

This package contains:

- pbulk-scan, a program to scan the entire pkgsrc tree
  or a list of directories therein for packages and
  dependencies. Distributed operation using a master/client
  mode is supported.

- pbulk-resolve, a program to resolve the dependencies
  from the output of pbulk-scan

- pbulk-build, the build scheduler. Distributed builds via TCP
  are supported.

- bulkbuild and related scripts to implement full and limited
  bulk builds on top of those programs.

The pbulk framework is considered experimental.
2007-06-19 19:49:55 +00:00
abs
a831063baf set USE_TOOLS+= gzip:run to get GZIP_CMD - from joerg 2007-06-19 16:08:47 +00:00
joerg
33d42db9d3 Obfuscate a bit so that +BUILD_VERSION doesn't contain incorrect
RCS IDs.
2007-06-19 13:45:50 +00:00
joerg
1b2b5a9255 Obfuscate embedded $NetBSD$ strings a bit, so that pkgsrc doesn't pick
them up for +BUILD_VERSION. This makes matching against the output of
ident impossible to verify whether the package is up-to-date.
2007-06-19 00:45:13 +00:00
rillig
ded0e22c13 Added an explanation to the "Don't add quotes around SUBST_MESSAGE" rule. 2007-06-18 09:35:59 +00:00
reed
09afdc1432 Add more files for "openwin". This was reported by
Raymond Meyer on pkgsrc-users list. This is partially based
on the list he provided.
Bump version for this package too.
2007-06-09 23:05:42 +00:00
rillig
02ecfae04a Added JAVA_BINPREFIX. 2007-06-05 13:38:04 +00:00
tnn
7987ab0850 make(1) variable assignments should go after all command line options. 2007-06-05 08:22:32 +00:00
rillig
8b91f13380 Added "local" as a valid category, since it is suggested in the pkgsrc
guide.
2007-06-03 18:38:14 +00:00
schmonz
6793f1e87c Permit installation on "FreeBSD-[0-4].*-*". 2007-06-02 07:49:18 +00:00
rillig
ed9f7c753d Updated libnbcompat to 20070531.
Changes since 20070507:

Completely rewrote the fgetln implementation, since the previous version
couldn't handle files that don't end with a '\n' character. Tested on IRIX,
NetBSD and Solaris.
2007-05-31 10:18:49 +00:00
schmonz
6b009865ac Fix a couple misspellings, and add a couple items:
* Check for parallel files/dirs whose names differ only in case
    (suggested by heinz)
* Check for German text in pkgtools/pkglint/TODO.
2007-05-29 01:35:05 +00:00
tnn
b328843d3e simplify previous 2007-05-23 18:59:46 +00:00
tnn
78d44d2c11 non-current make(1) doesn't support -V.
Provide a target for printing PKGSRCDIR. PKGREVISION++
2007-05-23 18:11:05 +00:00
tnn
40a096eee2 Add a couple of success reports. 2007-05-22 18:06:39 +00:00
tnn
69796d3406 - Change the way pkg_rolling-replace parses version numbers. Everything
after the last hyphen is the version, not everything after the first
    occurence of '-[0-9]'. This allows pkg_rolling-replace users to upgrade
    packages such as font-bitstream-100dpi.
- Use INSTALL_MAN, not INSTALL_SCRIPT. Manpages are not executable.
- Bump PKGREVISION.
2007-05-20 13:35:55 +00:00
wiz
c7bc2fe5bf Sync with pkgsrc (1.46). 2007-05-19 14:42:10 +00:00
joerg
536bb58568 Silence make. If /sbin/sysctl is static or non-existent, ldd would return
an error and make complain rather verbosely. Use || true to hide that
error.
2007-05-18 22:44:32 +00:00
peter
da2ced0ef3 Remove myself as maintainer, I don't have the time anymore to keep these
packages up to date.
2007-05-18 10:03:30 +00:00
tron
f650f2f88b Actually substitute "@ID" with the path to id(1) while creating the
shell script. Bump package revision because of this fix.

Patch submitted by MASUDA Hideo in PR pkg/36338.
2007-05-15 14:48:43 +00:00
rillig
f132950ac5 Added another helpful sentence to the explanation of the "tool vs.
${TOOL}" note.
2007-05-13 21:43:26 +00:00
tnn
0005c45200 Prepend ${PREFIX} to default location of mk.conf if we're using bmake. 2007-05-11 16:48:55 +00:00
tnn
e4112cf67c Bump date of manual page. (avoid wakeup() of wizd) 2007-05-10 03:02:20 +00:00
tnn
4b071d966b Get PKGSRCDIR from mk.conf. In turn, Get path of mk.conf from MAKECONF
or default to /etc/mk.conf if unset. Bump PKGREVISON.
2007-05-10 02:55:31 +00:00
joerg
953c56fd09 Fix bug in configure script, noticed by Thorsten Glaser. 2007-05-07 21:41:33 +00:00
joerg
a71c676de2 Add SHA256/SHA384/SHA512 to libnbcompat. Update version to 20070507. 2007-05-07 16:38:47 +00:00
rillig
6b0ed48ef1 Added BSDOS to the list of supported operating systems and sorted the list. 2007-05-01 11:16:22 +00:00
tnn
9c600da349 Use BUILDLINK_DEPMETHOD instead of BUILD_DEPENDS hack. 2007-04-29 19:52:44 +00:00
tnn
1103d46717 Disable inlined setenv. This needs more work. 2007-04-28 23:33:36 +00:00
tnn
43af8ec6f6 typecast return value from malloc 2007-04-28 21:25:06 +00:00
tnn
283b5586e1 Correct resolver prototypes. Add strto(u)ll glue. Provide inlined setenv(3) 2007-04-28 21:03:56 +00:00
tnn
08fa78f7f8 Add missing resolver prototypes. 2007-04-27 13:54:24 +00:00
tnn
23b326b23c tidy up loop 2007-04-25 11:15:02 +00:00
tnn
5f2360b6dc When we're substituting a system-provided header file, use the C
preprocessor to find out the absolute path of the system header, so that
we may include it before we add our customizations.
This is especially important when using gcc, due to it's "fixincludes".
For example, <math.h> might not be /usr/include/math.h, but instead
something like /path/to/gcc/lib/gcc/${MACHINE_GNU_PLATFORM}/include/math.h.
2007-04-24 23:12:44 +00:00
abs
c2276816c0 update pkg_chk to 1.85nb4 - use :U to avoid issues with old bmake - from Vladimir Yakovetsky 2007-04-24 22:16:38 +00:00
tnn
061a4cf5b0 Note addition of pkgtools/posix_headers. 2007-04-24 19:44:01 +00:00
tnn
fedc8c96f7 Add pkgtools/posix_headers version 0.4:
This package attempts to resolve deficiencies in system headers.
These deficiencies are commonly found on older operating system releases.
When use of posix_headers has been enabled on a platform, this package will
become a compile-time dependency for every package. It will provide customized
header files that take preference over some system provided ones (that may
not even exist). This happens transparently through use of buildlink3.
2007-04-24 19:35:46 +00:00
tnn
076fd593ff Update to 4.77. (hi Roland!)
Teach pkglint about OSF1 and HPUX.
2007-04-24 15:32:12 +00:00
tnn
0e7c58d751 Add native X11 support for HP-UX 11.11. 2007-04-22 11:02:18 +00:00
joerg
bbe0e4e1ae Sync with src: PRIu64 -> MY_PRIu64 + fallback value of PRIu64. 2007-04-20 14:25:13 +00:00
tnn
18f57f251c re-add fix from r1.11 after sync 2007-04-20 13:48:16 +00:00
tnn
f844d8b5e3 re-add fix from r1.42 after sync 2007-04-20 13:36:25 +00:00
tron
6d3f802271 Checking whether a file with an blank filename exists is somewhat bogus.
Improve the last change to avoid that. Bump package revision again.
2007-04-20 09:50:21 +00:00
tron
f58745f955 Fix quoting so that the code to detect the location of "mk.conf" actually
works (under Darwin?). Bump package revision again.
2007-04-20 09:25:36 +00:00
abs
3fba216752 update pkg_chk to 1.85nb1 - do not change the value of MAKECONF when building 2007-04-19 18:44:22 +00:00
abs
5588e341aa Update pkgtools/pkg_chk to 1.85:
Add a missing FAIL= to the start of pkg_install(), the absence
    of which would cause a package which had been "previously
    installed" to pick up the last value of FAIL (and sometimes be
    incorrectly marked as failed). Thanks to Martin Weber for the
    diagnosis.
2007-04-16 18:42:21 +00:00
joerg
52ba06bdee Sync with NetBSD base:
Some FTP server don't expand [] in NLIST, most noticable is vsftpd.
Avoid this by splitting the wildcard search pattern into two commands.
Sync some other minor changes.

Bump to 20070416.
2007-04-16 12:55:34 +00:00
rillig
6c9e6ae8ec Before using any variables in .if conditionaly, bsd.prefs.mk should be
included. In the special case of the BATCH variable, this does not make
a difference, since it is set via an environment variable.
2007-04-15 23:02:04 +00:00
rillig
77b2375207 Removed the "Internal pkglint errors" when parsing complicated Make
variable expressions. These expressions are skipped completely and not
checked for anything.
2007-04-15 22:58:49 +00:00
abs
ed5a5b0844 Update pkg_chk to 1.84:
Automatically use SU_CMD for pkg_add and pkg_delete if set by
	main pkgsrc and running as a non root user - based on a patch
	from Aleksey Cheusov.
2007-04-15 21:34:49 +00:00
joerg
2a722b785e When calling bootstrap-register from the bootstrap script for the
various packages, pass down PKG_PRESERVE. Remove the default setting of
PKG_PRESERVE, it makes perfect sense to install e.g. pkgtools/mtree
and be able to remove it again, if it is not an essientiel tool.

OK jlam@
2007-04-12 14:36:40 +00:00
tnn
a679efde2c add missing CVS id 2007-04-12 12:23:41 +00:00
tnn
017c8cc17d make xdec reflect files that exist on a fresh Tru64 5.1B-4 install 2007-04-12 12:09:12 +00:00
schmonz
8427e85bf2 Quell pkglint: don't forcibly hide output of shell commands in do-extract. 2007-03-24 07:13:15 +00:00
schmonz
909d575bca Grok the "scm" category. 2007-03-24 05:36:20 +00:00
rillig
f533745503 Updated url2pkg to 2.6.
Changes since 2.5:
- Fixed the regular expression that splits up the SourceForge URL.
2007-03-19 01:38:56 +00:00
rillig
79904b0bc1 Added INSTALLATION_DIRS_FROM_PLIST, MAKE_JOBS and MAKE_JOBS_SAFE. 2007-03-18 23:09:53 +00:00
rillig
ace44f5fae Removed the ONLY_FOR_PLATFORMS line. If there are platforms that
definitely cannot run pkg_select, they should be added via
NOT_FOR_PLATFORM.

Made PKGTOOLS_PATH configurable. It is now set to the value of
PKG_TOOLS_BIN.

Moved the SUBST block further up in the package Makefile.

PKGREVISION++
2007-03-16 20:22:16 +00:00
rillig
541df9e155 Updated url2pkg to 2.5.
Changes since 2.4:
* Files called *.xs (native Perl module implementations) require a C
  compiler.
2007-03-15 12:17:56 +00:00
joerg
1b6ca55b58 Sync config.{guess,sub} with mk/gnu-configure. 2007-03-12 00:48:28 +00:00
joerg
77305c28ef Sync with NetBSD base version:
- obsolete support for require scripts
- nuke support for the following options of pkg_create:
  -X (excludefile)
  -r (require script)
  -h (Force follow symlink)
- add option for pkg_create to specify additional @blddep packages.

This brings us to version 20070308.
2007-03-11 22:05:03 +00:00
rillig
8a4b673279 Added PKG_DBDIR and RUN. 2007-03-09 03:37:59 +00:00
rillig
8198675ddd INSTALLATION_DIRS_FROM_PLIST is more comfortable than specifying
INSTALLATION_DIRS explicitly. It also removes some redundancy.
2007-03-09 03:02:35 +00:00
rillig
3e25aa3847 Shortened the code. 2007-03-08 17:42:56 +00:00
rillig
9096c7d30e NetBSD has <err.h>. Fixes PR 33036. 2007-03-08 08:02:25 +00:00
wiz
c869fc8c9e Remove pkgmanpages packages, the information contained in it has been
integrated in the pkgsrc guide.
2007-03-02 09:46:41 +00:00
wiz
8192513f8f Update to today's version. 2007-03-02 06:04:30 +00:00
wiz
62e1f47645 Remove duplicate LIB_DEPENDS line and add SCRIPTDIR, NO_PKG_REGISTER, and
NO_DEPENDS.
2007-03-02 06:02:11 +00:00
wiz
fc3f7b9811 Remove support for obsolete and unused NO_PKG_REGISTER. 2007-03-02 05:54:18 +00:00
ginsbach
80edbe0594 Convert USE_GMAKE=yes to appropriate USE_TOOLS. 2007-02-23 15:29:14 +00:00
rillig
df2156eeea Explained a warning that wiz just asked me about. 2007-02-23 01:46:02 +00:00
wiz
601583c320 Whitespace cleanup, courtesy of pkglint.
Patch provided by Sergey Svishchev in private mail.
2007-02-22 19:26:05 +00:00
rillig
4ffc250c2c Added another form of sourceforge.net download URLs, as requested by
wiz.
2007-02-22 12:05:34 +00:00
rillig
e312114c7f Updated url2pkg to 2.4.
Changes since 2.3:
- When more than one directory exists in WRKDIR after extracting the
  distfile, a helpful comment is added to the generated Makefile.
2007-02-22 08:21:52 +00:00
rillig
3dde1baf1c Added the category "filesystems". 2007-02-21 01:38:53 +00:00
uebayasi
058c3e37b5 pkglint-4.76; teach emacs22{,nox}. 2007-02-20 12:38:32 +00:00
rillig
a9998c791b Fixed the detection of ": Avoid regenerating within pkgsrc". 2007-02-20 10:14:55 +00:00
rillig
9e1364fceb The IRIX identification macro is __sgi.
Rewrote the shell parser to handle backticks recursively. This would
have found the recent quoting bug in mk/flavor/pkg/depends.mk.

The RUN make(1) variable is correctly identified.
2007-02-19 12:06:03 +00:00
tonio
29ad9606ab Make sure pkg_filecheck uses db185 api 2007-02-16 22:57:09 +00:00
rillig
ce49e0fc5b Added PGSQL_PREFIX. 2007-02-15 23:53:16 +00:00
rillig
54ae1fc8ab Added a new data type for CVS Entries lines.
The ": Avoid regen" configure patch must not be committed to CVS.
2007-02-15 23:52:52 +00:00
tonio
051d9dce1e add defined check before !empty, to make bootstrap make happy 2007-02-10 15:45:21 +00:00
wiz
1c7c116e8b Sync with src. 2007-02-07 06:49:22 +00:00
reed
087c665604 Update pkg_summary(5) man page to mention how it can
be generated (from NetBSD).
Add a PKGREVISION.
2007-02-06 01:30:11 +00:00
joerg
6df0f6f093 Another wish item: configure patches should not contain the pkgsrc
magic.
2007-01-30 20:32:23 +00:00
rillig
ce89e57f1e Added apache22. 2007-01-30 18:56:46 +00:00
rillig
faf5a058fd Oops, I forgot to add the dependency to p5-enum.
That makes pkglint go to version 4.75.
2007-01-30 18:41:26 +00:00
wiz
ba797d8804 Accept kde3-1.0 in USE_DIRS. 2007-01-28 09:23:35 +00:00
rillig
0fcfab4ebe Fixed a NullPointerException.
The Perl module "enum" is handy for reducing the size of the source code.
2007-01-25 04:43:31 +00:00
rillig
c2fa5fa72d Don't warn if user-defined variables are used in .for loops. 2007-01-24 05:05:27 +00:00
rillig
cc7fbeed94 Clarified the explanation of the warning regarding the load-time
evaluation of variables.
2007-01-23 19:21:56 +00:00
rillig
d5b5fbc9f8 Some of the TODO entries have been done. 2007-01-18 18:37:38 +00:00
rillig
5acfb0b6ca Renamed BUILDLINK_TRANSFORM.* to BUILDLINK_FNAME_TRANSFORM.*, to make
clear that these variables are completely unrelated to
BUILDLINK_TRANSFORM.

Added a legacy check that catches appearances of BUILDLINK_TRANSFORM.*.

XXX: Where should incompatible changes in pkgsrc be documented?
2007-01-17 03:11:18 +00:00
rillig
5b266ca985 Now it's possible to define optional sections when checking the variable
order in package Makefiles. This allows for a legal section, which is
also added. I'm not yet sure about the correct order of all these
variables.
2007-01-15 08:45:59 +00:00
rillig
39f0e18877 Added some new variables. 2007-01-15 08:44:39 +00:00
rillig
b6c7c8977f Updated pkg_alternatives to 1.4.
Changes since 1.3:
- Added support for non-standard PKGMANDIR.
2007-01-15 02:50:06 +00:00
rillig
472c69388c Updated url2pkg to 2.3.
Changes since 2.2:
- Detect more sourceforge download URLs.
- wrksrc_files and wrksrc_dirs are looked for in WRKSRC, not in WRKDIR.
- When the URL is being read in and an EOF occurs, the program exits.
2007-01-12 21:35:52 +00:00
gdt
671b078c9d * Warn if LICENSE/RESTRICTED/NO_*_ON_* are misordered. 2007-01-11 19:09:50 +00:00
joerg
7575c0c213 From the discussion in #pkgsrc of build problems of wip/gxmms2:
Packages using lang/python/extension.mk must follow the naming scheme
or otherwise they can't be depended on.
2007-01-11 18:39:34 +00:00
rillig
2829e658f2 Mechanically replaced man/* with ${PKGMANDIR}/* in the definition of
INSTALLATION_DIRS, as well as all occurrences of ${PREFIX}/man with
${PREFIX}/${PKGMANDIR}.

Fixes PR 35265, although I did not use the patch provided therein.
2007-01-07 09:13:46 +00:00
rillig
51bd9ae06d Fixed the definition of Python-related variables. 2007-01-06 14:19:40 +00:00
rillig
15030772f7 No substitutions are needed for the pkglint manual page.
Re-added a post-install selftest to detect syntax errors in pkglint.pl.
2007-01-06 13:31:26 +00:00
rillig
ba6bc78e7a Added code to check for shared directories from the *-dirs packages. 2007-01-04 13:00:58 +00:00
rillig
d3e25da894 Fixed a little inconsistency (log_error/explain_warning). 2007-01-03 20:48:41 +00:00
rillig
0e9dbd1f6b Outside of packages, the :M* operator has to be used sometimes.
When .PHONY appears as the source in a dependency line, all targets are
considered "virtual" targets.
2007-01-02 23:01:24 +00:00
rillig
e36a2e4ab4 Converted NOT_FOR_PLATFORM and ONLY_FOR_PLATFORM from List to
InternalList, so they can be used in .for loops.
2007-01-02 23:00:11 +00:00
rillig
e68e0d458e In PYTHON_VERSIONS_ACCEPTED, all version numbers should be in decreasing
order, so that the newer ones are selected more often.
2007-01-02 22:27:44 +00:00
rillig
653a8382d0 + MASTER_SITE_GENTOO 2007-01-02 13:14:39 +00:00
joerg
1f50db5f15 PostgreSQL-7.4 support is about to be removed. 2006-12-27 15:52:16 +00:00
schwarz
69e1646f4d added hack to work around gcc issue with -O3 optimization 2006-12-24 14:07:55 +00:00
rillig
6e63d13d49 Fixed PKGMANDIR. 2006-12-19 13:28:20 +00:00
gdt
90a87f430d SUBST the path to ${MAKE}.
PKGREVISION++.
2006-12-18 12:36:17 +00:00
jschauma
ef55401d33 note a few platforms where I've confirmed this version of libnbcompat to
be working
2006-12-17 19:27:57 +00:00
wiz
af21103725 xdg-1.4 is valid. 2006-12-16 10:59:52 +00:00
joerg
58c3144236 Mechanically replace all includes of buildlink3.mk of the following
packages with the modular Xorg equivalent. Those are falling back
to the old location by default, so this commmit doesn't change
dependencies.

graphics/xpm ==> x11/libXpm
fonts/Xft2 ==> x11/libXft
x11/Xfixes ==> x11/libXfixes
x11/xcursor ==> x11/libXcursor
x11/Xrender ==> x11/libXrender
x11/Xrandr ==> libXrandr
2006-12-15 20:32:52 +00:00
joerg
f3a63b6466 DESTDIR support. 2006-12-15 17:35:20 +00:00
rillig
d69c6cc741 In buildlink3.mk files, bsd.fast.prefs.mk should be included instead of
bsd.prefs.mk.

Fixed the regular expression for buildlink3.mk files containing
PKG_BUILD_OPTIONS code.
2006-12-12 22:13:38 +00:00
rillig
9c7ddd7ed8 Added c99 to the list of known languages.
Following existing practice, the variable PKG_BUILD_OPTIONS.* may be
queried in buildlink3.mk files in the .include section, and no warning
is generated anymore.
2006-12-12 21:56:44 +00:00
rpaulo
50a36eb952 Allow build on Linux. 2006-12-07 19:10:21 +00:00
rillig
35fca5aa5f Fixed the Assertion error on .include lines that end in trailing
white-space.

Instead of including intltool/buildlink3.mk directly, a simple
USE_TOOLS+=intltool suffices.
2006-12-06 23:42:43 +00:00
wiz
2a0fd3355d Use more markup. New sentence, new line. Various minor improvements. 2006-12-06 10:41:29 +00:00
rillig
ae41f12b9e Updated url2pkg to 2.2.
Reduced the number of external calls to find(1).
2006-12-06 01:00:41 +00:00
xtraeme
e30fe0802f Ugh, wrap long lines. 2006-12-06 00:54:25 +00:00
wiz
d7690480e8 texmf-dirs is up to 1.4. 2006-12-06 00:46:27 +00:00
gdt
e9d9b95f94 add pkg_rolling-replace 2006-12-05 18:24:39 +00:00
gdt
d2d7243e5b pkg_rolling-replace does 'make replace' on one package at a time,
tsorting the packages being replaced according to their
interdependencies, which avoids most duplicate rebuilds.
2006-12-05 18:23:52 +00:00
rillig
6fee6d8ef6 Added the CHECK_* variables. 2006-12-01 21:17:08 +00:00
rillig
f9e735a070 Fixed some typos in the pkglint documentation. Reported by OKANO
Takayoshi in a private mail.
2006-11-25 20:27:42 +00:00
rillig
33830ead6b + BSD_MAKE_ENV 2006-11-22 23:05:19 +00:00
rillig
2307fa4283 PKG_SKIP_REASON is marked as deprecated, since it is usually used to
mark a package as not being able to build, due to some fatal error. I
don't see any reason _not_ to use PKG_FAIL_REASON in those cases.
2006-11-18 08:20:44 +00:00
joerg
926c76ceeb DESTDIR support. 2006-11-14 16:11:10 +00:00
jschauma
4b05d984b2 Address PR pkg/34966 as suggested by Oliver Gould and apply the same
logic to all platforms:
Some packages (such as math/gap) create wrappers based on the name of
the compiler, so ${CC} should not contain any flags.  Move flags into
CFLAGS.
2006-11-11 18:24:52 +00:00
rillig
cd832065ea Variable names don't need to be quoted. 2006-11-09 23:59:35 +00:00
rillig
bb4e6a91dc Some minor tweaks; added DESTDIR. 2006-11-09 22:29:29 +00:00
rillig
f8debf1069 + SKIP_PORTABILITY_CHECK 2006-11-09 22:26:18 +00:00
tron
40e49f88e1 Update "pkg_chk" package to version 1.83:
Do *not* use "TMPDIR" variable. If the user has already set an environment
variable "TMPDIR" it well be overwritten my the path to the directory
created by the script and passed to "make". As a result it will get
compiled into certain packages (e.g. "sysutils/dbus") which will no
longer work after the directory has been removed.
2006-11-05 21:53:27 +00:00
joerg
611e7f92de Merge add/extract.c, rev 1.39:
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.

Merge lib/plist.c, rev 1.51:
  When processing symlinks in pkg_delete and the call to readlink failed,
  it often helps to know why, so use warn instead of warnx.

Bump version to 20061103.
2006-11-03 09:35:14 +00:00
joerg
7f279c69f3 DESTDIR support. 2006-11-02 17:59:37 +00:00
joerg
5a7018c831 Add PKG_DESTDIR_SUPPORT to variable list. Bump to 4.73. 2006-11-01 09:14:45 +00:00
rillig
c57a04cdcf Added a warning that ${VARIABLES} in the DESCR file are not expanded.
(Requested in PR 34920.)

The warning about uncommitted patch files only appears when the distinfo
file is already committed.
2006-10-30 22:27:07 +00:00
erh
ea1b3e37b8 Fix pkg_tarup -a so it recurses to actually get all dependent packages.
Bump version to 1.6.6.
2006-10-29 07:50:27 +00:00
wiz
0c2e68db44 Some more HOMEPAGE/MASTER_SITES updates from Sergey Svishchev. 2006-10-28 21:29:47 +00:00
rillig
7a70e6ce93 Updated pkg_filecheck to 0.3.
Bugfix: When allocating more memory, it does not help to double the
amount if the current amount is zero.
2006-10-24 19:23:38 +00:00
rillig
89a1686950 Fixed PKGMANDIR. 2006-10-24 18:19:22 +00:00
rillig
9b4318c4ac Fixed a typo in the absolute pathname checks.
${PREFIX}/${PKGMANDIR} is preferred over ${PREFIX}/man.

{ONLY,NOT}_FOR_PLATFORM may appear multiple times in the package
Makefile.
2006-10-24 07:18:41 +00:00
abs
2486f53002 Update to 4.72: check for .tbz as well as .tgz 2006-10-23 09:19:31 +00:00
rillig
8c380e95aa Fixed a heading. 2006-10-22 05:26:41 +00:00
rillig
0e7520ad71 Absolute pathnames may appear in the form basedirvar + '/man1' in source
code.
2006-10-22 05:25:35 +00:00
rillig
a7a1d01bdf Added CHECK_FILES_SUPPORTED and some Postgres variables. 2006-10-18 20:54:22 +00:00
rillig
7b449192ed The absolute pathname /bin/sh is allowed, despite the Solaris /bin/sh.
The WRKSRC variable (among others) is checked to consist of ony one
word. The url2pkg tool had created lines like

    WRKSRC=         ${WRKDIR}/Makefile PLIST distinfo

in the past, which happened to work in most cases up to now, but really
shouldn't.
2006-10-17 21:42:46 +00:00
joerg
34eea79bcf ${MARCH_ARCH}-${LOWER_OPSYS}elf and related constructs should be fixed. 2006-10-12 13:58:48 +00:00
joerg
f75176b39c Flag a number of packages I use as supporting (user-)destdir.
apg is a bit special as it has some hardcoded ownership, so
mark that as "destdir".
2006-10-09 12:52:34 +00:00
rillig
9e1e55709c When patch files are registered in the distinfo file, but not added or
committed to CVS, a warning is printed.
2006-10-07 07:57:04 +00:00
rillig
f5f25f88de Added a check that suggests using meta-pkgs/kde3/kde3.mk instead of
hand-tuning the directories where KDE files are installed.
2006-10-06 18:58:55 +00:00
rillig
1f3af58308 Improved the heuristics for absolute pathnames. 2006-10-05 21:09:31 +00:00
rillig
0e60547a68 In package Makefiles, SITES.* should be defined right below DISTFILES.
Added an explanation for why ${DESTDIR}/foo is considered an absolute
pathname.
2006-10-05 12:25:38 +00:00
rillig
c71e131798 This package cannot use CHECK_FILES because it is one of the two that
sets PREFIX=/.
2006-10-05 08:51:59 +00:00
wiz
b6160330f7 Update MASTER_SITES and/or HOMEPAGE, from Sergey Svishchev. 2006-10-04 21:53:15 +00:00
reed
1779642046 Update PKGREVISION.
Make sure use PKG_SYSCONFDIR for the "etc" sed expression.
Also do the SUBST_SED on the configuration example file too.
2006-10-03 20:53:38 +00:00
reed
4cf5ada443 Honor PKGMANDIR insetad of hard-coded path. 2006-10-03 20:27:47 +00:00
rillig
26d41e536c Updated url2pkg to 2.1.
Changes since 2.0:

- Made the dependency detection for Perl modules work again. The code
  does not assume to be run in a special directory anymore.

- Perl modules that use the prompt() function to query the user
  interactively can be handled. All questions are assumed to be answered
  by just pressing <enter>.

- Made url2pkg more robust when interpreting the output of MakeMaker.pm.
  Many Perl modules write additional things to stdout during the
  generation of the Makefile.

- The language for the *.f files is "fortran", not "f".

- Fixed the regular expression for prdownloads.sourceforge.net links, so
  that the distfile name is properly extracted.
2006-10-02 19:39:24 +00:00
abs
dd11e141d0 Update pkgtools/pkglint to 4.71 - lintpkgsrc changes:
- Handle 'badly named' patch files
  - In the event of a distint checksum mismatch, report the affected file
    as well as package
  - If we need to call out to make to parse a makefile and it returns any
    errors, ensure we prefix the error output with the Makefile path
  - run through perltidy. Ugly, but consistent
2006-10-02 19:35:43 +00:00
rillig
19beef2685 Took over maintainership from Hubert.
Rewrote url2pkg in Perl, enhancing it in several ways:

- Packages for Perl modules using MakeMaker can be generated almost
  completely. The only thing that usually needs to be filled out after
  running url2pkg is the DESCR file.

- USE_LANGUAGES is filled automatically.

- After generating the initial Makefile, the editor is run to let the
  user edit the Makefile. These changes are preserved as much as
  possible. (This had not been the case before.)

- Extending url2pkg has been made much easier by splitting the tasks that
  do the "magic" into small subroutines and by adding a detailed
  description of what these routines are supposed to do.

Set the version number to 2.0.
2006-10-02 16:49:30 +00:00
dmcmahill
317622f197 On solaris use MANINSTALL=none instead of MANINSTALL=
This avoids problem where the plist-man.awk script sees the empty
value for MANINSTALL and sets it to the default of 'maninstall catinstall'.

Fixes install/packaging problems on solaris.
2006-10-02 16:21:33 +00:00
abs
83f9f1a996 Update pkgtools/pkg_chk to 1.82:
- Is '*' is passed to -U, unset all tags
    - Implement -p, to display all the pkgdirs for a given set of tags
2006-10-02 07:33:38 +00:00
rillig
c8293c56a2 Removed a leading "e". 2006-10-01 15:09:05 +00:00
rillig
5d92c31672 SITES.* may be used in package Makefiles. 2006-10-01 14:38:07 +00:00
dillo
de144fc2d1 This man page is in section 8, make the title say so.
From fgudin at nerim.net, thanks.
2006-09-28 09:36:44 +00:00
joerg
af88d32662 Copy XFree86 logic from x11/XFree86-libs to pkgtools/x11-links to
unbreak build of x11-links.
2006-09-27 16:41:20 +00:00
joerg
3675902ba1 Remove XFree86. 2006-09-27 15:18:12 +00:00
joerg
1f696545c6 De-recognise XFree86. Update to 4.70. 2006-09-27 15:10:45 +00:00
rillig
189adf6411 MAKEFILE has been deprecated in September, not November. 2006-09-20 23:10:54 +00:00
abs
edf8891025 Update pkg_chk to 1.81 - Add support for PKG_SUFX = .tbz - from Aleksey Cheusov in PR/34453 2006-09-20 21:54:13 +00:00
rillig
3968e0d090 Fixed the path to the manual page. Adjusted CHECK_INTERPRETER_SKIP. 2006-09-20 13:00:02 +00:00
rillig
f4a2bba0c2 It's pkg_alternatives(8), not (1). 2006-09-20 12:53:21 +00:00
rillig
4e7da9df67 Added a check for tools that are used but not mentioned in USE_TOOLS.
Since many package fail to build in exotic environments because of that,
it is worth having this check even though we are currently in a freeze.

Improved the detection of absolute pathnames once more.
2006-09-19 21:33:30 +00:00
rillig
60ec4cf0e2 Fixed a huge memory leak in pkglint. Checking the complete pkgsrc tree
took about 300 MB of memory. Now it takes 27 MB, which is still much,
but quite better.

The cause for the memory leak was that I wrote

	my ($result) = @_;

instead of

	my ($result) = ($1);

after successfully matching a regular expression. That way, pkglint
created some cyclic data structures, and since Perl does not have
garbage collection, these didn't get cleaned up.

Added some checks so that this cannot easily happen again. Also fixed
some other instances where @_ appeared in the source code.
2006-09-18 10:07:21 +00:00
rillig
bf5a09954a Updated pkglint to 4.69.
Changes since 4.68:
- Improved the checks for BUILD_DEFS.
- Improved the shell word parser.
- Improved the heuristics for detecting absolute pathnames.
- The :M* operator is only required with GNU configure scripts.

Committed during the freeze to have a unique version number that includes
the features from the last days.
2006-09-16 15:43:01 +00:00
wiz
6541dc8557 Xref pkglint. Use HTML macros. Bump date. 2006-09-16 06:37:40 +00:00
rillig
da6d93f876 The :M* operator is only needed when the package has a GNU-style
configure script.
2006-09-15 12:31:49 +00:00