Commit graph

1768 commits

Author SHA1 Message Date
agc
c2c474c2fb Be consistent throughout the file with line continuations and whitespace.
No functional changes.
2002-05-03 12:44:01 +00:00
seb
4dfe879a39 mtree' -> $$action' in _SU_TARGET 2002-04-29 09:12:20 +00:00
jlam
1bfebb4d37 Change some spaces to tabs. 2002-04-29 06:43:34 +00:00
lukem
6c3550c7e6 use www.planetmirror.com.au instead of www.planetmirror.com, so that
MASTER_SORT* does the right thing.
2002-04-29 04:17:04 +00:00
lukem
f0870e5a98 add example PKGVULNDIR entry 2002-04-26 12:56:27 +00:00
hubertf
8e1aa76a27 bin-install: set DEPENDS_TARGET=bin-install, so depends are still
installed via binaries (if possible), even if there is no binary
pkg available for the current pkg.

Implementation still allows overriding DEPENDS_TARGET=build (etc.)
to force installation of dependencies by compiling if desired.

Patch submitted by Marko Schuetz <MarkoSchuetz@web.de> in private mail.
2002-04-25 21:58:55 +00:00
jlam
925b5d6f50 If we are using the config script wrappers, we prepend their location
to the PATH so we don't have to fix so many broken configure scripts
and Makefiles that expect to find the *-config scripts in the PATH.
2002-04-25 00:03:32 +00:00
jlam
873d445762 Re-write do-patch target to fix broken behaviour where if patches/ didn't
exist, then the local patches weren't applied.
2002-04-25 00:02:41 +00:00
lukem
cc356673f0 Update examples for Australia to mainly use ftp://www.planetmirror.com/ 2002-04-23 06:16:31 +00:00
jlam
408c530541 Defined USE_X11 instead of USE_X11BASE. We don't necessarily want to
force a package to be installed into ${X11BASE} if it uses Motif.  As a
side effect, the xemacs and xemacs-current packages no longer install into
${X11BASE} but into ${LOCALBASE}, which matches what they used to do before
being converted to use Motif dialogs.
2002-04-23 02:14:20 +00:00
jlam
ff13344585 Makefile fragment to determine the endianness of the platform by checking
header files.  It defines MACHINE_ENDIAN which is one of three values:
little, big, or unknown.

This file is used in package Makefiles as follows:

.include "../../mk/endian.mk"

.if ${MACHINE_ENDIAN} == "big"
# ...big endian stuff...
.elif ${MACHINE_ENDIAN} == "little"
# ...little endian stuff...
.else
BROKEN=       "Unknown endianness"
.endif
2002-04-22 02:30:51 +00:00
jwise
f3da648a14 Fix problem where CLASSPATH was not being added to MAKE_ENV, CONFIGURE_ENV,
or SCRIPTS_ENV in non-native jdk case.
2002-04-19 17:14:44 +00:00
agc
b905c0d8de In the do-su-install target, when the ${WRKDIR} contains an outdated
version of the package, and an attempt is made to install the package,
first "make clean" and then "make build" to pick up the new version of
the package before continuing with "make install", rather than printing
an error message and dying.
2002-04-18 20:54:51 +00:00
agc
c84be07a31 When creating the ${DLIST} file in the update target, don't create the
${WRKDIR} every time with "mkdir -p" - instead, use the ${WRKDIR}
target, so that any symlinks to it are created properly.

Also, when creating the ${DLIST} file in the update target, don't pipe
the output of pkg_info -R through "tail -n +4" - simply use pkg_info -qR
to achieve the same results.
2002-04-18 15:54:34 +00:00
agc
adfe02d503 There is no point in piping the output of awk through a pipe which does
"head -1" - use awk to do the work for us.
2002-04-18 15:23:43 +00:00
hubertf
fc8b8053ee Pass X11PREFIX in MAKE_ENV
Inspired by PR 16350, sanity-checked by tron
2002-04-17 09:55:59 +00:00
jlam
b85722ef51 Generalize how the PLIST contents are generated:
GENERATE_PLIST is a sequence of commands, terminating in a semicolon,
that outputs contents for a PLIST to stdout and is appended to the
contents of ${PLIST_SRC}.

Convert the perl5 packlist handling to use GENERATE_PLIST.
2002-04-16 04:10:08 +00:00
rh
9935573961 Remove SNORT_USE_PGSQL option. This will be split out into a separate
package.  For that purpose, move most of Makefile into a new
Makefile.common.
2002-04-15 08:31:14 +00:00
rh
2842fc1305 Add a SNORT_USE_PGSQL option to compile in PostgreSQL support (and add
the appropriate dependency).  Patch provided by ww@GROOVY.NET
2002-04-14 09:49:46 +00:00
jlam
19b3f5309e Add note explaining when x11.buildlink.mk should be used. 2002-04-12 14:06:46 +00:00
hubertf
24e4552350 Allow compiling in perl support for scripts.
Patch submitted by dawszy@ailuj.openbsd.org.pl in private mail.
2002-04-12 01:50:34 +00:00
seb
2bc645d273 Somewhat tune the generation of "PLIST file" by print-PLIST target:
- remove unwanted entries earlier by using ${GREP} -v
 - substitute more specific bits before lesser ones: ${MACHINE_GNU_PLATFORM}
   before ${MACHINE_ARCH} and ${MACHINE_GNU_ARCH}
 - substitute *after* the sort so substitution does not move the
   pathnames around
 - add substitution of ${PKGVERSION}
 - substitute ${PKGLOCALEDIR}/locale (this can help actually catching PLIST,
   configuration, build, ... problems with respect to the correct locale
   directory varying from platform to platform)
2002-04-10 12:03:10 +00:00
jlam
d3dec729ba Move definition of PERL5 from bsd.pkg.mk into defs.*.mk. This is something
that is used regardless of whether perl is installed or not, and we
sometimes want its value before include bsd.pkg.mk.
2002-04-09 22:15:40 +00:00
wiz
8eafd443fc Add thai locale dir. 2002-04-09 11:28:25 +00:00
dmcmahill
544ecb6a4e add CONFIG_SHELL to CONFIGURE_ENV. This avoids picking up bash as the shell
which complains about the buildlink vaiable names containing '.' in them.
2002-04-07 17:09:57 +00:00
rh
8f6639efa4 Do not attempt to update a package (deleting the package and all its
dependencies) if IGNORE is set.  This puts the 'update' target in line
with 'install', 'package', and other targets that use the same checks.
2002-04-05 23:26:49 +00:00
fredb
607557814c Add `_tar.gz' to the list of suffices to grok for the benefit of socks5. 2002-04-05 11:39:25 +00:00
jdolecek
859ec29cbc kill locale/cz - this is incorrect and not used (right is locale/cs) 2002-04-04 18:13:39 +00:00
seb
9165b4364c Update to version 3.1.0 (lots of new features and bug fixes).
Enable this package for all platforms.

Added GAWK_ENABLE_PORTALS to mk/bsd.pkg.defaults.mk to enable/disable gawk
handling file names that start with `/p/' as a 4.4 BSD type portal file.

Changes from 3.0.4 to 3.0.5:
- bug fix release only.

Changes from 3.0.5 to 3.0.6:
- bug fix release only.

Changes from 3.0.6 to 3.1.0:
- A new PROCINFO array provides info about the process. The non-I/O /dev/xxx
  files are now obsolete, and their use always generates a warning.
