Commit graph

985 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
00d36e3d3e Also substitute for ${PKG_SYSCONFDIR} in MESSAGE files. 2002-01-10 02:51:30 +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
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
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
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
wiz
f4c8fa01e4 Wildcard lha dependency. 2001-12-19 20:02:41 +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
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
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
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
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
agc
3d43fa67e2 Add support for OS X-style dylibs when creating the derived PLIST file. 2001-12-05 16:42:46 +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
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
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
jlam
ad76e9aa21 Rename "do-libtool" target to "do-ltconfig-override" as the new name is more
descriptive.  There is a separate step to replace the actual libtool script
that is controlled by LIBTOOL_OVERRIDE within the "do-configure" target.
2001-11-30 03:19:04 +00:00
wiz
d6b705489b Remove REPLACE_CURSES from bsd.pkg.mk (not needed anymore), and don't
document it and USE_CURSES in Packages.txt anymore (packages should
really use devel/ncurses/buildlink.mk instead).
2001-11-30 01:26:32 +00:00
wiz
8457cdbc38 Drop a line of the form '^<TAB>$'. 2001-11-29 20:06:03 +00:00
hubertf
5542206cba Get rid of manually adding "nbX" to PKGNAME when a pkg was changed in
pkgsrc. Instead, a new variable PKGREVISION is invented that can get
bumped independent of DISTNAME and PKGNAME.

Example #1:
        DISTNAME=       foo-X.Y
        PKGREVISION=    Z
     => PKGNAME=        foo-X.YnbZ

Example #2:
        DISTNAME=       barthing-X.Y
        PKGNAME=        bar-X.Y
        PKGREVISION=    Z
     => PKGNAME=        bar=X.YnbZ (!)

On subsequent changes, only PKGREVISION needs to be bumped, no more risk
of getting DISTNAME changed accidentally.
2001-11-29 01:12:24 +00:00
jlam
208d40b3a2 Move the PKG_SYSCONFDIR logic below the definition of PKGNAME. PKGNAME is
use to set PKGBASE, which is used in the name of the package-specific
config directory override (PKG_SYSCONFDIR.${PKGBASE}).  Prior to this, if
PKGNAME wasn't explicitly set in the package, then the override would not
work.
2001-11-28 19:55:31 +00:00
abs
6dd01d2785 lose some more pkg/ references 2001-11-28 10:21:46 +00:00
hubertf
0a38992063 fetch-list: properly quote URLs printed, as they may contain things that
the shell doesn't like.

Fixes PR 14347 by Ben Wong <Benjamin.Wong@cc.gatech.edu>
2001-11-26 19:56:06 +00:00
jlam
3f8b0469a6 Check for an empty value for PKG_SYSCONFSUBDIR and set PKG_SYSCONFDIR
accordingly so that config files are in /usr/pkg/etc/foo.conf, and not
/usr/pkg/etc//foo.conf.
2001-11-25 19:38:55 +00:00
jlam
0252126161 Pass PKG_SYSCONFDIR to the configure and build processes. 2001-11-25 19:04:19 +00:00
jlam
ffceca11a9 PKG_SYSCONFDIR is where the configuration files for a package may be found.
This value may be customized in various ways:

PKG_SYSCONFBASE is the main config directory under which all package
	configuration files are to be found.

PKG_SYSCONFSUBDIR is the subdirectory of PKG_SYSCONFBASE under which the
	configuration files for a particular package may be found.

PKG_SYSCONFDIR.${PKGBASE} overrides the value of ${PKG_SYSCONFDIR} for a
	particular package.

Users will typically want to set PKG_SYSCONFBASE to /etc, or accept the
default location of ${PREFIX}/etc.

This obsoletes the use of CONFDIR, which was active for only 6 days, so no
need to have a workaround to still accept old CONFDIR settings.
2001-11-25 18:59:45 +00:00
agc
93549791ee Now that all the files have been moved into the main package directory,
remove the temporary ${PKGDIR} workaround.
2001-11-21 18:32:01 +00:00
agc
89257b87f1 Add _OPSYS_HAS_MANZ and _PREFORMATTED_MAN_DIR definitions to the
individual defs.${OPSYS}.mk files, and use them in bsd.pkg.mk.

+ _OPSYS_HAS_MANZ defines whether or not the OS does MANZ handling as standard

+ _PREFORMATTED_MAN_DIR is the name of directory (cat or man) where
preformatted manual pages go.

Rename the internal definitions used in the generation of PLIST files to
start with '_'.

This completes the "generic" changes to bsd.pkg.mk.
2001-11-21 13:44:44 +00:00
agc
03c35761df Add a _DO_SHLIB_CHECKS definition to the individual defs.${OPSYS}.mk
files, and use it in bsd.pkg.mk.  This definition controls the fixup
of PLISTs at installation time, and running of ldconfig if necessary.
2001-11-21 13:17:14 +00:00
agc
715864dc96 Add a _PATCH_BACKUP_ARG definition to the individual defs.${OPSYS}.mk files,
and use it in bsd.pkg.mk. This definition is the switch to patch(1) to
provide backup files when patching.
2001-11-21 13:09:08 +00:00
agc
b9a41cdc6b Add a _USE_RPATH definition to the individual defs.${OPSYS}.mk files,
and use it in bsd.pkg.mk. This definition says whether or not the rpath
is to be added to the LDFLAGS definition.
2001-11-21 13:02:52 +00:00
agc
e3865c8037 Add a _DO_LIBINTL_CHECKS definition to the individual defs,${OPSYS}.mk
files, and use it in bsd.pkg.mk. If set to "yes", checks that a valid
libintl library and header file should be performed.
2001-11-21 12:58:15 +00:00
agc
69788c2093 Add a definition of _IMAKE_MAKE to the individual defs.${OPSYS}.mk
files, defined to be the make program which is invoked by imake, and
use it accordingly in bsd.pkg.mk
2001-11-21 12:53:04 +00:00
agc
bac7e8965b Move default umask for operating systems into the individual defs.${OPSYS}.mk
files, rather than switching by ${OPSYS} within bsd.pkg.mk.
2001-11-21 12:42:23 +00:00
jlam
b046604a94 Create a new variable CONFDIR that represents the directory where package
config files should go.  It may be overridden on a per-package basis by
defining CONFDIR.${PKGBASE}, e.g. CONFDIR.php.  ${CONFDIR} defaults to
${PREFIX}/etc, but it may be overridden in /etc/mk.conf, e.g. by setting
CONFDIR=/etc.

