Commit graph

1038 commits

Author SHA1 Message Date
seb
9a2cbf0ab0 Allow more flexibility in the handling of UNLIMIT_RESOURCES.
Each word of UNLIMIT_RESOURCES is supposed to be a knob on
ULIMIT_CMD_<word> variable which value if defined is added to _ULIMIT_CMD.
The ULIMIT_CMD_* variables are set per $OPSYS in defs.*.mk and are overridable
by the user.

Solaris' default value of ULIMIT_CMD_memorysize adjusted as suggested in PR
pkg/18087 by Jonathan Perkin <sketch@rd.bbc.co.uk>.
2002-08-28 11:06:17 +00:00
jlam
3cabf7e0ed Fix USE_FORTRAN in the USE_BUILDLINK2 case. 2002-08-27 17:35:02 +00:00
jlam
e4d02a9cf4 In print-PLIST, use "${RMDIR} dir 2>/dev/null || ${TRUE}" instead of just
using "true" at the end.
2002-08-27 06:06:38 +00:00
jlam
7230ff5dd9 PKG_SYSCONFDIR is not supposed to be settable, so change its setting from
?= to =.  Note in Packages.txt that the only variables that a user should
customize in /etc/mk.conf are PKG_SYSCONFBASE and PKG_SYSCONFDIR.<pkg>.
2002-08-26 05:17:39 +00:00
jlam
fff8372661 Pull up change in buildlink2 branch:
Rename NO_BUILDLINK2 to NO_BUILDLINK.  This better matches what it's
supposed to disable -- the "buildlink" targets.
2002-08-25 18:52:05 +00:00
wiz
e6c4e8251c Add some more sourceforge mirror sites. 2002-08-23 11:26:07 +00:00
jlam
b119dbc8ef Merge pkgsrc/mk from the buildlink2 branch back into the main trunk. 2002-08-22 08:21:26 +00:00
tron
4b4b32f248 Move "ftp.fi.netbsd.org" from "MASTER_SITE_LOCAL" to "MASTER_SITE_BACKUP".
This will reduce load on "ftp.netbsd.org" a bit and still make our
local distribution files available during outages.
2002-08-11 16:56:51 +00:00
tron
5c7aa4554d Add "ftp.fi.netbsd.org" to "MASTER_SITE_LOCAL" so that e.g. building
the "openssl" package works while "ftp.netbsd.org" is down.
2002-08-11 09:59:43 +00:00
jlam
c8a6f4234b Allow non-Darwin platforms to build perl58. We're in pkgsrc lockdown down
just prior to branching for 1.6, so this should be okay now.  I also want
to see this built in the bulk-builds for testing purposes.
2002-08-08 06:10:03 +00:00
agc
b517957acd Don't create the ${INTERACTIVE_COOKIE}s in the ${WRKDIR} - this will fail
if the interactive stage is "fetch", since there will be no ${WRKDIR} at
that time.

Instead, since ${INTERACTIVE_COOKIE}s are only used in bulk builds, create
them in the package directory, along with the related .broken.`hostname`
file.
2002-08-07 15:12:45 +00:00
jlam
28130fad6c USE_BUILDLINK_X11 is dead too with the removal of pkgtools/buildlink-x11. 2002-08-06 06:11:12 +00:00
jlam
7472947b84 Fix _JAVA_PKGBASE definition in "sun-jdk" case so that when used as a
pattern with "pkg_info -e <pattern>", we can actually match a full package
name.
2002-08-03 19:51:20 +00:00
hubertf
f65cd0defb print-PLIST:
* move redundant sed expression into variable to only maintain it once
 * properly catch grep return code in *both* cases (makes substitution
   of pkg variables in @dirrm statements / directory names work)
2002-08-03 00:15:30 +00:00
schmonz
856d2fdf3e Set JAVA_HOME correctly on Darwin. 2002-08-01 13:25:26 +00:00
jlam
fad3c804a0 * Rename _JAVA_PKGNAME to _JAVA_PKGBASE which more accurately reflects its
contents.

* Each PKG_JVM needs its own special _JAVA_PREFIX_DEFAULT hardcoded as
  there's no way to discern the subdirectory of ${LOCALBASE}/java in which
  the PKG_JVM is installed.

* If PKG_JVM == "sun-jdk", allow either sun-jdk13 or sun-jdk14 to be used,
  preferring whichever one is already installed, but otherwise using the
  best default for a given platform.