- A new `mktime' builtin function was added for creating time stamps. The
  `mktime' function written in awk was removed from the user's guide.
- New `--gen-po' option creates GNU gettext .po files for strings marked
  with a leading underscore.
- Gawk now completely interprets special file names internally, ignoring the
  existence of real /dev/stdin, /dev/stdout files, etc.
- The mmap code was removed. It was a worthwhile experiment that just
  didn't work out.
- The BINMODE variable is new; on non-UNIX systems it affects how gawk
  opens files for text vs. binary.
- Gawk no longer supports `next file' as two words.
- On systems that support it, gawk now sets the `close on exec' flag on all
  files and pipes it opens. This makes sure that child processes run via
  system() or pipes have plenty of file descriptors available.
- If `--posix' is in effect, newlines are not allowed after ?:.
- Weird OFMT/CONVFMT formats no longer cause fatal errors.
- Diagnostics about array parameters now include the parameter's name,
  not just its number.
- It is now possible to open a two-way pipe via the `|&' operator.
  See the discussion in the manual about putting `sort' into such a pipeline,
  though.  (NOTE!  This is borrowed from ksh: it is not the same as
  the same operator in csh!)
- The close() function now takes an optional second string argument
  that allows closing one or the other end of the two-way pipe to
  a co-process.  This is needed to use `sort' in a co-process, see
  the doc.
- If TCP/IP is available, special file names beginning with `/inet'
  can be used with `|&' for IPC.
- With `--enable-portals' on the configure command line, gawk will also
  treat file names that start with `/p/' as a 4.4 BSD type portal file,
  i.e., a two-way pipe for `|&'.
- Unrecognized escapes, such as "\q" now always generate a warning.
- The LINT variable is new; it provides dynamic control over the --lint
  option.
- Lint warnings can be made fatal by using --lint=fatal or `LINT = "fatal"'.
  Use this if you're really serious about portable code.
- A number of lint warnings have been added.  Most notably, gawk will
  detect if a variable is used before assigned to.  Warnings for
  when a string that isn't a number gets converted to a number are
  in the code but disabled; they seem to be too picky in practice.
  Also, gawk will now warn about function parameter names that shadow
  global variable names.
- It is now possible to dynamically add builtin functions on systems
  that support dlopen. This facility is not (yet) as portable or well
  integrated as it might be.  *** WARNING *** THIS FEATURE WILL EVOLVE!
- Profiling has been added!  A separate version of gawk, named pgawk, is
  built and generates a run-time execution profile.  The --profile option
  can be used to change the default output file.   In regular gawk, this
  option pretty-prints the parse tree.
- Gawk has been internationalized, using GNU gettext.  Translations for
  future distributions are most welcome.
- New asort() function for sorting arrays.  See the doc for details.
- The match function takes an optional array third argument to hold
  the text matched by parenthesized sub-expressions.
- The bit op functions and octal and hex source code constants are on by
  default, no longer a configure-time option.  Recognition of non-decimal
  data is now enabled at runtime with --non-decimal-data command line option.
- Internationalization features available at the awk level: new TEXTDOMAIN
  variable and bindtextdomain() and dcgettext() functions. printf formats
  may contain the "%2$3.5d" kind of notation for use in translations.  See
  the texinfo manual for details.
- The return value from close() has been rationalized.  Most notably,
  closing something that wasn't open returns -1 but remains non-fatal.
- The array effeciency change from 3.0.5 was reverted; the semantics were
  not right.  Additionally, index values of previously stored elements
  can no longer change dynamically.
- The new option --dump-variables dumps a list of all global variables and
  their final types and values to a file you give, or to `awkvars.out'.
- Gawk now uses a recent version of random.c courtesy of the FreeBSD
  project.
- The gawk source code now uses ANSI C function definitions (new style),
  with ansi2knr to translate code for old compilers.
