Commit graph

5411 commits

Author SHA1 Message Date
jlam
9c8b5ede43 Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
2006-03-04 21:28:51 +00:00
rh
a3aaea7dfe Remove planetmirror as a gnustep mirroring site. 2006-03-04 00:04:38 +00:00
joerg
530f1cacf5 Make GNU_CONFIGURE_PREFIX the default prefix for GNU_CONFIGURE_MANDIR
and GNU_CONFIGURE_INFODIR. Add the latter for symmetry.
2006-03-02 19:15:37 +00:00
rxg
f02cc5338d tweak. 2006-02-27 12:14:50 +00:00
ghen
0e74f8adf3 Remove description and default for the obsolete PURE_* variables. 2006-02-24 10:14:36 +00:00
tron
7aab4e005f Only add "fonts.(alias|dir|scale)" to "CHECK_FILES_SKIP" if a package
is using "pkginstall.mk" to handle font installation.

This fixes one of the many false positives created by "CHECK_FILES",
in this case affecting the "xservers" package.
2006-02-23 14:38:07 +00:00
wiz
e643466c5d Add man/ru/*. 2006-02-22 21:42:05 +00:00
wiz
5daaa98485 Drop trailing whitespace. 2006-02-22 21:38:55 +00:00
rillig
c68eda5945 Instead of passing only the path to the tools to CONFIGURE_ARGS, pass
the complete command. This fixes problems when EGREP is defined as "grep
-E" instead of "egrep".
2006-02-21 17:39:32 +00:00
adrianp
28554c4f65 Add .tar.bz support 2006-02-19 15:38:23 +00:00
rillig
7db088da96 Added SITES.${foo} as an alias for SITES_${foo}. The latter will be
deprecated after the 2006Q1 branch.
2006-02-18 15:37:22 +00:00
wiz
aad076d3ad Remove deprecated and now unused file. 2006-02-18 10:02:36 +00:00
wiz
84df0e4aa1 Remove type1inst log file; improve empty dir detection;
needed by fonts/intlfonts, ok@ jlam.
2006-02-17 19:32:48 +00:00
wiz
177382d089 Fix typo in type1inst depends line. 2006-02-17 19:31:33 +00:00
wiz
5db18ae16b Add nl_BE and sv_SE locale dirs for gourmet. 2006-02-16 18:14:45 +00:00
abs
76428b00f5 mirrors.cloud9.net seems unreliable - drop down the list of MASTER_SITE_PERL_CPAN 2006-02-16 11:19:17 +00:00
reed
b7ba80cac2 DragonFly has native /usr/bin/gtar so add TOOLS_PLATFORM.gtar. 2006-02-15 20:02:30 +00:00
rillig
bca88fe217 Only write the terminating HTML code to the ${_BROKENFILE} if the
package is really broken.
2006-02-13 14:55:26 +00:00
rillig
efd0e15ce9 The security/kth-krb4 package does not install bin/ftp anymore (since
February 2004), so it doesn't conflict with bootstrap-pkgsrc.
2006-02-12 05:00:33 +00:00
rillig
d9f528e7fb Added "pre-build>" identifier to two echo commands. 2006-02-11 23:54:25 +00:00
rillig
5258ae8fb8 Renamed the `restart'' variable to `resume'', as that is what the
variable does.
2006-02-11 21:44:16 +00:00
rillig
c04d1cf1cf Fixed double quoting of _BROKENWRKLOG. 2006-02-11 11:46:41 +00:00
ross
239c3f6d14 When returning "..is not an acceptable TeX version.." also identify
which version(s) _are_ acceptable.
2006-02-11 03:00:11 +00:00
jlam
aba46732d5 Teach the tools framework about various gettext-tools: gettext, msgfmt,
and xgettext.  These are supplied by devel/gettext-tools if not present
in the base system.
2006-02-11 00:23:24 +00:00
wiz
dbe9cfb6a4 Add es_NI locale, for gnucash-devel. 2006-02-10 17:43:31 +00:00
rillig
cf9992988e A small step in the direction of valid HTML for the build log files. 2006-02-10 12:21:16 +00:00
shannonjr
b9b7e90faa Bump '_GCC_DIST_VERSION' to '3.4.5' to match lang/gcc34 2006-02-10 11:26:41 +00:00
rillig
91f9cc1a62 Indented the variable definitions more consistently. 2006-02-10 10:41:58 +00:00
wiz
5ded6b1c5a Describe libofx option. 2006-02-09 21:45:39 +00:00
rillig
d846e3c2b5 When in "set -e" mode, the Solaris /bin/sh exits when "cd" fails, even
if it occurs as the condition of a "while" or "if", or in combination
with && or ||. This, of course, introduces a race condition if someone
removes the directory between the two "cd"s. The result would be that
the bulk build terminates, but that's not a big issue, as in this case
there must be something much more severely broken.
2006-02-07 21:34:48 +00:00
jlam
15d65cd972 Info pages don't always end in ".info" as noted in PR pkg/32699. Fix the
PLIST handling based on the suggestion in the PR by Johan Danielsson.
This restores the behavior from the old PLIST code.
2006-02-07 19:18:42 +00:00
jlam
8651991fd4 Fix typo in comment. 2006-02-07 18:43:02 +00:00
jlam
4ed0831994 Provide default values for various variables if they're not present in
the shell environment array ENVIRON.
2006-02-07 18:42:38 +00:00
tv
239bd12708 Set required libtool version to 1.5.22nb1, to skip regression issue in the
original 1.5.22 package.
2006-02-06 18:58:33 +00:00
rillig
cd3132099e warning: escape sequence \.' treated as plain .' 2006-02-05 16:21:07 +00:00
rillig
b723cdb4c4 plist-info.awk:80: warning: escape sequence \.' treated as plain .' 2006-02-05 16:12:56 +00:00
rillig
3297636963 - Added "set -e" at the top of the file to prevent uncontrolled execution.
- Added "set -u" at the top of the file to prevent spelling errors.
- Renamed UNZIP to UNZIP_CMD, since that is used by the rest of pkgsrc.
- Found a singleton use of $extract_options and replaced it with
  ${EXTRACT_OPTS_LHA}.
- Took the default assignment for TMPDIR out of the block. All other
  entries are tools.
- Removed unnecessary variables.
- Make sure that distfile can always be resolved, even if the current
  working directory is changed.
- Provide default values for all EXTRACT_OPTS_* variables, as close as
  possible to the point where they are used.
- Replaced all "$@" with ${1+"$@"} to avoid errors when no parameters are
  given.
- Made the removal of the temporary file for .tar extraction more robust.
2006-02-04 18:06:47 +00:00
rillig
09e7dbca5e Added the KEEP_BUILDLOGS variable. If it is set to "yes", the build logs
of successful builds are not removed, only renamed. This variable will
be useful for examining the warnings that appear during the bulk builds
but are thrown away because the package builds fine. This feature is
experimental and thus not enabled by default.
2006-02-04 01:08:25 +00:00
rillig
2aa47ceaea If a package is still up to date, it doesn't matter if it is currently
installed or not. So there is no need for two different messages. (They
had been necessary in revision 1.1, though.)
2006-02-03 20:47:06 +00:00
joerg
afe110c086 .tar.z is a valid tar extension. 2006-02-03 11:22:12 +00:00
rillig
b11d1504d0 Replaced jlam's initial sketch with one in which the parts are arranged
in a much simpler way, which hopefully makes the wrapper framework less
frightening to the pkgsrc developers. Added some additional notes.
2006-02-02 23:08:31 +00:00
rillig
19488e75a4 If the replace-interpreter program cannot find a file, a warning is
printed.
2006-02-02 21:15:46 +00:00
joerg
d9221c21a4 Fix unrar usage: the command to extract is 'x', without hyphen. 2006-02-02 14:28:17 +00:00
joerg
3152d1d992 Don't include define lower opsys version for the host name, e.g. use
i386-pc-dragonflybsd instead of i386-pc-dragonflybsd1. Saves a few
forks and execs and makes DragonFly more homogenous with NetBSD.
2006-02-02 13:46:37 +00:00
rillig
0cca385f2a Added the bulk build ID to the subject line of the report mail. It had been
${BUILDDATE} before, which has disappeared with the REPORTS_* change.
2006-01-30 20:06:51 +00:00
rillig
c22e7cd031 Don't test(1) and cd(1), cd(1) directly. As long as "set -e" is not
activated this prevents unexpected behavior.
2006-01-29 23:07:04 +00:00
dmcmahill
b358a2cd82 add a missing .PHONY: Now if you do something like
cd pkgsrc/foo
 touch fetch
 make fetch

you get the correct behaviour.
2006-01-29 01:39:01 +00:00
wiz
c76dd1866e Add zh_HK locale for gtk2+-2.8.11. 2006-01-28 22:55:16 +00:00
jlam
63b6d811e1 Actually heed the value of IMAKE if it is set by the user. 2006-01-28 00:32:31 +00:00
xtraeme
5274ee7f50 Add mjpegtools-simd option. 2006-01-25 10:02:27 +00:00
xtraeme
052431aa39 Remove mjpegtools-cmov options... deprecated. 2006-01-25 08:31:21 +00:00
rillig
0af03625f2 The CHECK_INTERPRETER_SKIP patterns may be either for absolute pathnames or
for pathnames relative to ${PREFIX}.
2006-01-24 22:17:12 +00:00
rillig
b7de3baf8d In the FTPHOST compatibility mode, there was a slash missing when
constructing REPORTS_DIR out of FTPHOST and FTPURL.
2006-01-24 19:19:01 +00:00
jlam
03451a917b Ensure that decompress_cat and tarprog always have vaild default values
in the case where the user makes bad option choices on the command line.
2006-01-24 15:26:06 +00:00
jlam
b032c82c21 If the package directory doesn't exist, then return a non-zero code. This
allows us to distinguish the case where everything is what we expect, and
any deviations from that main case.
2006-01-23 18:38:27 +00:00
xtraeme
a83256b22c Add MASTER_SITE_MYSQL with a bunch of mirrors from FreeBSD, and use
it in the mysql packages.
2006-01-23 17:57:47 +00:00
wiz
6b00839b12 Handle *.ZIP the same way as *.zip -- fixes fonts/cyberbit-ttf extraction. 2006-01-23 17:52:02 +00:00
jlam
e0d46069a6 Instead of accumulating _ALL_DEPENDS_PKGSRCDIRS, accumulate _ALL_DEPENDS
instead -- this keeps more information around.
2006-01-23 15:01:39 +00:00
rillig
bc677ecae9 gzcat needs the full command, not only the pathname, in case it is
${GZIP} -cd.
2006-01-23 14:43:50 +00:00
rillig
f6609e47f8 The ../../mk/scripts/extract shell program does not work with Solaris'
/bin/sh. Fixed by invoking it via ${SH}.
2006-01-23 14:19:08 +00:00
rillig
50b7e85526 Made all sentences in the comments start with an upper-case letter and end
with a period.
2006-01-22 21:36:28 +00:00
jlam
64000a0f19 SUS says awk's delete command only deletes array elements, not the array
itself.
2006-01-22 16:54:13 +00:00
tonio
c746fe9467 move the PLIST SUBST from tex.buildlink3.mk to tetex?-bin/buildlink3.mk
This should fix bulk build for teTeX1 packages
2006-01-22 16:45:30 +00:00
jlam
ae4a2129c3 While walking the dependency graph, push the dependencies onto the
stack in the reverse order that show-depends-pkgpaths outputs them.
This makes the top element of the stack the first child dependency
that was marked as "pushed".  This change orders the default "postfix"
output of this script in such a way that for any package listed in
the output, there is no earlier package that depends on it.

In other words, you can take the default output and install from first
to last and never need to install any dependencies, because any
dependencies are guaranteed to have already been installed earlier.
2006-01-21 22:16:13 +00:00
jlam
d04be0cdcb duh... stacks are LIFOs not FIFOs. 2006-01-21 21:46:24 +00:00
jlam
6a485fcc01 Don't write ${FOO:Mbar} == "bar", when !empty(FOO:Mbar) will suffice.
In this case, "FOO" is "INTERACTIVE_STAGE".
2006-01-21 21:32:51 +00:00
jlam
b9431606d0 Set EXTRACT_CMD_DEFAULT to the default extraction command that invokes
the "extract" script.  This allows custom EXTRACT_CMD settings to still
invoke ${EXTRACT_CMD_DEFAULT}.
2006-01-21 19:39:22 +00:00
jlam
fd7b3b4b47 Allow using standard input for the archive contents for tar and shar
extraction.
2006-01-21 19:26:09 +00:00
jlam
d9e6b299d6 Use /usr/pkgsrc/mk/scripts/extract to do extraction instead of using all
that Makefile code to determine the right extraction command to use.
This change removes EXTRACT_CMD.<suffix>.
2006-01-21 18:55:10 +00:00
jlam
c7dd4d5b8f Fix the case where -X excludefile is used so that we don't error out trying
to remove "".
2006-01-21 18:21:08 +00:00
jlam
9e65705d03 Teach the extract script how to exclude files specified on the command
line from extraction when using tar (it already knew how to do it for pax).
2006-01-21 18:01:26 +00:00
jlam
53a8e34fec Teach extract how to extract *.z files using gzip. 2006-01-21 16:48:10 +00:00
jlam
42c1f7217d Teach the extract script a "-d dir" option to extract into a specific
directory.
2006-01-21 16:40:19 +00:00
rillig
f8c8696542 Fixed pkglint warnings. 2006-01-21 15:44:23 +00:00
jlam
e5ae84bc32 Fix up the comments, and add a fall-through for unrecognized archive
formats.
2006-01-21 15:33:05 +00:00
jlam
91a276733e Fix a weird newline error (probably cut-and-paste error). 2006-01-21 14:44:34 +00:00
jlam
a43daa0f30 unzip uses UNZIP as a special environment variable to denote the options
to pass to unzip.  While this is stupid, it's still the reality, so we
must not set UNZIP in the environment when calling unzip.  Rename "UNZIP"
to "UNZIP_CMD" to point to the path to the unzip binary.
2006-01-21 14:40:31 +00:00
jlam
f6a5617420 Fix other instance of _ZOO -> _ZIP and remove a debugging line. 2006-01-21 14:31:56 +00:00
jlam
722d39d511 unzip should be using EXTRACT_OPTS_ZIP, not *_ZOO. 2006-01-21 14:23:08 +00:00
rxg
e8e59e9c3d Added http://downloads.sourceforge.jp/ in MASTER_SITE_SOURCEFORGE_JP. 2006-01-21 11:49:57 +00:00
rillig
1278e33918 - Added a new top level file that saves the REPORT_BASEDIR from the first
call to the mk/bulk/build script. This is to allow restarting the bulk
  build without getting confused by the various timestamps that occur
  during a bulk build. It also fixes some problems where the text/plain
  report had ended up in a directory different from the other files.

- Changed the default filename for the text/plain report from
  "pkgsrc-results-${BUILDDATE}.txt" to simply "report.txt", as the
  ${BUILDDATE} variable didn't give a hint to when the bulk build had been
  started, which is often more important than when the bulk build stopped.

- Changed the way to specify the directory and the URL where the bulk build
  reports are made available. See

      http://mail-index.netbsd.org/tech-pkg/2005/12/05/0002.html

  for details. Specifying the directories using the FTPHOST and FTPURL
  variables will be possible for some months, after which it support for
  it will be dropped.
2006-01-21 11:29:31 +00:00
rillig
71cd38615d Whether a missing interpreter is a warning or an error depends on whether
the _file_ is executable, not the _interpreter_.
2006-01-21 10:13:25 +00:00
rillig
e9f81c65bc Unquoted SUBST_MESSAGE.*, as this is no longer needed. 2006-01-21 10:10:42 +00:00
rillig
a47edae107 Depending on whether a file is executable or not, it is an error or a
warning if its first line starts with "#!", and the following word is
not an existing file. The package devel/apr installs some *.exp files
that start with "#!", but are not intended to be executed.
2006-01-21 10:04:44 +00:00
jlam
863c8a3454 Teach the extract script to simply copy the distfile over to the
current working directory by default if it can't figure out what type
of archive it is.  This handles the most common case of overriding
EXTRACT_CMD in package Makefiles, which is to copy a C file or a Perl
script over to the work directory.

Also, modify the script to allow the file format to be specified on
the command line via a -f option, which will force the extract script
to interpret the archive as the specified a format.  This covers the
case where there is a distfile with an unusual file extension that is
actually in well-known format, and we would like to just tell the
extract script which format this is.
2006-01-21 05:24:36 +00:00
jlam
6f807e3cce Teach this script a default extraction method for *.bin files (which are
what Sun packagse its JRE/JDKs as).  While here, cleanup up the comments
slightly.
2006-01-20 23:58:49 +00:00
jlam
338850bba1 Rename EXTRACT_ENV.bin to EXTRACT_ENV in preparation for a reimplementation
of how distfiles are extracted.  EXTRACT_ENV is a more generic name
and will be applicable for all extraction commands.
2006-01-20 23:55:02 +00:00
jlam
81db182ecc Rename the following variables to reduce the number that we need to track:
EXTRACT_CMD_OPTS.bin		->  EXTRACT_OPTS_BIN
	EXTRACT_CMD_OPTS.lha		->  EXTRACT_OPTS_LHA
	EXTRACT_CMD_OPTS.rar		->  EXTRACT_OPTS_RAR
	EXTRACT_CMD_OPTS.tar		->  EXTRACT_OPTS_TAR
	EXTRACT_CMD_OPTS.tar.Z		->  EXTRACT_OPTS_TAR
	EXTRACT_CMD_OPTS.tar.bz2	->  EXTRACT_OPTS_TAR
	EXTRACT_CMD_OPTS.tar.gz		->  EXTRACT_OPTS_TAR
	EXTRACT_CMD_OPTS.tbz		->  EXTRACT_OPTS_TAR
	EXTRACT_CMD_OPTS.tbz2		->  EXTRACT_OPTS_TAR
	EXTRACT_CMD_OPTS.tgz		->  EXTRACT_OPTS_TAR
	EXTRACT_CMD_OPTS.zip		->  EXTRACT_OPTS_ZIP
	EXTRACT_CMD_OPTS.zoo		->  EXTRACT_OPTS_ZOO
	EXTRACT_CMD_OPTS_tar.gz		->  EXTRACT_OPTS_TAR
2006-01-20 23:41:29 +00:00
jlam
f14f207bfd Support listing files/patterns for exclusion in an "excludefile",
which is correctly parsed and translated into the correct syntax for
the underlying tool.
2006-01-20 22:26:12 +00:00
jlam
e08f70e543 Remove the old PLIST-handling code after bulk building has shown the new
PLIST module works correctly.
2006-01-20 20:17:07 +00:00
jlam
e9396cdb62 Add some whitespace for readability. 2006-01-20 20:00:44 +00:00
jlam
3afa428cae Fix processing of -t tarprog. 2006-01-20 20:00:15 +00:00
jlam
348fa15438 First pass at a script that replaces many of the variables, loops and
logic in bsd.pkg.extract.mk.  This script "knows" how to extract files
depending on their file extension.
2006-01-20 18:00:45 +00:00
rxg
117614fc7d Added MASTER_SITE_SOURCEFORGE_JP definitions. 2006-01-20 13:50:57 +00:00
jlam
f6808df1ba Move more "patch"-related variables and targets out of bsd.pkg.mk and into
bsd.pkg.patch.mk.
2006-01-19 20:32:17 +00:00
jlam
4a3e4a25bc Move more of the "extract"-related variables and targets out of bsd.pkg.mk
and into bsd.pkg.extract.mk.
2006-01-19 19:35:25 +00:00
jlam
d4a3fc56e6 Fix a typo in the comment. 2006-01-19 17:24:44 +00:00
jlam
0533f0f79e Add a catman page to the script comments to clarify how this script
should be used.  Also, do a minor reordering of lines so that the logic
is more clear.
2006-01-19 17:22:26 +00:00
jlam
536698c7d7 Fix antoher cut and paste (tabs-to-whitespace) bug. 2006-01-19 16:24:51 +00:00
jlam
6cd9d27066 Change leading spaces into a tab to fix clean if WRKOBJDIR is defined. 2006-01-19 16:19:37 +00:00
jlam
15e61bbe84 * Split out the "clean" targets and variables and put them into a separate
file pkgsrc/mk/bsd.pkg.clean.mk.

* Reimplement the clean target so that we don't need to invoke a separate
  make process just to do clean-depends.

* Reimplement clean-depends using a pipe to avoid command-line length
  issues.
2006-01-19 16:11:10 +00:00
rillig
79e148d60b Made the program name in the DIAGNOSTICS section not appear emphasized. 2006-01-19 10:21:12 +00:00
jlam
4f06dd939b Remove some unnecessary parens... we don't need to invoke a new shell
just to run the depends-walk command.
2006-01-19 00:40:00 +00:00
jlam
19a4f23ea1 Move the following targets from bsd.pkg.mk to bsd.utils.mk:
show-depends-dirs
	show-all-depends-dirs
	show-all-depends-dirs-excl

While we're here, reimplement them using the new pkg_paths and
depends-depth-first.awk scripts.  As a side effect, this speeds up
the execution of these targets by around 5-15% depending on the
complexity of the dependency graph.

NOTE: This *does* change the behavior of these targets slightly because
      the output is now newline-separated instead of space-separated,
      and the order of the output lines doesn't match the original
      targets because the dependency graph is now walked depth-first
      instead of breadth first.
2006-01-18 20:18:04 +00:00
jlam
c7da3f7718 Remove unused "show-root-only" target. 2006-01-18 19:12:54 +00:00
jlam
1de033d120 Add a "-s pkgsrcdir" option that allows specifying the path to the pkgsrc
directory tree on the command line more easily.
2006-01-18 18:21:56 +00:00
jlam
ca35caf06f Modify the show-depends-pkgpaths implementation so that we don't assume
package directories specified in DEPENDS lines begin with "../..".  The
new standalone script pkgsrc/mk/scripts/pkg_path will canonicalize them
into package paths relative to ${PKGSRCDIR}.
2006-01-18 18:03:08 +00:00
jlam
eb3653b4a8 whitespace nit. 2006-01-18 17:43:08 +00:00
jlam
8eef20de06 Pass MAKEFLAGs to the depends-depth-first.awk script, which will be
used by the "make show-depends-pkgpaths" process to short-circuit some
of the rather lengthy computations that are spread throughout bsd.pkg.mk
and files included by bsd.pkg.mk.  This causes the script to speed up
noticeably.

Also, rename the _DEPENDS_DEPTH_FIRST_CMD variable to _DEPENDS_WALK_CMD
for brevity and to allow for other implementations in the future.
2006-01-18 03:58:19 +00:00
jlam
5c5ac03ec1 Create a standalone awk script, depends-depth-first.awk, that encapsulates
the code that performs the dependency graph traversal (in depth-first
fashion).  This script has a hook that allows executing a shell command
line upon visiting a dependency's package directory in either prefix
or postfix order, and may be used to simplify the code in bsd.pkg.mk
that iterates over dependencies.

This awk script requires the target "show-depends-pkgpaths", which is
defined in a new Makefile pkgsrc/mk/bsd.utils.mk.  This file should
accumulate "utility" targets that current exist in bsd.pkg.mk, i.e.,
"helper" targets for various actions.
2006-01-18 00:10:07 +00:00
dmcmahill
d188673373 Rework the way the vulnerabilities list is displayed a bit to
remove the vulnerability ID from the pkg-vulnerabilities file
which managed to creep into the README.html output.
2006-01-17 23:52:17 +00:00
jdc
a82b7c9750 tsort creates temporary files in the current directory, so change to the
BULKFILESDIR directory before running it.  We can now bulk build with a
read-only pkgsrc.
2006-01-17 22:35:13 +00:00
wiz
921b38d138 Remove superfluous quotes around SUBST_MESSAGE. 2006-01-16 23:35:29 +00:00
tron
422b96cdc7 (At least) Mac OS X Tiger comes with a fine working "tbl" command. 2006-01-16 21:50:46 +00:00
rillig
04f4fbc7c7 Allow "=" characters to appear in a line that comments out a package in a
category Makefile. Adjusted the other regular expressions to express more
clearly what is meant.
2006-01-15 23:33:23 +00:00
seb
060fe0fd29 Signature police. 2006-01-14 00:58:37 +00:00
jlam
1591f24e5d Make use of ${.TARGET} within a target instead of re-specifying the
file again.
2006-01-13 23:09:39 +00:00
jlam
8da0cdded2 Remove the show-shlib-type target since it's no longer needed ... the
same value is returned by querying for SHLIB_TYPE via show-var, so
convert the only remaining use of show-shlib-type to just use SHLIB_TYPE.
2006-01-13 22:37:02 +00:00
jlam
cefd18eb01 Force compression and decompression to avoid the default behavior of
gzip/gunzip where hard-linked files aren't compressed/decompressed.
2006-01-13 20:03:26 +00:00
jlam
8e0e10d3fa Initial commit of a new module that encapsulates all of the code
for manipulating PLISTs.  This module is not used by default pending
more widespread testing -- currently the variable _USE_PLIST_MODULE
must be defined in /etc/mk.conf to enable its use.

The main features of the new PLIST module are:

    (1) Splits out the PLIST-handling code from bsd.pkg.mk into a
	separate "plist" module.

    (2) Splits out giant, multi-line awk scripts stored in make
	variables into separate awk scripts that may be joined
	together to post-process PLISTs.  Each of these awk scripts
	consolidates the processing for one set of files, e.g.,
	man pages, info pages, etc., and is more easily commented
	than a make variable.

    (3) Splits out the print-PLIST code from the regular PLIST code
	since they have no common pieces (print-plist.mk vs.
	plist.mk).

    (4) Completely re-implements the shared-library handling to be
	more efficient.  Along the way, this also fixes a problem
	for Mac OS X users where the PLISTs incorrectly contained
	absolute paths.

    (5) Completely re-implements the info-file handling so that we
	can migrate from INFO_FILES definitions to just adding
	info/foo.info entries in the static PLISTs.

    (6) Adds commented-out support for automatically compressed or
	decompressed info page entries based on the value of MANZ.
	These changes will be activated after texinfo.mk has been
	replaced by something that is built using the more modern
	primitives now available in pkgsrc.

    (7) Move the file compression logic into a separate script
	"doc-compress" that compresses or decompresses files while
	minding symlinks.  This script is now called by bsd.pkg.mk
	to do the "autmoatic man page handling".  In the future,
	it will also handle the "automatic info page handling" and
	possible others.

In general, the idea is to move stuff out of the Makefiles and into
separate files where we don't need to worry about quoting rules
and where each file can have a separate history of commits.  This
simplifies the makefile logic (especially in terms of readability)
and also simplifies maintenance of the code.
2006-01-12 23:43:56 +00:00
jlam
5e68addc70 Set INFO_DIR, the location for info files, to its default value of
"info" here instead of in pkgsrc/mk/texinfo.mk.  This allows its value
to be used even when texinfo.mk isn't included.
2006-01-12 22:30:56 +00:00
jlam
7a25bc452c Fix a typo that was causing imake, mkdirhier and xmkmf to not be created
as tools in the tools directory.
2006-01-12 19:26:02 +00:00
joerg
bebc25606c Require xpkgwedge 1.15. 2006-01-12 19:05:06 +00:00
jlam
9acbdab507 Don't ever depend on xpkgwedge if we're building xpkgwedge. 2006-01-12 18:39:13 +00:00
jlam
3c30c2b533 Re-implement some code that was lost in revision 1.144 so that IMAKE may
be overridden to point to the path of the imake binary to use.
2006-01-12 18:29:03 +00:00
joerg
80a031e2e2 Remove branch tag from DragonFly version, so that OS_VERSION matches
autoconf's normalisation.
2006-01-12 14:57:19 +00:00
rillig
1eb828e8b4 Documented CHECK_INTERPRETER in the header comment. 2006-01-12 11:13:13 +00:00
rillig
d3b0a7ae64 Added the target check-interpreter to bsd.pkg.check.mk, which checks
that the interpreter of "#!"-style scripts exists. It is disabled by
default, and can be enabled by setting CHECK_INTERPRETER=yes. As for the
other check-* targets, CHECK_INTERPRETER_SKIP is a list of shell globs
that can be used to to skip certain files.

Ok'ed by jlam.
2006-01-12 00:40:19 +00:00
schmonz
24b4409868 Introduce DJB_SLASHPACKAGE, defaulting to NO. /package is DJB's
scheme for the installation and maintenance of software. Over time,
more software will follow /package.

For now, setting DJB_SLASHPACKAGE to YES has two effects:
* DJB_CONFIG_DIR is set to ${WRKSRC}/src
* A do-build target is defined to call package/compile.
2006-01-11 09:26:52 +00:00
schmonz
ae8a1c813a Since qmail and related packages install into ${PREFIX} (and have
for a while now), we no longer need to add ${QMAILDIR} in PLIST_SUBST
or MESSAGE_SUBST. Noticed by jlam.
2006-01-11 05:48:19 +00:00
jlam
5be03dad31 Add back USE_PKGINSTALL as a knob to force the pkginstall framework
to be used so that +INSTALL and +DEINSTALL scripts are generated.
This can be used in cases where it's not possible or not desirable to
use the auto-detection mechanism to decide whether the pkginstall
framework is needed.
2006-01-11 04:42:12 +00:00
adrianp
8363cf6134 Add missing ircd-hybrid zilinks option 2006-01-10 21:06:22 +00:00
christos
d6f119448c Also set ABI like SGI does; from Benjamin Shi. 2006-01-10 16:58:04 +00:00
seb
c3372b07b1 Don't be silly! A copyright ? On this ? I must have been stoned. 2006-01-10 00:01:16 +00:00
jlam
228eeacad9 Teach the tools framework about the ``ksh'' tool, provided by the
shells/pdksh package if it doesn't exist on the base system.
2006-01-09 18:32:52 +00:00
schmonz
4fc54b33cc Add a missing trailing backslash to continuatificate a shell snippet
to the following line.
2006-01-09 18:00:04 +00:00
jlam
4593519ecc Teach the tools framework about "gsoelim", which is the soelim tool from
a groff distribution.
2006-01-08 23:00:00 +00:00
jlam
ff83ba02a2 Consolidate groff-supplied tools into one section. 2006-01-08 22:09:05 +00:00
tonio
56edd1a62d Make teTeX3 the default TEX_DEFAULT
bump PKGREVISION where necessary

Move PKG_TEXMFPREFIX and PKG_LOCALTEXMFPREFIX definitions to
teTeX?/buidlink3.mk, so that packages may include
print/teTeX1-bin/buildlink3.mk directly (however, using teTeX/module.mk do not
allow that)
2006-01-08 14:00:11 +00:00
abs
f97bfe9e95 permit postgresl81 2006-01-08 12:53:53 +00:00
rillig
f134edb22f Reverted the change from 1.29 to 1.30, as it had led to build failures in
the "unwrap" class.
2006-01-08 01:07:35 +00:00
rillig
1f20649016 Added two missing :Q operators. One of them affects how the
SUBST_MESSAGE is printed. The ones that have been defined with "quotes"
in their Makefiles are printed with quotes (of course). This is the
consequence of the design pattern "quote-exactly-where-necessary", which
in fact should be have been applied to pkgsrc as a whole, but still isn't.
2006-01-07 23:27:41 +00:00
rillig
1c209076ce - Added pbc_checkpathname, pbc_checkbasename, pbc_checkurl.
- Modified pbc_checkexisting{dir,file} to use pbc_checkpathname.
2006-01-07 22:27:56 +00:00
markd
e4b8fa5966 Add R's index files, that are regenerated when a local module
is added, to CHECK_FILES_SKIP.
2006-01-07 19:51:42 +00:00
rillig
2e71854a23 Removed the use of ${FILE_CMD} from the substitution framework. The
detection whether a given file was a text file or some other file had
been unreliable. In the recent bulk builds, all of the warnings that had
appeared because of that unreliable detection had been false positives.
2006-01-07 18:43:05 +00:00
xtraeme
9816c7dd27 * Remove mysql-4.0.x now the packages were removed.
* Change default mysql pkg to 5.x.
2006-01-07 10:47:39 +00:00
christos
764aec25ab set the LIBABISUFFIX to 64 for amd64... 2006-01-06 22:47:24 +00:00
wiz
9e99db8474 Describe lablgtk and lablgtk2 options. 2006-01-06 16:28:36 +00:00
wiz
dc560ec778 Depend on cdrtools instead of cdrecord. Bump PKGREVISION.
Update some messages/comments.
2006-01-05 23:29:04 +00:00
joerg
f8ae6026cd Revert unintended part of last commit. 2006-01-05 23:18:26 +00:00
joerg
c750987c17 Adjust comment about SUBST_FILES to match reality:
absolute file names work as well.
2006-01-05 23:16:01 +00:00
dmcmahill
f372299bb4 Fix a bug which caused the README.html generation to fail when the packages
directory did not exist.  Now the generation completes with a warning that
no binary packages were found.  Reported in PR pkg/32351.
2006-01-05 22:19:42 +00:00
schmonz
094c4b78c1 Add a wee bit of infrastructure to improve how we deprecate broken
packages from branch to branch:

When a package is considered broken (for whatever reason) at branch
time, we'll mark it with BROKEN_IN=name-of-branch. At the next
branch, we can easily determine which ones have remained broken and
remove them.

BROKEN_IN is visible to users iff a build fails, when it appends a
warning message to the above effect.

With feedback from dillo. Reviewed by jlam.
2006-01-04 04:25:47 +00:00
gdt
3320ff2b5c Enhances comments to better explain to package authors how this file
should be used, and to motivate the "use only the default version"
approach.  Based on private email with jlam@, but of course errors are mine.
2006-01-03 18:33:07 +00:00
wiz
d5a0e27f9a In the bin-install target, instead of running pkg_add for every
BINPKG_SITES entry separately, construct an appropriate PKG_PATH
and call pkg_add only once. Patch from Chapman Flack in PR 30929.

Use PKGNAME_REQD when installing package dependencies.
Patch from Chapman Flack in PR 30954.
2006-01-03 17:26:56 +00:00
jlam
d7e2d97754 Instead of patching the generated config.status script, patch the GNU
configure script itself so that the generated config.status script
does what we want (just exit if asked to "recheck").  This ensures
the timestamp for config.status is earlier than the timestamps for
the files that config.status generates (Makefile, config.h, etc.).

This fixes some problems where some packages end up "rebuilding" as
part of the install target, which makes the rebuilt files owned by
root and makes cleaning the work directory fail.
2006-01-03 00:41:51 +00:00
dmcmahill
ce2d3019e4 Change some remaining ONLY_FOR_ARCHS to ONLY_FOR_PLATFORM and NOT_FOR_ARCH to
NOT_FOR_PLATFORM that were missed when these variables were changed ages ago.
2006-01-02 23:24:58 +00:00
rillig
e4af2b5124 Fixed some cases where the exitcode of child processes has been ignored.
This will cause package builds to fail instead of hiding bugs.
2006-01-01 22:52:16 +00:00
rillig
9a74bcedfd Fixed trivial pkglint warnings:
- Removed leading white-space in dependency lines.
- s/existant/existent/.
2006-01-01 22:30:35 +00:00
wiz
faf65456ad Remove stuff that was marked for removal after 2005Q4. 2006-01-01 18:53:03 +00:00
tron
6596c8826a Provide defaults for "HOWL_GROUP" and "HOWL_USER" which will be used by
future version of the "howl" package.
2006-01-01 18:25:07 +00:00
tron
ca6d8eca2f Move entry for "MLDONKEY_GROUP" to correct location. 2006-01-01 17:06:12 +00:00
wiz
9eaffc2f2f Remove obsolete TIN_USE_INN_SPOOL option. 2006-01-01 16:11:54 +00:00
wiz
3b9c142626 Describe curses and tin-use-inn-spool options. 2006-01-01 16:11:24 +00:00
rillig
c666e33407 Don't check for PKG_FAIL_REASON when doing show-depends-dirs. This prevents
packages that set PKG_FAIL_REASON from being excluded from the bulk build
databases like .index and .dependstree.
2005-12-31 15:20:59 +00:00
wiz
14b750b437 Fix some quoting as per PR 30956 by Chapman Flack. 2005-12-31 08:18:34 +00:00
wiz
8466aed83c If target is real-su-bin-install, set DEPENDS_TARGET to bin-install.
From Chapman Flack in PR 30928.
2005-12-31 08:05:00 +00:00
wiz
62a3e4fd03 Handle automatic dependencies in bin-install correctly.
From Chapman Flack in PR 32422.
2005-12-31 07:53:11 +00:00
minskim
7eded7fe00 Fix a typo (show-depends-dir -> show-depends-dirs). 2005-12-31 02:06:10 +00:00
jlam
ffa70a6b31 Skip charset.alias as it's another generated index file that changes
over time.
2005-12-30 23:11:55 +00:00
jlam
e88d408616 Add some X11 font database files that are generated by mkfontdir,
mkfontscale, ttmkfdir, etc., to the list of skipped files.  We don't
care about these because they're constantly being regenerated, sometimes
during the package's install phase.
2005-12-29 22:39:09 +00:00
jlam
b98b9b5564 Add comments for the skipped files for CHECK_FILES. 2005-12-29 22:32:20 +00:00
markd
f62733a6ab X11BASE defaults to /usr/openwin on Solaris, but only when using the
native X11_TYPE.  Allow X11BASE to default correctly on Solaris when
X11_TYPE= XFree86 or xorg.
2005-12-29 21:18:11 +00:00
jlam
6517d6f417 Allow avoiding the automatic update of the fonts databases by setting
PKG_UPDATE_FONTS_DB=no in the environment or /etc/mk.conf.  This can
be beneficial when installing large numbers of fonts packages into
the same directories as it avoids destroying and recreating the same
database files over and over again.  This might make it possible
someday to run fc-cache, which is sometimes very time-consuming, from
the +FONTS script automatically.
2005-12-29 14:10:01 +00:00
jlam
5128d7a9bb Test that a variable is defined before checking its value. Fix from
Thomas Klausner.
2005-12-29 13:47:43 +00:00
jlam
dc9594e09d Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
2005-12-29 06:21:30 +00:00
jlam
4ab7433a2c Teach the pkgsrc infrastructure to Just Know when the pkginstall
framework should be used.  This is implemented by creating a small
file mk/install/pkginstall.mk that guards the implementation makefile
mk/install/bsd.pkginstall.mk.  This guard file just checks whether
one of the pkginstall-related variables is non-empty, and if so, then
the implementation file is automatically included.  This completely
deprecates USE_PKGINSTALL, which no longer has any affect in pkgsrc.
2005-12-29 06:18:53 +00:00
jlam
f0aa85ac53 Re-implement the pkgsrc fonts-handling by integrating it into the
pkginstall framework:

  * Rewrite the mk/install/fonts script fragment as a scriptlet that's
    generated by the +INSTALL script during package installation.

  * Rename the FONTS_<TYPE>_DIRS variables to FONTS_DIRS.<type> to
    be more consistent with how "families" of variables are currently
    named in pkgsrc.

  * Rewrite mk/fonts.mk so that it's implemented in terms of the new
    functionality in the pkginstall framework.  This file will be
    obsoleted in the near future after packages have been transitioned
    to use the new functionality in the pkginstall framework.  Currently,
    packages will continue to work with no changes.

Integrating the fonts-handling into the pkginstall framework has the
benefit of generating a +FONTS scriptlet that may be run independently
of the +INSTALL scripts to (idempotently) update the fonts databases
and fix package installation errors.
2005-12-29 03:44:38 +00:00
jlam
91abe4f16b Teach the tools framework about ttmkfdir and type1inst. 2005-12-28 22:41:27 +00:00
jlam
3608385513 Whitespace changes to align with other sections. 2005-12-28 22:26:50 +00:00
jlam
f4717afe89 Consolidate xmkmf with the other "imake" tools. 2005-12-28 22:21:19 +00:00
joerg
ae4dbe9cb8 When MKFONTDIR is set, it is most likely used as well. Add a build time
dependency on it.
2005-12-28 17:54:20 +00:00
reed
7c96304247 For the x11-clients section, use "XFree86-clients" instead of
"imake" for the TOOLS_PREFIX (for the XFree86-clients provided tool).

(Asked about on tech-pkg and jlam said to commit.)
2005-12-28 16:46:38 +00:00
reed
bbb8d7bfe7 Add makepsres to _TOOLS.x11-clients.
(makepsres used for lyx install for example.)
2005-12-28 04:24:37 +00:00
abs
ad6b3c049a Set PATH if not already set at the top of bsd.prefs.mk, just before
using it in a test to set _MAKE. With this change pkgsrc works on
NetBSD/i386 3.0 to build with an empty environment (env -i sh).
Tested with my ~100 favourite server packages. Does not affect
the case when PATH is already set. To have a per OPSYS default path
the include of platform/${OPSYS}.mk will probably need to be at
the top of bsd.prefs.mk - arguably it should be there already.

There are bound to be assumptions made by some packages which will
be broken by an empty env, but the bulk of pkgsrc and in particular
the infrastructure works fine.
2005-12-28 01:00:46 +00:00
heinz
4c40d1de42 Added new japanese download facility jaist.dl.sourceforge.net.
Although voxel.dl.sourceforge.net is not listed anymore on the SF
download pages it still works, so I left it as is.
2005-12-25 16:52:20 +00:00
jlam
6156dddfc7 If bison is used, always pass YACC="bison -y". This should fix
PR pkg/31493, where YACC="bison" was wrongly being passed to the
configure script.
2005-12-22 18:55:41 +00:00
joerg
479de5b14d Add mkdirhier to the tools provided by an imake package.
Move the code down to the X11 clients handling as suggested by jlam@.
2005-12-22 14:49:10 +00:00
salo
87282e1246 Remove belnet and citkit sf.net mirrors, again.
They are refusing connections or timing out for at least two weeks.

XXX: Please, do _NOT_ add them again so easily, please!
     There is nothing but recurring trouble with them for a long time.
2005-12-20 22:48:34 +00:00
joerg
7f1790f2ef Change SUBST_FILES.djbware assignment from = to +=, allowing it to be
used for other files.
2005-12-18 20:25:35 +00:00
bad
d10871dcdf Document bozohttpd-do-htpasswd option. 2005-12-12 21:45:09 +00:00
joerg
1f6a39a84e First step at reworking Linux binary packages.
Change most pkgs to depend on either
emulators/suse_linux/Makefile.application (normal pkgs) or
Makefile.common (suse91 and suse themselves) to filter out Operating
Systems without Linux ABI support. Use CPU masks to limit the pkg to
supported platforms.
2005-12-12 14:43:23 +00:00
markd
cdbc86defb Add the 'km' locale, initially used by kde3-i18n-km 3.5.0. 2005-12-11 12:49:41 +00:00
heinz
7713e9c809 Converted packages audio/mpg123* to bsd.options.mk framework (Approved by tron).
No bump of PKGREVISION necessary.
2005-12-10 21:31:41 +00:00
wiz
40b2ba02ff Desupport the various ghostscript*x11* packages (replaced by x11 option). 2005-12-09 20:32:22 +00:00
salo
23b23862cd Add dts description. 2005-12-09 17:57:19 +00:00
hira
ed44db6a86 Fix build of the packages which pass .la files to libtool by relative
path.  This allows to use symbolic linked path as WRKOBJDIR and should
fix PR pkg/31337.
2005-12-09 16:16:41 +00:00
rillig
550a2c6284 Prefixed all status messages with "pre-build>" to show the user where they
come from.
2005-12-08 21:21:15 +00:00
jschauma
7e93f1e66f Pass correct flags to install.sh to invoke IRIX's strip command 2005-12-08 01:12:56 +00:00
rillig
5878c465ce Allow absolute filenames for SUBST_FILES. Needed for converters/convmv and
maybe some others.
2005-12-06 17:17:30 +00:00