Commit graph

1620 commits

Author SHA1 Message Date
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
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
ae741f1ba0 Update XCONTRIB path for .at. 2001-11-30 00:30:40 +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
tv
92d724ccfe In the odd possible case of someone using "pkgsrc" underneath "src"
(even though that's still a bad idea), set USETOOLS=no explicitly before
including <bsd.own.mk>, and add this also to MAKE_ENV to make BSD-Makefile
based packages build properly.
2001-11-28 19:58:13 +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
jlam
1629930a91 cvsweb also implicitly used ${APACHE_SYSCONFDIR} as its config file
directory.
2001-11-28 14:01:16 +00:00
jlam
22116387be Fix problem where bsd.pkg.obsolete.mk wouldn't be found when "make" was
executed outside of a package directory.  Problem and fix noted by Stoned
Elipot in private email.
2001-11-28 12:05:20 +00:00
abs
6dd01d2785 lose some more pkg/ references 2001-11-28 10:21:46 +00:00
hubertf
0e82c4e633 Add commented-out entry for GQMPEG_NO_RUSSIAN 2001-11-27 02:07:53 +00:00
jlam
22d02d6b3e Replace PKG_{USER,GROUP} with PKG_USERS and PKG_GROUPS:
PKG_USERS represents the users to create for the package.  It is a
	space-separated list of elements of the form

		user:group[:[userid][:[descr][:[home][:shell]]]]

	Only the user and group are required; everything else is optional,
	but the colons must be in the right places when specifying optional
	bits.  Note that if the description contains spaces, then spaces
	should be double backslash-escaped, e.g.

		foo:foogrp::The\\ Foomister

PKG_GROUPS represents the groups to create for the package.  It is a
	space-separated list of elements of the form

		group[:groupid]

	Only the group is required; the groupid is optional.

This solves the problem of what to do when there is more than one user or
group needed for a package, e.g. qmail.  Also add a bit more error-checking
to the INSTALL/DEINSTALL scripts.
2001-11-26 20:37:38 +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
ad7cbda464 In fit of paranoia after reading about the iTunes installer and given we
now work on Darwin, and then the discussion about allowing spaces in
user/group names, make these scripts work even if the inputs contain
spaces.  Yes, this is overkill, but after doing all of the work, I didn't
want to waste it.
2001-11-26 14:48:53 +00:00
jlam
450b47d81a p5-HTTPD-User-Manage also used APACHE_SYSCONFDIR (implicitly). Also
re-indent for aesthetic considerations.
2001-11-26 05:18:01 +00:00
hubertf
a329f921a8 Run "make bulk-package" with stdin redirected from /dev/null,
to prevent it sitting there for days waiting for input in useless
situations.
2001-11-26 00:55:45 +00:00
dmcmahill
ad3cbb6276 fix typo in error output message (s/PKNAME/PKGNAME). Patch from
Hubert Feyrer.
2001-11-25 23:24:26 +00:00
jlam
04f059f6c0 Fix pasto: PKG_GROUP -> PKG_USERID. 2001-11-25 21:16:30 +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
a17ddb6e66 www/apc-gui also used APACHE_SYSCONFDIR. 2001-11-25 19:33:45 +00:00
jlam
634f133269 Deprecate APACHE_SYSCONFDIR, PHP_CONFDIR, VTUN_SYSCONFDIR by moving them
to bsd.pkg.obsolete.mk.
2001-11-25 19:29:56 +00:00
jlam
d8ac0cc4f5 This file holds make(1) logic to allow obsolete or deprecated variables
still to be used.  These may eventually disappear over time as the contents
are, by definition, obsolete and deprecated.
2001-11-25 19:28:08 +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
jlam
cfd5b704a7 Allow ALL_{DIRS,FILES,MAKE_DIRS} to be appended to by the extra templates
so that the general INSTALL/DEINSTALL scripts can manage these extra files
and directories.
2001-11-25 18:54:57 +00:00
kim
c60d7684ea Change SQUID_SYSCONF_DIR to SQUID_SYSCONFDIR to match www/squid/Makefile 2001-11-23 16:09:24 +00:00
abs
3bcafcfa14 Add SU to FILES_SUBST 2001-11-23 14:37:24 +00:00
tron
834eef2293 Add documentation of variable "SQUID_SYSCONFDIR". 2001-11-23 10:23:45 +00:00
tron
7c7d68c5c5 Add a new option "MUTT_USE_SLANG" to use the "slang" library instead of
"curses" because the first deals with resize better, especially under
NetBSD 1.5/1.5.x. This change was suggested by Joe Abley in PR pkg/13630.
2001-11-22 21:34: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
jlam
1b41bcfdb0 Refer to /etc/rc.d as ${RCD_SCRIPTS_DIR} more thoroughly. 2001-11-21 16:10:03 +00:00
jlam
f1b957484f Change the way the RCD_SCRIPTS variable is used. It now just lists the
names of the scripts and is no longer a MLINKS-type variable.  The scripts
are copied into ${RCD_SCRIPTS_DIR} which defaults to /etc/rc.d for now.
It's unclear if Linux/Solaris would set RCD_SCRIPTS_DIR to something else.
2001-11-21 15:43:01 +00:00
agc
6dde5fcc79 Move some operating-system specific definitions to the individual
defs.${OPSYS}.mk files.
2001-11-21 14:10:06 +00:00
agc
beda0b43f8 Add an _OPSYS_HAS_OSSAUDIO definition to the individual defs.${OPSYS}.mk
files, and use it in ossaudio.buildlink.mk. The definition shows whether
or not libossaudio is available in the OS.
2001-11-21 13:57:31 +00:00
agc
1b690b5a38 Move MOTIF_TYPE_DEFAULT and MOTIF12_TYPE_DEFAULT definitions into the
individual defs.${OPSYS}.mk files. No change in functionality.
2001-11-21 13:54:14 +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
9875ea4f1d Forgot an EOF in the last commit. 2001-11-21 05:38:03 +00:00
jlam
b74b76b756 Remind the user that some rc.conf settings may need to be removed after
the package has been deleted.
2001-11-20 19:31:58 +00:00
jlam
950ae6dee2 We should only depend on sysutils/user in the !exists(/usr/sbin/user) case. 2001-11-20 16:53:44 +00:00
jlam
1024a4d42b Add definitions for ROOT_USER and ROOT_GROUP that are the symbolic names of
the root user and root group.
2001-11-20 16:19:20 +00:00
jlam
b1d477e863 For completeness, add a SUPPORT_FILES_PERMS that acts like CONF_FILES_PERMS
but the user isn't prompted to customize the files at post-install time.
2001-11-19 23:33:52 +00:00
jlam
c850f81b61 Common INSTALL/DEINSTALL scripts and Makefile magic to automatically perform
many of the tasks that need to be done when package is installed or
deinstalled:

	* creating user/group for the package,

	* creating and removing directories with special permissions and
	  ownership,

	* copying config files to their final locations, and removing them
	  at deinstall time if they don't differ from the example ones,

	* reminding the package admin of files he may want to customize or
	  of files/directories he may want to remove.
2001-11-19 16:18:44 +00:00