- `for (iggy in foo)' loops should be more robust now in the face of
   adding/deleting elements in the middle; they loop over just the elements
   that are present in the array when the loop starts.
2002-04-04 13:58:25 +00:00
hubertf
8d467e8297 Allow teapop to use mysql, when TEAPOP_WITH_MYSQL is defined.
Bump pkg revision.

Contributed in private mail by Charlie Root <root@gornik.tgr.lubin.edu.pl>
2002-04-03 23:10:41 +00:00
seb
d362c2a8bf Add another locale dir (he) for Hebrew. 2002-04-03 14:56:58 +00:00
seb
4e6697c2c8 Set minimum required version of the pkg_ tools to 20020218.
This is mostly to get the improved/fixed version number handling provided
by this version of the tools, but see the log of
pkgsrc/pkgtools/pkg_install/Makefile revision 1.47 for a summary of
changes.
2002-04-02 15:58:20 +00:00
agc
7de8949242 Make the "replace" and "undo-replace" targets more useful:
+ Check for the existence of pkg_tarup, and fail if it can't be found.

+ Place the binary package of the replaced-package in the ${WRKDIR},
rather than overwriting any instance in ${PKGREPOSITORY}.

+ Don't make a binary package when undoing the replacement.
2002-04-02 09:41:39 +00:00
skrll
8186bff76a Fix a bug when inferring the CXX tag which meant that for certain
libraries the following could occur

	- a.out platforms: c++rt0.o would be missing and therefore
	  global contstructors would not work.

	- ELF platforms libstdc++ and libm would not be explicitly
	  linked in.

This affected notably libqt and explains the build failure of kdelibs2 on
arm32.

Bump PKGREVISION and require it.
2002-03-26 16:31:27 +00:00
martti
68a83ffa9f Added PURE_FTPD_USE_MYSQL 2002-03-26 08:24:59 +00:00
martti
628c7dc15d Added VIM_EXTRA_OPTS 2002-03-25 08:04:04 +00:00
hubertf
7621c45c78 Rewrite REPLACE_PERL as shell-loop, so one can use shell wildcards,e.g.
REPLACE_PERL=   *.cgi *.perl *.pl

Code submitted by Amitai Schlair <schmonz@schmonz.com>
2002-03-24 14:06:22 +00:00
dmcmahill
9988a01984 if we're using ptl2, then pull in its buildlink.mk file now that one
exists rather than just adding a DEPENDS.
2002-03-23 01:24:44 +00:00
tron
105558c351 Remove depend directory file in "update" target if the deinstallation
fails because otherwise the next invokation of the "update" target will
not attempt to remove the package again. Fix provided by Aaron J. Grier
in PR pkg/15827.
2002-03-22 19:08:44 +00:00
martti
7db1d9ea11 Added POSTFIX_USE_MYSQL=YES 2002-03-22 09:01:14 +00:00
jlam
b03bad7085 Modify the generated wrapper script to honor the exit code of the wrappee.
Idea from Dan McMahill <dmcmahill@netbsd.org>.
2002-03-20 14:18:00 +00:00
jlam
db33d0c79d Disable the code added in the previous commit. It seems to be causing
problems linking against libintl in the base system (pkg/15964).
2002-03-20 14:11:54 +00:00
tron
2012c2fb1e Remove "ftp.cs.columbia.edu" from GNU master sites because the mirror
is horribly outdated.
2002-03-20 11:31:33 +00:00
jlam
28ea07c164 When replacing for ${BUILDLINK_X11_DIR}, just replace it directly with
${X11BASE} instead of checking for -I or -L in front of it.  This is okay
because ${BUILDLINK_X11_DIR} should just never appear in any installed
files regardless of its prefix.  Problem noted in private email by Mark
Davies <mark@mcs.vuw.ac.nz>.
2002-03-19 15:54:17 +00:00
jlam
54f9720d09 _LIBTOOL_ARCHIVE_TRANSFORM creates $${dest} from $${file}, where
$${file} is a libtool archive (*.la).  It allows libtool to properly
interact with buildlink at link time by linking against the libraries
pointed to by symlinks in ${BUILDLINK_DIR}.

This change has been tested by me on NetBSD-1.5ZA/i386 and by Mark
Davies <mark@mcs.vuw.ac.nz> on Solaris.
2002-03-18 17:45:34 +00:00
fredb
266c0cfd05 Add an option to disallow cleartext on the wire in "mail/imap-uw",
and while we're in here, prefix the CCLIENT_MBOX_FMT option with the
name of the package. Reviewed by hubertf.
2002-03-18 17:11:04 +00:00
jlam
387f4cee22 Back out some changes that I didn't intend to commit. 2002-03-18 15:17:55 +00:00
fredb
d9607f2757 Append "elf" to ${MACHINE_GNU_PLATFORM}, for NetBSD archs that were once
a.out but are now ELF, in a way that's consistent with bsd.own.mk in
NetBSD-current. This, incidently, makes the gcc package build again on
NetBSD-1.5.3_ALPHA/i386.
2002-03-18 05:46:42 +00:00
fredb
4407ae6f9f "ftp.cdrom.com" evidently no longer mirrors CTAN. 2002-03-17 16:44:28 +00:00
hubertf
507d240872 Allow restarting a chrooted build:
sh mk/bulk/do-chroot-build restart
2002-03-16 10:00:17 +00:00
jlam
69df149ae5 Allow INSTALL/DEINSTALL scripts to use ${INSTALL_INFO}. 2002-03-15 20:08:17 +00:00
tron
8d0306c87f Invent a new variable "PKGNAME_NOREV" which holds the package name without
the package revision added. Replace "PKGNAME" in package list with this
value because the installed software doesn't know anything about package
system revision. This fixes package list problems in e.g. the "xemacs"
package.
2002-03-15 10:05:56 +00:00
tron
58c0212d2f Partitally backout revision 1.932:
We *must* record the version of "${.CURDIR}/Makefile" because we otherwise
only record the version of the wrong "Makefile" e.g.
"x11/xscreensaver-gnome/../xscreensaver/Makefile" for the
"xscreensaver-gnome" package. This will break the update target horribly.
2002-03-15 07:16:23 +00:00
seb
5f53ef53c2 Always append to TEXINFO_SUBST_SED. It was my original intend that
a package creator can add package specifics sed commands to it.

Noted by Masao Uebayashi in private email, Thanks!
2002-03-14 10:35:23 +00:00
lukem
35dc87e356 make _PATCH_BACKUP_ARG be more useful to callers by moving "-V simple"
definition to be part of it instead of appending to PATCH_ARGS.
otherwise, $VERSION_CONTROL or $PATCH_VERSION_CONTROL would still
override -b/-z.
2002-03-14 02:28:22 +00:00
hubertf
e9be9f5f83 nuke /var/wwwoffle - pointed out by fred bruckman 2002-03-14 00:13:29 +00:00
wiz
3f676e4674 Remove one, and add four CPAN mirrors, more or less randomly chosen all over
the world.
2002-03-13 15:39:36 +00:00
hubertf
d91f40b832 Move documentation where it belongs.
Add paragraph "Setting up a sandbox for chroot'ed build" to
Packages.txt and xref it from do-sandbox-build script
2002-03-13 06:30:12 +00:00
agc
93aca3b1ec Fix PR 15755 from Simon Burge (simonb@wasabisystems.com) properly.
When constructing the build version information, avoid problems
when there is a filename with an embedded space in the directory.

With thanks to Stoned Elipot for the practical help.
2002-03-12 15:40:24 +00:00
yyamano
c3cc8ff6d3 GNU tar is /usr/bin/gnutar. 2002-03-11 12:48:52 +00:00
seb
ccccb08e18 Typo and whitespace fix. 2002-03-10 18:35:20 +00:00
seb
e9e849cc83 Add default for _GTEXINFO_PREFIX. 2002-03-10 18:34:14 +00:00
fredb
5313e358fd Some tweaks to "fetch" and "fetch-list" re: DYNAMIC_MASTER_SITES:
- - For "fetch", move the assignment of the "getsite.sh" script to a more
    natural place, to get the full benefit of, and consistent handling for,
    setting MASTER_SORT and MASTER_SORT_REGEX

- - For "fetch-list", embed the "getsite.sh" script into the generated
    script, so that the calculation can be properly done at run-time.
    ("fetch-list" also respects MASTER_SORT and MASTER_SORT_REGEX.)
2002-03-10 17:15:29 +00:00
jlam
7255689c17 Minimize the amount of stuff guarded by ${_USE_RPATH}. 2002-03-08 19:35:57 +00:00
jlam
9c900fe06a Use some new conventions (changes not user-visible):
FOO_SED is user-appendable.
_FOO_SED = ${_FOO_PRE_SED} ${FOO_SED} ${_FOO_POST_SED}
_FOO_SED is used when actually making sed(1) substitutions.

This allows tweaking _FOO_{PRE,POST}_SED to alter the total sed expression.
2002-03-08 19:33:38 +00:00
yyamano
11d1dafc2e Make fetch-list work on Darwin.
* Use ${MAKE}. On Darwin, we use bmake, not make.
* Replace PWD with WD. Darwin's sh is zsh and we can't override PWD.
2002-03-07 15:45:13 +00:00
seb
0f9f8f0a26 Whitespace fix. 2002-03-07 09:00:14 +00:00
seb
a43776a789 Mention ms-ttf-license in the list of ACCEPTABLE_LICENCES.
Add the license for the ms-ttf package.
2002-03-06 17:05:30 +00:00
seb
3094d59ff2 Do not blindly assign to EVAL_PREFIX! How come I was not bitten by this ?! 2002-03-06 13:06:53 +00:00
fredb
811a403f71 Garbage collect "check-depends", as discussed on tech-pkg. The oddly named
"check-depends" target is what used to install dependencies before fetching
any files. ("install-depends" continues to perform that function for the
other main targets.)
2002-03-06 11:37:28 +00:00
seb
7e0b35ce38 Mention graphviz-license in the list of ACCEPTABLE_LICENCES.
Add the licence for the graphviz package.
2002-03-05 13:32:42 +00:00
seb
c4120c416f Sort the ACCEPTABLE_LICENSES template entries. 2002-03-05 12:57:38 +00:00
hubertf
207d50e572 Use <pre> to surround build logs - monospaced fonts are so much more readable.
OK'd by Dan McMahill
2002-03-04 21:10:47 +00:00
fredb
2f53857f29 Generalize the handling for packages where "fetch" and "fetch-list"
only emit a message and don't actually fetch anything. This allows
us to make the output of "fetch-list" for these packages consistent
with other packages.

While we're in here, integrate DYNAMIC_MASTER_SITES with the
${ORDERED_SITES} macro. The only functional change here is that
${MASTER_SITE_OVERRIDE} is now respected. Still to do -- something
appropriate for "fetch-list" for these packages, like sourcing
"getsites.sh" into the generated script. (Well, "package", but there
are two others that do something similar in their "Makefile".)

Also eliminate the misbegotten _FETCH_ALLFILES macro -- now that only
"fetch" uses it, move it's functionality directly under "do-fetch".
2002-03-04 19:41:03 +00:00
jmc
137fef7db0 Redirect errors from grep in fake-pkg to /dev/null so complaints about not
being able to grep on a dir don't fly by and confuse people.
2002-03-04 17:21:46 +00:00
agc
9e721c1025 Add two new EXPERIMENTAL targets:
replace - this target updates a package in place, fixing up references
to and from other packages to the updated package.

undo-replace - undoes all the work of the previous replace operation.
For this target to work, the ${WRKDIR} must be preserved.

The replace target first makes a binary package of the existing
installed package, then a copy of the +REQUIRED_BY file is taken, if
it exists, and then the existing package is deleted.  The new package
is installed, and the preserved +REQUIRED_BY file is copied back into
place, using its contents to modify the +CONTENTS files of all the
packages which require it.  The undo-replace shares code with the
replace target, and does the same operation, but in reverse.

Warnings are displayed when either of these targets is used, since
they are experimental targets right now.
2002-03-04 11:56:54 +00:00
seb
27eb7cc257 Adding PLIST filtering based on MANINSTALL's content for the shake
of BSD-makefile'd packages.

By tuning MANINSTALL, passing it to a package's build process by
way of MAKE_ENV, one can retains the man related entries in
${PLIST_SRC} while keeping a correct generated ${PLIST}.  This is
mostly intended for packages being compiled on non-NetBSD platforms
when "andoc man pages" are difficult or impossible to process i.e.
depending on groff package is not realistic.
2002-03-04 11:47:25 +00:00
hubertf
ed8d4d7d99 Add SILC_CLIENT_WITH_PERL, for silc-client 0.8 and up 2002-03-03 23:29:48 +00:00
wiz
962f3ae515 Use show-all-depends-dirs-excl for build-depends-list target.
Makes e.g. "make readme" awfully faster.
TODO: Similar change for run-depends-list.
2002-03-02 16:09:14 +00:00
skrll
f948ebf12d Require the new libtool. 2002-03-01 15:59:16 +00:00
agc
192d43cb23 Fix for PR 15761 from Jonathan Perkin <sketch@rd.bbc.co.uk> - only print
the number of bytes about to be downloaded, as gleaned from the distinfo
file, if a distinfo file exists.
2002-03-01 13:16:45 +00:00
wiz
4a9fe9d374 Remove unused NEED_NCURSES code fragment. 2002-02-28 23:33:13 +00:00
fredb
8527784dd6 Comprehensive update to the fetch-list target (and friends), incorporating
many suggestions made by Bernd Ernesti on "tech-pkg". Closes PR pkg/15539.

- - Partially revert 1.895, which made 'fetch-list' ape 'fetch', so instead
    check if a file exists on the building host before emitting anything
    for it into the generated script. Update to use the new 'fetch' procedure
    on the fetching host, once it is determined that the file is needed,
    and generally clean up the output, so that it's a human readable shell
    script with comments.
- - Introduce utility target 'show-all-depends-dirs', to do the necessary
    recursing over dependencies quickly and correctly. Add a couple of
    variations to show how it's done, and bracket the whole thing with
    ".if make()", so it's invisible to the dependency graph for all the
    other targets. The key improvement over the old way, is that it utilizes
    an "awk" associative array to guarantee that no package subdirectory
    is visited twice. For the package with the hairiest dependency graph,
    "x11/gnome", this leads to something like a 1,000-fold improvement!
- - "sort -u" over the result of 'fetch-list-one-pkg' goes bye-bye. The new
    "awk" post-processor begins emitting output as soon as there is a file
    to fetch, so the user doesn't have to wait for the whole thing to finish
    before he sees anything.
- - Get rid of the old hook for non-recursing for a top-level 'fetch-list',
    which was never used. Previously, a top-level 'fetch-list' couldn't work
    anyway, because the progress reports ruined the shell script. Remove
    'fetch-list' from the targets that recurse from the top, and instead
    use a different 'fetch-list' target in "bsd.pkg.subdir.mk" to do the right
    thing. Currently, that right thing includes recursing in the single-category
    case, or if ${SPECIFIC_PKGS} is set, and not recursing in the top-level,
    all packages case (where it would be perfectly pointless).
2002-02-28 14:42:39 +00:00
agc
828c0da9d9 When constructing the build version information, avoid problems
when there is a filename with an embedded space in the directory.

Fixes PR 15755 from Simon Burge (simonb@wasabisystems.com).

Whilst I'm here, only include the build information for the package
Makefile once.
2002-02-28 11:08:55 +00:00
yyamano
9163c67246 Add _STRIPFLAG_CC and _STRIPFLAG_INSTALL to fix PR 15467.
I'll replace all STRIPFLAG in pkgsrc with STRIPFLAG_CC or STRIPFLAG_INSTALL.
2002-02-27 04:41:22 +00:00
jlam
0fbb015caf Use massively simpler method to filter out libtool archives and get rid
of the horrendous (non-portable) sed statement that did the same thing.
2002-02-26 22:24:00 +00:00
agc
df37af05ce Print the size of the distfile before it is downloaded. 2002-02-25 12:06:48 +00:00
jlam
2380ca72d4 Explicitly recognize .tar.Z files so that they don't fall through into
.Z handling.
2002-02-25 05:07:45 +00:00
jlam
30b021c13b * Turn _SHELL_EXTRACT into a "subroutine" for extracting an archive. It
extracts the contents of archive named by the shell variable
  "extract_file" based on the file extension of the archive.  The contents
  are dumped into the current directory.

* Unify the EXTRACT_CMD handling.  We now define the default EXTRACT_CMD
  to be ${_SHELL_EXTRACT} (see above).  Otherwise, if it's already defined
  in the package Makefile, then that EXTRACT_CMD is used to extract all of
  the archives.

* Rearrange the locking code so that it's localized instead of interspersed
  in the extraction code.

* Add EXTRACT_CMD definitions for files that are only compressed (foo.c.gz)
  that decompress the file into ${WRKDIR}.
2002-02-25 04:43:55 +00:00
wiz
114fd407f3 Add share/locale/is (for guppi). 2002-02-24 22:02:14 +00:00
seb
66111c6d15 Introduce new framework for handling info files generation and installation.
Summary of changes:
- removal of USE_GTEXINFO
- addition of mk/texinfo.mk
- inclusion of this file in package Makefiles requiring it
- `install-info' substituted by `${INSTALL_INFO}' in PLISTs
- tuning of mk/bsd.pkg.mk:
    removal of USE_GTEXINFO
    INSTALL_INFO added to PLIST_SUBST
    `${INSTALL_INFO}' replace `install-info' in target rules
    print-PLIST target now generate `${INSTALL_INFO}' instead of `install-info'
