Commit graph

6758 commits

Author SHA1 Message Date
jlam
ae9b935fd0 * If PLIST_SRC is explicitly set to an empty value in a package Makefile,
then automatically generate a PLIST that says "${PKGNAME} has no files".

* If PLIST_SRC and GENERATE_PLIST are not set in a package Makefile,
  and no PLIST files exist, then fail during the package build with
  PKG_FAIL_REASON.

* Remove "intentionally empty" PLISTs again.

Now, the easy way to say that a package installs no files is to just
add the following to the package Makefile:

	PLIST_SRC=	# empty
2007-10-25 22:00:39 +00:00
rillig
a10504d8a1 simpler includes. 2007-10-25 18:27:05 +00:00
jlam
38c496d6c0 Re-add "intentionally empty" PLISTs for meta-packages and other packages
that directly manipulate empty PLISTs.

Modify plist/plist.mk so that if the PLIST files are missing and no
GENERATE_PLIST is defined, then the package fails to build.
2007-10-25 17:49:45 +00:00
jlam
66e67631a0 Allow packages to have no PLIST files whatsoever. If such a package also
does not set GENERATE_PLIST, then automatically generate a PLIST that
says:
	@comment ${PKGNAME} has no files.
2007-10-25 16:46:14 +00:00
bjs
e9c8dffc33 Add links-zlib option, quell pkglint warning from www/links. 2007-10-22 05:46:19 +00:00
adrianp
64dfe76316 Rename PKGTOOLS_VER to PKGTOOLS_VERSION and use that everywhere
Export PKGTOOLS_VERSION so that genreadme.awk can use it
This will sync the output between './mkreadme' and 'make readme'
2007-10-20 13:35:12 +00:00
dsainty
ece7c88dfb Allow a package to use its custom group so long as the group is in the
(new) UNPRIVILEGED_GROUPS list.

In addition, the value of UNPRIVILEGED_GROUPS is defaulted to all the
groups the installing user is a member of, in a similar mold to
UNPRIVILEGED_GROUP and UNPRIVILEGED_USER.

This allows non-root installations of packages that have special group
requirements but no special user requirements, so long as the installation
user has been given the necessary group membership.

Raised on tech-pkg @ 2007/10/14.
2007-10-20 06:57:17 +00:00
rillig
034b8390a8 Reverted the last changes, which factored out some definitions that are
usually the same on the supported platforms.

The reason for having duplicate code in these files is to make it easier
to port pkgsrc to a new platform: You just have to copy one of the
existing platform files and edit the values in it. With some values
factored out, you would have to look at one more file.

Pointed out by agc@.
2007-10-19 13:41:34 +00:00
rillig
f53c1ce2ee Factored out the parts that are common between all the supported
platforms, mainly because it wouldn't have made sense to document the
variables in one of those files, but they need to be documented
somewhere.

Added the file defaults.mk, which now serves as the reference document
which provides useful default values and _explains_ the variables.
2007-10-18 21:52:23 +00:00
rillig
b2e71313c3 Made the .include lines simpler. 2007-10-17 10:43:36 +00:00
rillig
21cf860699 Accept all licenses in DEFAULT_ACCEPTABLE_LICENSES if the user is only
using the += operator, not the simple = operator, in mk.conf. That way
we can mark packages as having open source licenses without disturbing
the users.
2007-10-17 10:37:43 +00:00
bjs
530590485b Add ares and cares asynchronous resolver library options, used by net/aria2, but could be common to others 2007-10-17 09:47:22 +00:00
is
0596912f74 Handle more variants of the position independent code flag from Solaris.
This is needed for Xaw3d. Fix suggested by joerg@.
2007-10-17 07:30:10 +00:00
tnn
24d5b54409 Fix abusers of LOWER_OPSYS to check OPSYS or MACHINE_PLATFORM instead. 2007-10-16 23:48:58 +00:00
wiz
029e9b6376 Remove some legacy support after branching 2007Q3. 2007-10-16 21:32:59 +00:00
tnn
772f8281eb Allow PKGLOCALEDIR to be overridden. 2007-10-16 12:11:25 +00:00
tnn
85c3c33db0 The previous commit needs all platforms to be correct about
separating LOWER_OPSYS and LOWER_OPSYS_VERSUFFIX, since numbers are now
removed from LOWER_OPSYS when forming MACHINE_GNU_PLATFORM.
Fix the remaining to platforms: Interix and IRIX.
2007-10-16 11:51:21 +00:00
tnn
ae9f32a8e5 OSF1 and HPUX: Separate the version component from ${LOWER_OPSYS}
into ${LOWER_OPSYS_VERSUFFIX}.
When assigning GNU_MACHINE_PLATFORM, strip numerical characters from
LOWER_OPSYS. (final component is eg. osf5.1 not osf15.1)
2007-10-16 11:34:16 +00:00
rillig
7a16551a71 Added the variable CCACHE_BASE, so that a ccache other than the one
installed by devel/ccache can be used. This is especially important for
cross-builds.

Documented IGNORE_CCACHE.