Packages will eventually be altered to find their config files in
${CONFDIR}.
2001-11-19 16:01:03 +00:00
tron
d68a1cb95e Remove GNOME on "ftp.fh-rosenheim.de" which doesn't carry any files at
the moment.
2001-11-16 20:35:19 +00:00
jlam
8e58770bc9 Convert some spaces to tabs. 2001-11-14 21:38:29 +00:00
jlam
770f9cd495 Allow MESSAGE_SRC to be a space-separated list of files, like PLIST_SRC,
that are concatenated together to form the whole MESSAGE file.
2001-11-14 21:04:43 +00:00
jlam
7e703bf189 Add ${PKGBASE} to the things to substitute for in PLISTs. 2001-11-14 12:38:51 +00:00
jlam
ca75d3b6b7 Set a default value for BUILDLINK_DIR so that if no buildlink.mk files are
included, then it still points to a sensible location (${LOCALBASE}).
2001-11-11 09:46:51 +00:00
agc
7f77b835bf Check for DESCR_SRC, PLIST_SRC, MESSAGE_SRC, DEINSTALL and INSTALL files
in ${.CURDIR} as well as ${PKGDIR}, just in case the pkg/ directory still
exists but is empty.
2001-11-09 08:58:19 +00:00
agc
b3df2f05f8 Set the default values of SU_CMD and PRE_ROOT_CMD in bsd.pkg.defaults.mk,
not bsd.pkg.mk, so that the user is more aware of them (there were placeholder
examples of both definitions in bsd.pkg.defaults.mk already).

Explain PRE_ROOT_CMD a bit more throroughly, and correct an example of
its use.

Make an alternative definition for SU_CMD sync with reality.
2001-11-08 12:47:12 +00:00
agc
eb39a7e922 Following on from the removal of the automatic "is there a script to run" logic,
more speedups for building packages.

Get rid of a .USE macro, and do not spawn sub-makes for the pre-, do- and
post-target stages, replacing them with standard make(1) targets.

Timing information as follows (multiple runs performed, best results taken):

800 MHz Celeron, 128 MB, local pkgsrc, local obj
scripts/, pre,do,post-*:  	0.731u 0.261s 0:02.04 48.5%     0+0k 29+168io 9pf+0w
no scripts/, pre,do,post-*:	0.678u 0.242s 0:01.30 70.0%     0+0k 0+169io 0pf+0w
no scripts/, no pre,do,post-*:	0.267u 0.089s 0:00.90 37.7%     0+0k 0+155io 0pf+0w

40 MHz Sparc, 36 MB, nfs pkgsrc, local obj
scripts/, pre,do,post-*:  	22.590u 6.839s 0:33.31 88.3%    0+0k 121+254io 0pf+0w
no scripts/, pre,do,post-*:	22.481u 6.442s 0:33.30 86.8%    0+0k 120+251io 0pf+0w
no scripts/, no pre,do,post-*:   8.534u 4.189s 0:16.48 77.1%    0+0k 105+242io 0pf+0w
2001-11-08 09:29:56 +00:00
jlam
32a207a6c8 Also substitute for CHMOD, CHOWN, CHGRP in PLISTs. 2001-11-03 04:58:15 +00:00
jlam
64468de1ee So many of our PLIST use mkdir, rmdir, and true, and we have full paths to
these utilities in ${MKDIR}, ${RMDIR}, and ${TRUE}, so substitute for them.
2001-11-01 20:37:17 +00:00
zuntum
33f6d98857 Make REPLACE_PERL work -- recent "-e s,/bin/perl,${PERL5}" addition broke it.
Now the sed command is "s,#!.*/bin/perl,#!${PERL5},"
2001-10-31 18:05:48 +00:00
agc
7167cd3880 Add initial support for Darwin (1.4) to pkgsrc. 2001-10-30 13:53:15 +00:00
jlam
b3dec5f544 On Solaris 7, when `find dir -name foo -name bar' in invoked, only an
implicit `-print' action is performed on bar and not on foo.  Surround
the search pattern in \( ... \) and add an explict -print so that all of
the results of the find are printed.

Problem noted and patch to fix this received in private email from Stoned
Elipot <seb@netbsd.org>.
2001-10-29 19:21:18 +00:00
skrll
c5e44f3ff0 Make print-PLIST generate
@exec ${MKDIR} %D/...

instead of

	@exec ${MKDIR} ${PREFIX}/...

Hopefully this might mean I don't commit incorrect PLISTs.
2001-10-29 15:10:14 +00:00
tron
8d0e937ff7 Add a new "show-vars" target which allows to display several makefile
variables at once.
2001-10-26 21:42:44 +00:00