- a couple of new patch files added for a handful of packages
- setting of the TEXINFO_OVERRIDE "switch" in packages Makefiles requiring it
- devel/cssc marked requiring texinfo 4.0
- a couple of packages Makefiles were tuned with respect of INFO_FILES and
  makeinfo command usage

See -newly added by this commit- section 10.24 of Packages.txt for
further information.
2002-02-18 15:14:00 +00:00
wiz
588eb8cf29 Don't mention 'Letterdj' as valid PAPERSIZE, pkg/15599. 2002-02-16 01:29:05 +00:00
skrll
08bdd44549 mkdir -> ${MKDIR}
rmdir -> ${RMDIR}
rm -> ${RM} (${RM} added to PLIST_SUBST)
chmod -> ${CHMOD}
chown -> ${CHOWN}
2002-02-15 10:12:28 +00:00
hubertf
495230ed79 bin-install: use $MACHINE_ARCH over calling uname 2002-02-13 23:02:14 +00:00
hubertf
22b284ab1c n-install: use uname(1) over sysctl(1) to find out machine arch 2002-02-13 22:59:53 +00:00
abs
342971e7f0 Implement DYNAMIC_MASTER_SITES
If you need to download from a dynamic URL you can set DYNAMIC_MASTER_SITES
and a 'make fetch' will call files/getsite.sh with the name of each file
to download as an argument, expecting it to output the URL of the directory
from which to download it. graphics/ns-cult3d is an example of this usage.
2002-02-13 20:05:02 +00:00
jlam
e4c784af32 Use unproven-pthreads/buildlink.mk instead of just depending on the
package.
2002-02-08 06:24:45 +00:00
jlam
45c6c90e27 Create a new knob: PKG_SYSCONFVAR
PKG_SYSCONFVAR is the special suffix used to distinguish any overriding
	values for a particular package (see next item).  It defaults to
	${PKGNAME}, but for a collection of related packages that should
	all have the same PKG_SYSCONFDIR value, it can be set in each of
	the package Makefiles to a common value.

