Commit graph

3069 commits

Author SHA1 Message Date
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
jmmv
45be3f9c7a Update to 1.4:
- Sort dependencies properly so that, e.g., 2.10 is considered newer than 2.8.
  This is still a hack and might fail in some cases, but is hopefully much
  better than before.
2006-09-14 15:35:46 +00:00
ginsbach
aa846abc8c Fix typo in previous revision. 2006-09-13 18:18:53 +00:00
ginsbach
0b2cff8307 Don't try to rename pkg-comment if it does not exist. Ports no longer
use pkg-comment but have a COMMENT= in the Makefile.
2006-09-13 17:33:20 +00:00
ginsbach
a19a1eff3b Use pkgsrc-users as default MAINTAINTER. 2006-09-13 17:22:55 +00:00
ginsbach
306ae67d59 Use pkgsrc-users@NetBSD.org as default MAINTAINER. 2006-09-13 17:05:09 +00:00
schwarz
dd2de6f7ef improve imake support on IRIX 5 2006-09-10 13:44:58 +00:00
schwarz
13ea409fa1 improve support for IRIX 5 working around some bad default settings 2006-09-09 20:31:46 +00:00
obache
efb6fe7139 MAKEFILE has been renamed to MAKE_FILE. 2006-09-09 08:44:06 +00:00
rillig
fa79055deb TODO:
* Check all the shell commands to see if they are mentioned in USE_TOOLS.
2006-09-08 07:45:40 +00:00
rillig
b623f99737 Improved the heuristics for detecting absolute pathnames.
Not only CFLAGS, but also {FOO}_CFLAGS should be passed through the :M*
operator before being passed to the shell.
2006-09-08 07:45:36 +00:00
wiz
776a05be72 Reset maintainer for people who lost their commit bit. 2006-09-03 00:56:28 +00:00
rillig
6473db4be8 Made the shell word parser accept \$$ as a token. This avoids an
internal error showing up in benchmarks/netio.
2006-08-31 06:49:59 +00:00
rillig
4ee2cb47d0 The *.mk files need two passes to make the BUILD_DEFS check work
reasonably well. In the first pass, all variables that are added to
BUILD_DEFS are collected, and in the second pass it is checked whether
any remaining user-defined variables are used but have not been added to
BUILD_DEFS. This way, it does not matter in which order the variables
appear in the files.
2006-08-30 05:41:19 +00:00
joerg
49de1e68ab Revert libncompat usage and kill the use of snprintf in whirlpool and
tiger instead. Also kill bogus NULL pointer handling in both algorithms:
passing null pointers as buffers (when len != 0) or context is a serious
programming error and should result in a segfault. Bump version to
20060826. OK agc@
2006-08-29 13:43:11 +00:00
rillig
f4c2c3df56 Variable names may contain simply nested variables. This allows the
shell parser to correctly handle ${WRKSRC.${d}}, which appears for
example in geography/epsg.

Avoided an internal fatal error for files that contain RCS conflicts.
2006-08-28 12:41:49 +00:00
seb
7abfde914a For the benefit of Mr. Kite^W^Wsnprint.c add long double type detection. 2006-08-26 21:28:21 +00:00
schwarz
79d60be97e include libnbcompat on IRIX 5 in order to provide snprintf() 2006-08-26 15:39:07 +00:00
abs
f51ebc1798 Update pkg_chk to 1.80:
- Intoduce fatal_later() and fatal_later_check() and use them to clean
    up reporting unavailable package dependencies
  - Remove unused references to opt_S (reported by bad@)
  - Fix manpage reference DEPENDS_TARGET -> UPDATE_TARGET (reported by bad@)
2006-08-25 19:49:53 +00:00
wiz
91588977bb Add missing file to PLIST. Bump version. 2006-08-24 17:49:52 +00:00
wiz
dfbf866523 Fix a pasto.
Correct installation logic -- it was reversed.
Bump version number, since package was completely broken.
2006-08-24 17:46:53 +00:00
schwarz
53de6e942a make sure INSTALL gets passed to the Makefile 2006-08-19 14:38:52 +00:00
wiz
121d1f872a Remove comments, because printindex cannot handle them. 2006-08-18 23:53:30 +00:00
wiz
b7f48bab50 Uncomment directories which had no reason given for being commented out. 2006-08-17 09:55:15 +00:00
taca
4368f45ac6 Fix compile problem on gcc-4; added simply includes of <stdio.h>. 2006-08-11 14:44:29 +00:00
abs
37fcb1749e update pkg_chk to 1.79: default PKG_DBDIR 2006-08-10 08:54:44 +00:00
schwarz
ff389f044d CPP on IRIX 5 with IDO cc is /usr/lib/cpp 2006-08-06 18:59:41 +00:00
cube
2f67ea37c1 Fix -q which ate the next argument. Only document -i and -c in the
"Deprecated options" part of the manual.

PR#34145 by Dieter Roelants.
2006-08-06 12:21:09 +00:00
rillig
74a427c66c Updated pkglint to 4.68.
Changes since 4.67:
- Adjusted to the ongoing changes in the pkgsrc infrastructure.
- Many small improvements in the makevars.map file.
- Stricter checking of dependency patterns, to catch foo-*.
- Small improvement on the use of stack space due to complicated regular
  expressions.
- Many more absolute pathnames are found in patch files, no matter which
  type of file is patched.
- All user-defined variables that are used should be added to BUILD_DEFS.
- All packages that set GNU_CONFIGURE are assumed to need a C compiler.
- Instead of ${TOOL}, tool may be used directly, since the tool wrappers
  are installed very early in the build process.
- Removed the --debug option.
... and many more.
2006-08-04 18:41:11 +00:00
rillig
e6888bbd20 Added more code to the shell word parser so that it can parse variables,
in double quotes or not, inside backticks.
2006-08-04 18:32:41 +00:00
rillig
71e149a97c s/man/${PKGMANDIR}/ 2006-08-04 12:04:00 +00:00
tv
466785ba67 xpkgwedge is an in-pkgsrc tool; it doesn't use PKGREVISION. Make it 1.16. 2006-08-03 17:35:12 +00:00