Fixed the double use of the directory ${WRKDIR}/.ccache, which was used
both as wrapper directory and as cache directory.
2007-10-16 09:33:29 +00:00
rillig
a4361cd6f5 Switched two words, so that the version number of the package appears to
the right instead of the (strictly) redundant word "found".
2007-10-14 07:42:31 +00:00
joerg
0b4fba23f9 Ignore post-hyphen parts of the Linux kernel version similiar to
DragonFly and FreeBSD. It seems like Linux people love those...
This addresses the first part of PR 37100.
2007-10-13 19:38:53 +00:00
rillig
6521357648 The "debug" variable was often used like "if [ $debug = yes ]; then ...;
fi". There is an easier way to solve the same problem with much less
code.
2007-10-13 17:46:12 +00:00
rillig
de3c265e94 The --database option doesn't exist. 2007-10-13 17:29:26 +00:00
rillig
6ae88c613d Made the code simpler and documented it. 2007-10-13 13:49:19 +00:00
dsl
d24555b956 Fix the .include lines so that make looks in the right place first.
Remember .include "foo.mk" is looked for (first) in the directory that
contains the makefile being processed (like in C), so remove all the
${.PARSEDIR} and ../ sequences that just cause grief.
2007-10-13 11:04:15 +00:00
tron
37836fbbc2 Explain "dnsrbl" and "spf" used by "milter-greylist". 2007-10-11 18:49:53 +00:00
tv
acf643f5a5 Add $HOME/.pinepwd support by default; bump PKGREVISION. Option "pinepwd"
can be disabled to remove the behavior again.

In spite of UW's "recommendations" against enabling this, it should be up
to the sysadmin and user whether to use the rope to build a bridge or
hang him/herself.  PC-Pine has it enabled by default; there's no reason
besides FUD to make the Un*x build any different.
2007-10-11 13:14:48 +00:00
rillig
3eba70a2da Rewrote the comments on REQD_FILES to be accessible via "bmake help". 2007-10-10 11:42:36 +00:00
rillig
85575fe696 Added _VARGROUPS. 2007-10-10 02:37:13 +00:00
rillig
ac64ea2785 AIX has nothing to do with NetBSD-1.5. 2007-10-09 20:39:39 +00:00
rillig
1e1c37d2e2 Added _VARGROUPS. 2007-10-09 20:34:48 +00:00
martti
bd986edbc7 Remove trailing spaces. 2007-10-09 19:19:08 +00:00
rillig
f60e7ea91d Fixed CVS Id and trailing empty lines. 2007-10-09 14:33:25 +00:00
rillig
e32f6e30d6 Provided some reason for having PKGMANDIR and PKGINFODIR. And, by the
way, MANINSTALL isn't user-settable.
2007-10-09 14:31:31 +00:00
rillig
996a2bf60c typo 2007-10-09 11:31:46 +00:00
rillig
0c31da43e2 Added _VARGROUPS. 2007-10-07 21:48:30 +00:00
kano
abdb54b351 fix obsolete URLs for www.NetBSD.org
close PR pkg/37071
reviewd by xtraeme@
2007-10-07 12:59:11 +00:00
rillig
8832ece985 Added lots of XXX that should be cleaned up when the compiler framework
is rewritten the next time.
2007-10-05 22:09:09 +00:00
rillig
6ea2bde2b6 I often want to know which directories pkgsrc is using. 2007-10-05 21:03:39 +00:00
joerg
d05706a374 When linking with XLC on AIX, force -brtl to get linkage behaviour we
expect from other platforms.
2007-10-05 18:19:45 +00:00
heinz
fd36c09d91 Additional pattern matching NetBSD-3.1_STABLE-i386, forgotten in the
last commit (Thanks to Jukka Salmi for noting this).
2007-10-03 08:56:07 +00:00
heinz
83ae2b7b40 Added NetBSD 3 to the list of platforms which need pthreads linked into
the application if it uses dlopen().
This change was triggered by the longstanding bug that mod_perl (due to
perl itself) was built with threads but apache was not, thus leading
to incompatibility between apache and mod_perl.
Whether NetBSD 4 needs to be added as well is still an open question.
2007-10-02 16:20:05 +00:00
rillig
6ded5eb97b Some useful keywords for "bmake help". 2007-10-01 22:32:45 +00:00
rillig
6560c76f0c Documented the currently available features and added _VARGROUPS. 2007-10-01 11:47:00 +00:00
rillig
e4e9db758a Added CVS Id. 2007-10-01 10:08:20 +00:00
rillig
36d9ee0a85 Fixed the comments a little bit.
Hey Joerg, since you made the non-modular Xorg obsolete, you could have
at least changed the comments in this file, reflecting the change to
modular Xorg.

Now, please document here how these files are really meant to be used,
since you know it better than me.
2007-10-01 07:21:44 +00:00
rillig
bedf33485e Why don't we use pkg_info -qL instead of pkg_info -f? 2007-10-01 06:46:37 +00:00
rillig
a4dbfbcae3 MANINSTALL is _not_ user-settable. 2007-09-30 12:56:24 +00:00
rillig
5f3f47d00c More variables. 2007-09-30 12:25:48 +00:00
rillig
b8d6f5ddcb Outside of .for loops, there is no _t_ variable. Hi joerg. 2007-09-30 12:22:44 +00:00