PKG_SYSCONFDIR.${PKG_SYSCONFVAR} overrides the value of ${PKG_SYSCONFDIR}
	for packages with the same value for PKG_SYSCONFVAR.

Package maintainers may want to set PKG_SYSCONFVAR to a common value for
related packages, e.g. all of the amanda packages set PKG_SYSCONFVAR=amanda
so that the PKG_SYSCONFDIR for all of them may be tweaked by just setting
PKG_SYSCONFDIR.amanda in /etc/mk.conf.
2002-02-07 20:34:21 +00:00
skrll
9bd4180d57 /bin/mkdir -> ${MKDIR}.
Make the print-PLIST target output ${MKDIR} also.
2002-02-05 22:39:00 +00:00
skrll
015c2e40b9 Don't hardcode /usr/X11R6 when making directories or running X based
programs such as mkfontdir use ${X11BASE} instead.

Also pick up a couple of /bin/chmod -> ${CHMOD}s
2002-02-05 22:03:54 +00:00
jlam
99cc15ede3 Obsolete SSH_CONF_DIR in favor of PKG_SYSCONFDIR. 2002-02-05 04:12:07 +00:00
martti
a3b93293ae Added SAMBA_USE_LDAP 2002-02-04 10:32:01 +00:00
jlam
2b3975b2e8 Deprecate POSTFIX_USE_SASL_AUTH in favor of more generic USE_SASL. 2002-01-31 21:18:37 +00:00
agc
e608a43e28 In the show-vulnerabilities and show-vulnerabilities-html targets, tighten
down further the regexp used to match a vulnerable package.
2002-01-29 15:07:55 +00:00
agc
f5aeb6d3be Fix PR 15395, whereby a package entry in the vulnerabilities file,
which shared a common prefix with a package being installed, would
erroneously be flagged as having a vulnerability.  (e.g. samba and
sam).
2002-01-28 20:55:26 +00:00
jlam
527f4e5d5b Make sure that the decompression/extraction programs needed are
automatically DEPENDed if EXTRACT_SUFX is set to a known suffix but
EXTRACT_ONLY is set to an empty value.  This should fix the problems for
audio/guspatches and textproc/iso8879 in the 2002-01-28 i386 bulk-build
results.
2002-01-28 19:08:18 +00:00
jlam
a1bedec55f We've changed DEPENDS=foo-* into DEPENDS=foo-[0-9]* everywhere else but
here, so correct that oversight.
2002-01-28 19:00:05 +00:00
jlam
a1d1eaa46e Prevent /etc/mk.conf from being included by BSD-style makefiles used by
packages themselves, as /etc/mk.conf may contain harmful settings for
package builds.  Just to clarify, /etc/mk.conf is still included by the
Makefiles in pkgsrc, just not by the Makefiles used to build the software
itself.  This should fix pkg/15297 by gabriel rosenkoetter
<gr@grappa.eclipsed.net>.
2002-01-27 20:01:56 +00:00
jlam
ef63cd028e MAKE_ENV is the make environment passed down to the build process. It
shouldn't be set as the environment for a make process invoked at the
package (${.CURDIR}) level during the install phase because it can contain
harmful settings.
2002-01-27 19:07:41 +00:00
jlam
22e5e6a756 Recognize how to automatically extract .shar.gz, .shar.bz2, .shar.Z, and
.shar distfiles.
2002-01-27 18:31:47 +00:00
markd
e176c1be82 x11-links version updated. 2002-01-27 10:33:46 +00:00
jlam
d4fadb8f03 Optimize the code to extract distfiles based on the extract suffix by
putting them all into one large case statement instead of successive if
statements, and by removing the creation and constant testing of a temp
file to mark when the distfile is extracted.
2002-01-25 07:16:16 +00:00
dmcmahill
a18a640ca8 For NetBSD/alpha versions >= 1.5V add -mieee to both CFLAGS and FFLAGS.
This will pass -mieee to those package which obey CFLAGS and FFLAGS.

paraphrasing an email from Ross:

The executive summary is: if i386 uses it (and
it does) then alpha should also, or some programs will SIGFPE out
on alpha when they don't on i386.

If anyone asks, the details are as follows:

The actual effect of -mieee is to put a software completion code
bit into every floating point instruction, and to put trap barrier
instructions in the code as necessary to ensure that traps are
delivered before branches or other instructions make it impossible
to trace backwards to the trapping op.

The code bits have little effect on the hardware, mainly what
happens is that when the hardware and palcode deliver a trap, they
tell the trap handler whether the faulting op had a completion
code.  If it did, the kernel is suppose to trace backwards, find
the op, and interpret it in SW, doing all the wacky ieee stuff that
most chips don't do, stuff like denormal arithmetic and the generation
of magic values (infinity, NaN) and the sticky flags.  We do all
that now except for a couple of truly obscure things that SoftFloat
didn't support and which I haven't yet added. (And these are things
that happen ONLY when you are taking overflow and underflow traps,
which no one has every really done AFAICT. If you have the default
behavior of gradual underflow and nontrapping infinity generation,
we do everything.)

This brings up the question of -mieee libraries, but that's not a
pkgsrc problem. (Except to the extent that I recommend that libraries
from pkgsrc, like everything else, also be compiled with -mieee.
And in the case of libraries, it might be worth individually
modifying the Makefile for the "not easy" case.)
2002-01-24 14:58:07 +00:00
jlam
31fdf27c0c Be more pervasive with previous change. 2002-01-23 15:02:27 +00:00
jlam
1269c18041 When copying config files, if the destination file already exists, then
tell user where the example file is located.  Patch provided by Stoned
Elipot <seb@netbsd.org> in private e-mail.
2002-01-23 15:01:08 +00:00
seb
47b83eb563 Continue the trend removing the temporary ${PKGDIR} workaround. 2002-01-23 13:05:51 +00:00
dmcmahill
eaf0cdda73 make sure FFLAGS ends up in MAKE_ENV as well as BUILD_DEFS. This allows you
to do
  make FFLAGS='-my -f -flags'