2002-07-31 14:48:03 +00:00
wiz
7c5034a857 Add "${_PATCH_BACKUP_ARG} .orig" to PATCH_DIST_ARGS too.
Fixes Solaris problem reported in pkg/17769 by Valeriy E. Ushakov.
2002-07-31 14:43:29 +00:00
grant
93c8ef6a61 back out OBJOSMACHINE stuff as it is superfluous. pointed out by
jlam.
2002-07-30 00:09:23 +00:00
jlam
fa208fe38d Invert the test for USE_JAVA. It now takes an optional value of "run"
(instead of "build").  The rationale is that USE_JAVA= is "bigger" than
USE_JAVA=run in the sense that the former adds another dependency.  For
packages that don't need the extra dependency, we can trim it off by
setting USE_JAVA more thoughtfully.
2002-07-29 22:15:02 +00:00
jlam
e2001908fc Change the semantics of the USE_JAVA variable. USE_JAVA may now take an
optional value of "build" to represent that the package needs a JDK for a
build dependency in addition to the usual run dependency on a JVM.
2002-07-29 21:45:22 +00:00
schmonz
67b37a3bac Now that multiple JDKs can be installed, provide a working default
JAVA_HOME for the given PKG_JVM.

Include tools.jar on the CLASSPATH if it exists.

From discussion with jlam. Approved by jwise.
2002-07-29 20:54:28 +00:00
grant
6bd5203ec2 add OBJOSMACHINE, to use OS version and arch specific work
directories, eg.

  work.NetBSD-1.5-i386
  work.SunOS-5.7-sparc
2002-07-29 07:25:38 +00:00
schmonz
5fe116a826 Inform USE_JAVA about the new JDK/JRE naming scheme, so that packages
that USE_JAVA can work.
2002-07-28 12:51:07 +00:00
jlam
aaade83d33 * Change the semantics of the USE_PERL5 variable. USE_PERL5 may now take
an optional value of "build" to represent that the package only wants a
  build dependency on perl.

* Add a new public variable "PERL5_PKGSRCDIR" that is either
  "../../lang/perl58" or "../../lang/perl5" depending on whether we need
  perl>=5.8.0 or not.
2002-07-24 19:42:21 +00:00
mrauch
cb20bdff4f Add a missing semicolon in the INTERACTIVE_STAGE=fetch bulk build logic. 2002-07-24 17:44:16 +00:00
hubertf
a346fa0977 print-PLIST: only substitute PKGVERSION when it really matches, i.e.
excape the "." ("1.2" -> "1\.2" etc.; hit in fonts/intlfonts)
2002-07-24 00:54:23 +00:00
cjep
bb81429b52 Add a variable SU_CMD_PATH_APPEND containing a colon separated list of
directories. When ${SU_CMD} is used, we add this list to the end of the
PATH environment variable.

This fixes PR#17532 from Hauke Fath.
2002-07-23 19:10:27 +00:00
jlam
80743a4834 Adapt to using perl-5.8.0. Perl 5.8.0 removes the need for libperl as
DynaLoader.a is now an archive of PIC objects.
2002-07-22 22:00:49 +00:00
jschauma
4130032ed4 TYpoe: 'stoping' -> 'stopping' 2002-07-22 02:33:55 +00:00
mrauch
740ad47954 Make bulk builds aware of packages with INTERACTIVE_STAGE and mark them as
"not packaged" instead of "broken".
2002-07-21 11:53:18 +00:00
jschauma
d6f2059e22 On -current, let PKG_JVM default to the same as on 1.6.
I should have done this when I added sun's jdk 1.4 originally,
but did not account for version names like 1.6[A-Z].
2002-07-20 17:01:09 +00:00
agc
358a65874e Correct two indentation nits 2002-07-18 10:21:18 +00:00
schmonz
f23c05c5e3 Add two knobs for packages: CONFIG_GUESS_OVERRIDE and CONFIG_SUB_OVERRIDE.
Example:

    CONFIG_GUESS_OVERRIDE=  ${WRKSRC}/config.guess
    CONFIG_SUB_OVERRIDE=    ${WRKSRC}/config.sub

Just before the bulk of the "configure" phase, the named files will be
replaced with symlinks to their canonical pkgsrc versions in
pkgsrc/mk/gnu-config.
2002-07-16 15:02:01 +00:00
rh
0c128e2a86 Add missing LN to PLIST_SUBST 2002-07-13 23:27:54 +00:00
grant
cc60a7b9d4 on Solaris, depend on gzip-base if GZCAT is not set, and neither
/usr/bin/gzcat nor ${LOCALBASE}/bin/gzip exist.

required for Solaris systems which do not include gzcat in the base
system.

sanity checked by Stoned Elipot <seb@netbsd.org>.
2002-07-11 15:52:35 +00:00
agc
904ea3366f In the do-fetch target, break out the check for distfiles if we're in
batch mode, into a separate target.

Call that target if we're in batch mode.

Modify the check for distfiles code to do a loop for all the
distfiles, and only print the message once at the end if the files
aren't present, and BATCH is defined.

