Commit graph

6875 commits

Author SHA1 Message Date
tron
a9c785eaa1 Mac OS X's Leopard "/bin/sh" doesn't support "echo -n" (apparently by
purpose because if it is invoked as "/bin/bash" it does). Use
"/bin/echo -n" instead.
2007-12-16 12:27:28 +00:00
obache
2a5240ee93 Removing '||' does not mean 'simpler' (hi rillig). 2007-12-16 02:51:24 +00:00
adrianp
b919017b3c audit-packages logic for its location depends on a variety of factors
including OS, pkg_install version and NetBSD version.  The following
should pick the correct version to run.
2007-12-16 01:49:08 +00:00
bjs
b86b1ef032 Add an nls option so that packages can make it optional. 2007-12-14 08:27:39 +00:00
rillig
74b91acea7 show-var is related to show-vars and show-subdir-var. 2007-12-13 11:57:34 +00:00
rillig
b79b4beba7 Made "bmake show-help topic=show-var" (and probably some others) work
again.
2007-12-13 11:48:38 +00:00
rillig
173c29312a Added information about the interface to this file, which can be queried
with "bmake show-all-pkginstall".
2007-12-13 11:10:42 +00:00
markd
98be5e390c Add support for kde4 (currently in wip) so that packages in wip can use
"USE_DIRS+= kde4-1.0"
2007-12-12 05:14:15 +00:00
markd
ec09af76f0 Add support for cmake as a tool (USE_TOOLS+=cmake) and for using it in
the configure stage of a build (by setting USE_CMAKE=yes).
2007-12-12 01:00:38 +00:00
heinz
c500777638 Updated list of sourceforge mirrors according to
http://sourceforge.net/project/mirror_picker.php and sourceforge.jp
2007-12-11 19:55:06 +00:00
rillig
4290fb40eb Added compatibility code for INSTALLATION_DIRS_FROM_PLIST. I had
intended that all the time, but didn't test enough. :(

Thanks to wiz for catching this one.
2007-12-10 22:49:19 +00:00
rillig
a2f9aae352 Added AUTO_MKDIRS as an alias for INSTALLATION_DIRS_FROM_PLIST. The
variable is much more comfortable than specifying all the directories in
INSTALLATION_DIRS that using such a long name for it feels like a
punishment. It also doesn't look nice in the package Makefiles, for
example:

old:
INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man8

new:
AUTO_MKDIRS=		yes

The variable INSTALLATION_DIRS_FROM_PLIST will be deprecated slowly.
2007-12-07 05:25:25 +00:00
rillig
2e6521f63c Print an understandable error message if the number of arguments for
CONF_FILES, CONF_FILES_PERMS, REQD_FILES, REQD_FILES_PERMS is wrong.

NB: The code doesn't read like "shift 5 || error_out" since NetBSD's
shell exits if a shift fails in this case, instead of just reporting an
error.

Fixes PR 37489.

I didn't fix the code in pkglint (which was suggested in the PR) since
it seems too complicated to me. There is no support for a
"MultipleShellWords" data type by now, and pkglint would have to know
that SETUID_ROOT_PERMS is of type "ThreeShellWords: Username, Groupname,
Filemode". That's too much work and doesn't look nicely.
2007-12-06 22:03:22 +00:00
tron
1f5e442207 Don't prefer "pkgsrc" versions of "MesaLib", "Xft2" etc. under
Mac OS X Leopard which ships with an uptodate version of X.org.
2007-12-05 21:38:06 +00:00
tron
66d2de41c9 Escape colons in preprocessor, compiler or linker flags while checking
their existances in other variables. This avoids parsing errors if
e.g. "BUILDLINK_LDFLAGS.<pkg>" contains a colon.
2007-12-05 21:36:43 +00:00
wiz
7512dd9d36 Revert unintended commit. 2007-12-02 12:58:25 +00:00
wiz
6bfb4a5067 Fix typo in error message. From Sergey Svishchev. 2007-12-02 12:57:32 +00:00
rillig
5bd70c5633 Removed the block comments, as they were full of redundant words. 2007-12-02 11:29:22 +00:00
rillig
9fab8079e7 Removed _INTERACTIVE_COOKIE, after asking on tech-pkg if anyone needs
it. It had only been used to change the "nerrors" variable in bulk
builds, but this variable is not used further anyway.
2007-12-01 11:11:53 +00:00
rillig
d493e10615 If a package defines FETCH_MESSAGE, show that instead of the generic
instructions.
2007-12-01 10:56:31 +00:00
rillig
3db5643622 Since the "build" target is run inside the pkgsrc barrier, "build-env"
gets the same treatment.
2007-11-30 18:54:40 +00:00
rhaen
9075c9986b Solaris SunPro Compiler 11/12 fails on Solaris 8/9 with -xc99. The header files supplied by the OS are not c99 aware, the manpage suggests the setting: -xc99=all,no_lib for Solaris 8/9.
See PR 37200
2007-11-30 16:55:28 +00:00
bjs
c4ff3e236e The interpreter check for packages which are their own interpreter,
e.g. lang/perl5, was failing.  Adding a check for ${DESTDIR}"$$interp"
fixes this.
2007-11-30 08:34:31 +00:00
rillig
67302ba713 Documented USE_IMAKE. 2007-11-30 08:27:51 +00:00
gdt
282cf8f7f1 Add comment noting that support for OLDNAME in Removed case is needed. 2007-11-29 23:35:37 +00:00
rillig
8ef5c2cbb1 More examples of "Undefined Symbol" from Solaris 10. 2007-11-29 09:13:30 +00:00
rillig
d5f54df3ce Added more keywords. 2007-11-29 08:53:14 +00:00
rillig
91b1d082d9 Print a warning for every file that has /bin/sh as interpreter, but only
on Solaris.
2007-11-28 17:00:04 +00:00
rillig
410affab94 Do not load the $cache file for every argument. Instead, load it once
and then call it as a shell function. Note that the shell function is
not called "cache", since some shells have problems when a function has
the same name as a variable.