and at least the pkgs which obey FFLAGS use them.
2002-01-22 18:15:20 +00:00
jlam
b1bdb91416 Also replace for @SETENV@ (/usr/bin/env). 2002-01-22 17:46:52 +00:00
zuntum
388c4398ee Change the message
"Perhaps you forgot the -P flag to cvs co or update?"
to
	"Perhaps you forgot the -P flag to 'cvs checkout' or 'cvs update'?"
2002-01-21 21:09:41 +00:00
zuntum
0d4ac27951 Add QMAILDIR variable that defaults to /var/qmail, may be set in /etc/mk.conf
Also substitute QMAILDIR in PLIST because more packages than just mail/qmail
need it.
2002-01-21 17:31:02 +00:00
zuntum
933382a524 Add ${QMAILDIR} to MESSAGE_SUBST, as it is going to be used in all qmail-related
packages.
2002-01-21 16:31:42 +00:00
dmcmahill
0aa7588bd1 add some html markup to the .broken files (which now have .html extenstion).
The primary purpose is so when a package is broken due to broken depends,
there are links to the build logs of the broken dependencies.

Suggested by Brook Milligan on tech-pkg.
2002-01-20 03:07:05 +00:00
agc
22bb6a588b Add coarse-grained locking to pkgsrc builds, by means of a beefed
up version of the bare-bones code in PR 7590, from David Maxwell.

The definition governing the type of locking used is PKGSRC_LOCKTYPE,
which can take any of the values "none", "sleep", and "once".  The
default is "none".  If "sleep" locking is used, and process A is
building a package, when process B attempts to build the same package,
process B will sleep for PKGSRC_SLEEPSECS seconds, and attempt to grab
the lock again.

Coarse-grained locking uses the OBJHOSTNAME definition to ensure that
the PID space is regular for shlock(1) to do its work.  The
pkgsrc/pkgtools/shlock package has been provided for environments
where shlock is not standard.
2002-01-19 21:29:41 +00:00
tron
7d18240a15 Apply quoting to "${SORT_SITES_CMD}" to make Solaris's "/bin/sh" happy. 2002-01-18 22:14:09 +00:00
drochner
0c0d581f04 nuke USE_PYTHON, it's not needed anymore 2002-01-17 13:07:15 +00:00
drochner
3140425d02 if a sub-make is invoked to install a prerequisite pkg, pass it the
required pkg name (as PKGNAME_REQD)
2002-01-15 17:27:55 +00:00
wiz
baf3a7ecf5 Add zh_TW locale dir, per pkg/15250. 2002-01-15 09:26:47 +00:00
seb
f0fc6a1b7c Test before creating ${_DISTDIR} to avoid Solaris' /bin/mkdir apparent
brokenness.
2002-01-15 09:02:09 +00:00
jlam
855a73d0a1 Rearrange code so that if EXTRACT_CMD is defined, then it is used to
extract all of the files listed in ${EXTRACT_ONLY}.  This is so that a
package author doesn't have to grub through bsd.pkg.mk in order to find
how to override the extraction method.  Problem noted by Antti Kantee in
private email.
2002-01-15 00:32:12 +00:00
dmcmahill
d99a79b2eb add the OBJHOSTNAME functionality that appeared in 1.901 of bsd.pkg.mk.
When OBJHOSTNAME is set, the various cache files and log files will include
the hostname in their names.  Useful when multiple machines of the same
architecture share pkgsrc.
2002-01-12 02:25:59 +00:00
agc
cf3780e1c2 Add and document a new OBJHOSTNAME definition.
If set, the first component of the hostname (up to the first '.', if any),
will be appended to "work." to form the WRKDIR_BASENAME.

OBJHOSTNAME takes precedence over OBJMACHINE.
2002-01-11 14:41:41 +00:00
jlam
5519a9b4a6 bsd.pkg.install.mk lists many things in FILES_SUBST, and we should have
something to replace for each of those things in the header.
2002-01-10 12:05:26 +00:00
jlam
00d36e3d3e Also substitute for ${PKG_SYSCONFDIR} in MESSAGE files. 2002-01-10 02:51:30 +00:00
seb
82108506a9 Add elk package variable used to determine if X11 module is enabled or not. 2002-01-09 23:13:11 +00:00
seb
30fab924d7 In automake*-override targets make sur that find return a least a file
(/dev/null) for touch to operate on or else it fails. Also corrected
TOUCH_ARGS to TOUCH_FLAGS.
2002-01-09 12:53:46 +00:00
seb
08f51fd3b6 Only add rpath to LDFLAGS when the platform supports it. 2002-01-07 13:50:06 +00:00
fredb
3790b8d3a3 Remove support for MASTER_SITES_foo and PATCH_SITES_foo, without further
ceremony, as we can use SITES_foo instead, as is now documented in
Packages.txt. The former were only ever used by exactly three packages
(ghostscript, ghostscript-nox11, and kterm).
2002-01-06 23:41:53 +00:00
fredb
4190269fda Put back the DIST_SUBDIR handling in the _FETCH_ALLFILES macro. 2002-01-06 23:01:31 +00:00
fredb
4299add24c Re-work the fetch target(s), as discussed on "tech-pkg". The primary
motivation is to make the order that sites are hit more sane, and
especially to prevent hitting sites that aren't ever expected to have
the sought after file.

Now, ${MASTER_SITE_OVERRIDE} is always hit first. If that fails, then
the sites designated for that file, then ${MASTER_SITE_BACKUP}, are hit
(by default), but with the order subject to ${MASTER_SORT_REGEX} and
${MASTER_SORT_AWK}. The "designated sites" are usually ${MASTER_SITES}
for files in ${DISTFILES}, and ${PATCH_SITES} for files in ${PATCH_FILES}.
However, defining a variable `${SITES_foo}' in the package "Makefile"
overrides that for file "foo". [The use of ${MASTER_SITES_foo} and
${PATCH_SITES_foo}, which is currently only used by a couple of packages
for the same purpose, is deprecated, and will be shortly unsupported.]

Also eliminate redundancy in the do-fetch and fetch-list-one-pkg targets,
by making them use a single, common macro (escaped with `:Q' in the
fetch-list-one-pkg case), so "make fetch-list-one-pkg | sh" now does
exactly the same thing as "make do-fetch".
2002-01-06 20:03:22 +00:00
tron
af1baae4b9 Fix file recognition for "unbuildlink-buildlink-subst" so it recognize
shell scripts under Solaris.
2002-01-06 02:36:40 +00:00
tron
3aabf95251 Rewrite handling of "AUTOMAKE_OVERRIDE" so that files get touched in the
desired order and in an order based on who the filesystem orders things.
2002-01-06 02:03:40 +00:00
tron
8b43c84427 Remove duplicate handling of "USETOOLS". It's already defined and added
to "MAKE_ENV" in "bsd.prefs.mk".
2002-01-06 00:52:24 +00:00
tron
bc10b0147d Ignore "/usr/bin/msgfmt" under Solaris because it's not the GNU version. 2002-01-05 22:46:18 +00:00
tron
ce3792929b Use wildcard in dependence on "gtexinfo" package so that "USE_GTEXINFO"
accepts version 4.0 of the package.
2002-01-05 18:40:32 +00:00
tron
6a420f1c63 Use abstract names like "datasize" and "stacksize" in "UNLIMIT_RESOURCES"
to avoid portability problems as suggested by Jim Wise.
2002-01-05 06:46:03 +00:00
skrll
350f63106d Allow objects of the form libfoo_pic.a to be linked into shared objects as
well as the normal shared objects. This means that the new toolchain, that
links in libgcc_pic.a, will build proper shared objects again.