Only check for distfiles' explicit presence if BATCH is defined.
2002-07-03 16:30:18 +00:00
cjep
9fe6747789 For interactive configure, say "Please configure manually...". 2002-07-03 06:58:31 +00:00
wiz
0c3f94f20f Deprecate USE_SSL. 2002-07-02 15:25:49 +00:00
wiz
66332a11fc Reduce chances that distinfo ends up with a bogus RCS Id or none at all. 2002-07-02 13:31:40 +00:00
agc
769153c5c4 Deprecate IS_INTERACTIVE, and introduce a finer-grained INTERACTIVE_STAGE
definition.

INTERACTIVE_STAGE can take any of the values: fetch, configure, build and
install

Multiple values are allowed: e.g. INTERACTIVE_STAGE= configure install

Explain INTERACTIVE_STAGE and its use in documentation.

Patches provided by Chris Pinnock (cjep@netbsd.org).
2002-07-02 11:26:05 +00:00
schmonz
bcc48e8a45 Register lang/sun{jre,jdk}13 as stub packages on Darwin, pointing
to the included 1.3.1 JDK. Teach USE_JAVA about this. Approved by
jwise and agc.
2002-06-30 15:01:47 +00:00
seb
b37de5b10e Add PKG_SYSCONFDIR to BUILD_DEFS.
Note: it was already as part of CONFIGURE_ENV value, this change only makes
it more "readable" IMHO.

Remove explicit addition of PKG_SYSCONFDIR to BUILD_DEFS in a couple of
Makefiles.
2002-06-28 09:05:16 +00:00
jlam
7fc61ff015 New variable GNU_CONFIGURE_PREFIX whose value is the argument to the
--prefix option passed to a GNU configure script.  It defaults to
${PREFIX}.  This should help simplify the packages out there that avoid
setting GNU_CONFIGURE=yes because they need a custom --prefix option.
2002-06-23 03:15:28 +00:00
kei
51dc28b799 forgot to commit in previous. 2002-06-23 02:23:23 +00:00
jlam
063b3c32e8 Change PKG_CREATE_USERGROUP and PKG_CONFIG so that their values are merely
defaults for the INSTALL/DEINSTALL scripts.  The environment variables of
the same name take precedence during installation of a binary package.
2002-06-22 02:48:35 +00:00
jlam
f28a0a731b In order to solve the following problems:
(1) Admins want to create users/groups on their own (pkg/17183).
    (2) Admins don't want packages to setup an initial configuration.

The bsd.pkg.install.mk-generated INSTALL/DEINSTALL scripts have been
modified to check certain PKG_* environment variables to tune their
behaviour.  This works whether installing from "make install" or from a
binary package.

PKG_CREATE_USERGROUP indicates whether the INSTALL script should
	automatically add any needed users/groups to the system using
	useradd/groupadd.  It is either YES or NO, and defaults to YES.

PKG_CONFIG indicates whether the INSTALL/DEINSTALL scripts should do
	automatic config file and directory handling, or if it should
	merely inform the admin of the list of required files and
	directories needed to use the package.  It is either YES or NO,
	and defaults to YES.

The make(1) variable INSTALL_RCD_SCRIPTS is removed.  The package rc.d
script is now handled like other config files for the package, and is
copied into place if PKG_CONFIG=YES.

The default values above reflect the current behaviour.  Setting
PKG_CREATE_USERGROUP=NO solves problem (1), and setting PKG_CONFIG=NO
solves problem (2).

To simply matters for users installing directly from pkgsrc, these
variables may also be defined in /etc/mk.conf, but behaviour at deinstall
time may be surprising.  It is *HIGHLY* recommended that these values be
set in the shell environment instead.
2002-06-20 20:15:46 +00:00
grant
94abee63c5 MASTER_SITE_PERL_CPAN, cpan.pair.com: s/by-modules/by-module/ 2002-06-17 09:11:10 +00:00
cjep
64c9e8a407 Change USE_KERBEROS to PKG_USE_KERBEROS in pkgsrc. There was a "conflict"
which the basesrc USE_KERBEROS variable. Discussed on packages@

This fixes PR#17182 from Takahiro Kambe. The problem was pointed out by
FUKAUMI Naoki on a Japanese NetBSD mailing list.
2002-06-15 21:19:59 +00:00
cjep
41ffd28765 Insist on a newer lha (xm7 failed to extract properly with an older one).
Suggested by wiz.
2002-06-15 11:28:12 +00:00
schmonz
763997df7e If ${_USE_RPATH} == "no", strip any rpaths that may have managed
to sneak into LDFLAGS. From jlam, tested a bit by billc, approved
by agc.
2002-06-10 13:28:23 +00:00