This speeds up the wrapper by as little as 75 percent for the final link
command of editors/abiword on SunOS-5.10-sparc (before: 20 seconds,
after: 5 seconds).
2007-11-28 14:45:22 +00:00
rillig
73b5319da9 Oops, don't overflow the terminal. 2007-11-28 13:18:50 +00:00
rillig
b9163bca81 sunpro doesn't need -lstdc++. 2007-11-28 13:03:56 +00:00
rillig
ba3e0729b2 Using a single awk process instead of a pipe of four grep processes
should be both faster and easier to read.
2007-11-28 12:57:46 +00:00
rillig
3a2689c94c Added keywords for "bmake help". 2007-11-28 08:48:11 +00:00
tron
c0a2ce4a12 Modern versions of Solaris include "/bin/bash". 2007-11-28 07:45:50 +00:00
rillig
8f225edbcd Made the code a bit more readable by elimination common subexpressions. 2007-11-27 23:06:43 +00:00
seb
40ba22b280 Bump PKGREVISION to 4.
As proposed on pkgsrc-users@...

- Introduce NAGIOSDIR, defaults to VARBASE/spool/nagios, for log
and status files.

- Drop unused(?) 'nagadmin' user and group.

- Sync user and group handling with Nagios install
documentation/recommendations. Introduce the Nagios "external
command" group, NAGIOSCMD_GROUP, defaults to APACHE_GROUP. The
Nagios user should be manually added after package installation to
the NAGIOSCMD_GROUP group. Add this recommandation to the MESSAGE
file. Make the "external command directory", NAGIOSDIR/rw, owned
by NAGIOS_USER:NAGIOSCMD_GROUP.

- Use /var/run/nagios.lock as pidfile.

- Only install existing example configuration files.

- Put default values of NAGIOSDIR, NAGIOS_USER, NAGIOS_GROUP and
NAGIOSCMD_GROUP in mk/defaults/mk.conf and allow MAKECONF to
override them.

- Miscellaneous clean up and sync with the changes mentionned above.

- When deleting the package allow removal of directories shared
with other Nagios packages to fail.
2007-11-26 22:14:13 +00:00
tron
6c41167104 Define "TOOLS_PLATFORM.flex" to "/usr/bin/flex" not "/usr/bin/lex".
The later is shell script which tries to execute "<current-dir>/flex"
under Mac OS X Leopard. This resulted in an endless loop caused by
the buildlink wrappers.

This is backward compatible with at least Mac OS X Tiger where
"/usr/bin/lex" and "/usr/bin/flex" are identical.
2007-11-26 16:19:08 +00:00
adrianp
67f1366eeb +snmp
+libwww-aliases
2007-11-24 17:16:54 +00:00
obache
7e743957c1 added bdb - Berkeley DB option. 2007-11-23 12:25:14 +00:00
rillig
8589bb73de The last change didn't receive enough testing. Now it is ok to have
/dev/null as an example file, and the proper file names are checked.
2007-11-23 11:50:19 +00:00
rillig
42b63489d3 After a package is installed, make sure that the example files for
CONF_FILES and similar exist, since the pkginstall framework skips them
silently, which is not a good idea.

For example I just installed dovecot, and there was neither a
configuration file installed nor a message that a configuration file
exists at all.
2007-11-23 11:36:19 +00:00
bjs
2623b35649 Add aria2-metalink option. 2007-11-23 07:43:54 +00:00
rillig
2154cd740b + asprintf 2007-11-23 01:29:28 +00:00
tron
8947480a20 Don't try to use "/usr/bin/perl" as a tool under Darwin.
This breaks packages (e.g. "gimp") which need Perl with a certain module
that is only provided by "pkgsrc" as a build tool.
2007-11-22 16:39:47 +00:00
rillig
ec3566cb97 Use SIGUSR1 instead of SIGINT, since the latter may occur indepenently
and should be handled like everywhere else.
2007-11-22 10:08:38 +00:00
rillig
64068a6484 Exit if reduce-depends produces an error. 2007-11-22 09:59:59 +00:00
rillig
fb9095ac47 Replaced the usage message with a standard one.
"This is a" was redundant and has been removed.
2007-11-22 09:56:22 +00:00
rillig
f035607086 A little sanity checking prevents that a file called "=2.5" is created
in www/zope25-PropertyFolder because of the dependency pattern
"zope>=2.5<2.7".
2007-11-22 09:54:41 +00:00
rillig
78d783e57a Added gethostbyname and socket. 2007-11-20 18:45:07 +00:00
rillig
9a32ac35fc libnbcompat doesn't seem to be designed for easy use. One has to include
<nbcompat/config.h> manually.
2007-11-20 18:21:03 +00:00