Bump to nb5 and make this the required version.

Fixes pkg/15120 from Matthias Scheler <tron@colwyn.zhadum.de>
2002-01-04 15:20:25 +00:00
agc
e4dbe506cc Minor indenting nit. 2002-01-04 12:25:43 +00:00
tron
14eba4b9da Add a new variable "UNLIMIT_RESOURCES" which can be used to raise process
limits for building a package.
2002-01-04 12:00:56 +00:00
jlam
ee5329b301 Explicitly set BUILDLINK_DIR and BUILDLINK_X11_DIR with = instead of ?=.
We really don't want these to change from the correct values (within
${WRKDIR}).
2002-01-03 20:00:06 +00:00
jlam
09f8eb47e6 Remove trailing \ in the sed expression for config script wrappers as Linux
chokes on the construct.  This was a pasto that's been there for a while
but was uncaught.  Thanks for David Brownlee <abs@netbsd.org> for noting
the problem and the solution.
2002-01-01 19:10:03 +00:00
wiz
cf7225d55f NS_ENCRYPTION hasn't been user-decidable for over a year now -- remove option. 2002-01-01 18:21:27 +00:00
agc
0b9363342f Darwin's patch(1) requires that you tell it to make backup files, as well
as giving it a suffix to name the backup file.
2001-12-27 21:27:07 +00:00
jlam
da525c873f (1) Create new variable "APACHE_SUEXEC_CONFIGURE_ARGS" that may contain
--suexec-* configure options that are passed directly to the Apache
    configure script.  This may be used to tune the suEXEC configuration
    in more restrictive ways, e.g. --suexec-uidmin=1000.  This solution
    is more open-ended than the fix proposed in pkg/14973.  Also, we
    don't duplicate all of the options from the Apache configure script
    in pkgsrc bsd.pkg.defaults.mk.  This closes pkg/14973 by Eric
    Schnoebelen <eric@cirr.com>

(2) For namespace consistency, deprecate APACHE_USER in favor of
    APACHE_SUEXEC_USER.  Move APACHE_USER into bsd.pkg.obsolete.mk.

(3) Create the suEXEC user when the functionality is enabled in the server
    so that CGI scripts will work properly.  This closes pkg/14903 by
    Wojciech Puchar <wojtek@3miasto.net>
2001-12-26 21:20:26 +00:00
jlam
d3009b7413 Remove excessively clever checks to allow a section to be seen only if it's
the second time this file is included.  Check for BSD_PREFS_MK instead.
2001-12-26 19:18:40 +00:00
jlam
e023ba1995 Define a symbol BSD_PREFS_MK that may be checked by Makefile fragments to
see whether they are being included from within bsd.prefs.mk or from
without.
2001-12-26 19:16:59 +00:00
jlam
c11241de17 Include bsd.prefs.mk so that INSTALL_RCD_SCRIPTS may be defined before the
relevant code in this file.
2001-12-26 15:40:32 +00:00
wiz
89fa319f1c Add another locale dir (bg). 2001-12-25 15:01:41 +00:00
wiz
dc3933cbd2 Add another locale dir (de_AT). 2001-12-25 14:42:58 +00:00
jlam
d0bd34b556 Initial implementation of pthread.buildlink.mk to transparently allow for
using either the native pthread implementation or using a package pthread
implementation instead, e.g. pth, ptl2, mit-pthreads, etc.  The only
currently supported package pthread implementation is pth as it's the only
one with a buildlink.mk file.  An example usage is:

	USE_PTHREAD=	native pth
	.include "../../mk/pthread.buildlink.mk"

or a fancier example is:

	USE_PTHREAD=	native
	.include "../../mk/bsd.prefs.mk"
	.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none")
	CONFIGURE_ARGS+= --without-pthreads
	.endif
	.include "../../mk/pthread.buildlink.mk"
2001-12-24 19:29:32 +00:00
jlam
4fe22fcdd8 Make the AUTOMAKE_OVERRIDE work for packages that use automake-1.5 and/or
autoconf-2.5* by touching some more files.  Thanks to YAMAMOTO Takashi
<yamt@mwd.biglobe.ne.jp> for pointing out the error in private e-mail.
Also list several packages on which to verify this code after making
changes to the AUTOMAKE*_PATTERNS.
2001-12-23 19:32:15 +00:00
jlam
d89437dc5f Change the way the files used by the GNU auto* tools are touched. We now
touch some files before the configure script is run, and some more
afterwards.  We touch the files afterwards since the configure script can
get modified after it is run, and touching some files afterwards prevents
them from being regenerated if they depend on the configure script.
2001-12-22 05:45:23 +00:00
fredb
9969c5d859 By popular demand, change the default screen library for "lynx" to
curses. On NetBSD-1.5.*, the appearance in an xterm is nearly the same
as with libslang.
2001-12-21 03:59:15 +00:00
jlam
05aefeaedc Teach bsd.pkg.mk how to extract all files in ${EXTRACT_ONLY} that end in
suffices listed in ${_EXTRACT_SUFFICES}.  Currently, _EXTRACT_SUFFICES has
.tar.bz2, .tbz, .tar.gz, .tgz, .tar, .zip, .lzh, and .lha.  If the file
doesn't end in any of these suffices, then we use the old code to do the
extraction.  This rids us of the mild annoyance where if you have several
distfiles, some ending in .tar.bz2, some in .tar.gz, and others in .zip,
then you have to create a post-extract target to extract all of the ones
not ending in the suffix that you designate in EXTRACT_SUFX.

I've tested this with some representative packages: archivers/gtar-base,
print/cups, www/surfraw, and print/ghostscript-nox11.
2001-12-19 23:14:01 +00:00
jlam
a1454d57c1 D'oh! I had the logic reversed for the INSTALL_RCD_SCRIPTS check. 2001-12-19 21:32:32 +00:00
wiz
f4c8fa01e4 Wildcard lha dependency. 2001-12-19 20:02:41 +00:00
jlam
49b5ebd66d Do previous without breaking package Makefiles that use RCD_SCRIPTS and
expect it to contain the list of example rc.d scripts.
2001-12-19 14:54:48 +00:00
agc
f42759a800 Add a new _OPSYS_HAS_GMAKE definition, to denote that the OS has GNU make
as standard.

Hoist the default definition of ${GMAKE} from bsd.pkg.mk into the different
defs.${OPSYS}.mk files.

A non-standard location or name for GMAKE can still be specified in
/etc/mk.conf.
2001-12-19 10:29:11 +00:00
jlam
9efcd64075 Since print/cups conflicts with another popular print package,
print/lprng, we make a new variable USE_CUPS that is used by packages to
determine whether depend on print/cups and to compile in support for CUPS.
USE_CUPS may be either "YES" or undefined.  Deprecate SAMBA_WITH_CUPS as
its purpose is superseded by USE_CUPS.  Convert net/samba and net/samba20
to use USE_CUPS and make x11/kdelibs2 respect USE_CUPS.
2001-12-18 20:22:59 +00:00
jlam
c332d7343e By default, don't install the rc.d scripts into /etc/rc.d. Despite the
fact that they don't do anything unless the appropriate variables are set
in rc.conf, people really dislike the warning emitted at startup.  For
users that do want the pkg_* tools to handle automatically copying and
removing the rc.d scripts, the mk.conf variable to set is
INSTALL_RCD_SCRIPTS=YES.
2001-12-18 19:54:00 +00:00
bouyer
8ed9cff11c Add an example of use of the french distfile mirrror. 2001-12-17 11:45:05 +00:00
tron
b19ba9582c Use "/usr/xpg4/bin/sed" instead of "/usr/bin/sed" under Solaris because
the later one has problem with very long lines which will e.g. break the
"x11-links" package.
2001-12-17 09:36:31 +00:00
dmcmahill
f68e56c389 - add 'bulk-cache' and 'clean-bulk-cache' targets to create and remove
the cache files used during a bulk pkgsrc build.

- replace the code in the build script that used to create the cache
  files with a 'make bulk-cache' call.
2001-12-17 02:32:22 +00:00
dmcmahill
6ce14a63b7 add more checks to be more robust in the face of an index file which
may not be 100% accurate.
2001-12-16 14:27:07 +00:00
agc
ccff9099bc Modify all references to PKGSRCDIR to _PKGSRCDIR, except in the external
references of the pkglint package.

_PKGSRCDIR is an internal definition in bsd.pkg.mk, and a few packages
which would like to refer to other packages in the build tree. It should
not be set by users, but neither should it stop a user from building a
package if it is defined, so make it obvious that this is the case.
2001-12-15 20:25:34 +00:00
jlam
78b49b9c42 Substitute for GREP as well. 2001-12-13 06:32:55 +00:00
wiz
9d774a36a3 Retire USE_CURSES, which was superseded by devel/ncurses/buildlink.mk, and
has now been purged from pkgsrc.
2001-12-12 16:30:04 +00:00
abs
e40b0cc41e Add LOWER_OS_VERSION to match LOWER_OPSYS, LOWER_VENDOR, and LOWER_ARCH 2001-12-12 12:31:14 +00:00
abs
21f8349674 if .tar.bz2 needs bzcat, so does .tbz 2001-12-11 16:28:55 +00:00
jlam
6d527d5c53 Substitute for HEAD and GTAR. 2001-12-10 23:02:17 +00:00
jlam
a5de71f0ad We want to touch the configure script last (after touching the source
files) in the AUTOMAKE_OVERRIDE code so as to prevent autoconf from
regenerating the configure script.  A "*" was mistakenly added in
revision 1.874.
2001-12-10 19:36:10 +00:00
martti
57bda3929e Added SASL_USE_GSSAPI=YES 2001-12-10 12:43:58 +00:00
jlam
03da0a53d5 Subst. for PERL5 in INSTALL files. 2001-12-09 09:22:29 +00:00
kristerw
4b3a1baa04 pkgtools/x11-links has been updated. 2001-12-08 23:17:18 +00:00
hubertf
2dfc71380d Treat PKGREVISION=0 as if it wasn't set (-> add no "nb0") 2001-12-08 02:12:38 +00:00
abs
1ff09b25bf remove : at end of if exists() 2001-12-07 09:52:57 +00:00
martti
3b68fb9b50 Added optional IPv6 support for Cyrus. 2001-12-06 09:50:12 +00:00
agc
3d43fa67e2 Add support for OS X-style dylibs when creating the derived PLIST file. 2001-12-05 16:42:46 +00:00
seb
1339fe73d0 Fix of commands invoking {USER,GROUP}ADD so that '-{u,g}' and '{user,group}id'
are two distinct shell words.
Reviewed by Johnny C. Lam.
2001-12-04 21:05:06 +00:00
jlam
478cba00bb By default, prevent invocation of GNU "auto*" driven by the generated
Makefiles during the build process by touching various auto{conf,make}
source files to make them up-to-date.  Packages that require regenerating
the configure script and Makefile.in files should make the appropriate
calls to auto{conf,make} in a pre-configure target.  This allows the
various targets listed in ${_CONFIG_PREREQ} to modify the generated files
without triggering the GNU auto* tools and having the modifications be
overwritten.
2001-12-04 06:14:57 +00:00
martti
936a0c4a88 Added POSTFIX_USE_INET6 2001-12-03 06:20:22 +00:00
kent
0a244f3f6a Add POSTFIX_USE_SASL_AUTH.
Rename POSTFIX_PCRE to POSTFIX_USE_PCRE.
2001-12-03 04:51:08 +00:00
wiz
1a9a466f05 Add support for distfile-specific master sites, as requested in pkg/7471.
Syntax:
MASTER_SITES_completefilename=	http://specific.master/site
and similarly for PATCH_SITES.
Convert print/ghostscript-nox11 and x11/kterm to take advantage of this.
2001-12-02 21:29:20 +00:00
jlam
e1a97d1b32 Support automatically calling the INSTALL script during installation. This
currently only occurs for packages that use bsd.pkg.install.mk.

There are two new targets, pre-install-script and post-install-script, that
default to doing nothing.  The order of targets called for a "make install"
is:
	pre-install-script
	pre-install
	do-install
	post-install
	post-install-script

The new targets are defined in bsd.pkg.install.mk to call the INSTALL
script with the PRE-INSTALL and POST-INSTALL options.
2001-12-02 03:11:35 +00:00
jlam
e29d306201 The *_POST_SED variables became private in bsd.buildlink.mk. 2001-12-02 02:58:35 +00:00
hubertf
2541962f5b Catch errors while running printindex 2001-12-01 12:40:52 +00:00
hubertf
0d78b9168b there's no need to abort this whole script if one pkg brings up an
error.
2001-12-01 12:32:08 +00:00
jlam
28dc06397c Create ECHO_BUILDLINK_MSG for printing buildlink diagnostics. It's just
set to '${ECHO_MSG} "=>"' for now.
2001-11-30 17:21:54 +00:00
jlam
f64db488c6 Factor out code that substitutes for text in files into a macro target.
Less cut-and-paste, more code sharing.  Also comment the file a bit more.
2001-11-30 17:14:14 +00:00
jlam
142b319a6d Move code from end of the do-configure target that performed the
LIBTOOL_OVERRIDE steps into a separate do-libtool-override target.  Create
a new variable _CONFIGURE_POSTREQ that currently lists do-libtool-override.
Also add some documentation for the two _CONFIGURE_* variables:

_CONFIGURE_PREREQ is a list of targets to run after pre-configure but before
	do-configure.  These targets typically edit the files used by the
	do-configure target.

_CONFIGURE_POSTREQ is a list of targets to run after do-configure but before
	post-configure.  These targets typically edit the files generated by
	the do-configure target that are used during the build phase.
2001-11-30 05:03:06 +00:00
jlam
b7c7ffb871 Move the REPLACE_PERL code into a separate configure pre-requisite target
"replace-perl", instead of keeping it as part of the do-patch target.  Now,
a "make patch" will result in just the patched sources.
2001-11-30 03:48:14 +00:00