Commit graph

351 commits

Author SHA1 Message Date
tron
e96246650c Add "DISTDIR", fixes PR pkg/7423 by Minoura Makoto. 1999-04-24 19:48:23 +00:00
tron
08c86266dc Be consistent: always use "/usr/bin/uname". 1999-04-24 18:14:57 +00:00
sakamoto
10a9651118 re-add empty MASTER/PATCH_SITE which was removed in 1.254. 1999-04-22 15:50:42 +00:00
hubertf
1ce1d11daf Replace deinstall-depends target with call to "pkg_delete -R" (now that
we have it for sure).
1999-04-20 20:28:11 +00:00
agc
5b8cfe00f1 Default umask on Solaris is 022, not 0022. 1999-04-20 11:07:34 +00:00
tron
b4d3a4b871 - Bump required package tools version to 19990412.
- Remove support for package tools without database support.
1999-04-19 20:04:18 +00:00
agc
f85381d98b Fix just-in-time su deinstalls on Solaris by using the full pathname for
${MAKE}.
1999-04-19 14:29:49 +00:00
tron
202b5f011e Remove "%SUBDIR%/" from various "MASTER_SITE..." examples. 1999-04-15 20:41:32 +00:00
tron
23e0063766 Completely replace "MASTER_SITE_SUBDIR" and "PATCH_SITE_SUBDIR" with
variable substituition of "MASTER_SITES" and "PATCH_SITES".
1999-04-15 20:39:38 +00:00
tron
0a35523e94 Add missing "|| ${TRUE}" to "${EGREP}" statement to avoid install failures
if no shared objects are found on a.out systems.
1999-04-14 19:44:24 +00:00
agc
e20be6c347 Remove NOPORTDOCS definition - it was useless anyway, as any attempt to
build a binary package with this definition would fail as the PLIST is
not correct.

If a package's documentation is overwhelming, it should arguably be handled
in a separate pre-requisite documentation package.
1999-04-13 15:31:04 +00:00
agc
fed2323244 Use the system version of bsd.own.mk, rather than keeping a pkgsrc-only copy. 1999-04-13 15:07:38 +00:00
agc
f041c79b79 Work out the type of shared libraries once, at "make install" time, and
do this dynamically. This means that we no longer have to have a
separate pkgsrc copy of bsd.own.mk, which was a maintenance nightmare,
and usually out of date, and quite costly too (with a calculation of
whether NetBSD-current was being run every time the file was read).

Also, on a.out, add ldconfig lines to the generated PLIST only if they're
not already there, rather than if they were previously there, and ignore
the return value from ldconfig, which cannot be trusted. The ldconfig
calls have largely been made obsolete by the use of -rpath, but keep it
for just now for backwards compatibility.
1999-04-13 14:18:11 +00:00
tron
52be543cc6 Consider NetBSD 1.4 as "current" so that "UVM" is defined again.
XXX This file shile should be removed soon.
1999-04-11 12:07:28 +00:00
hubertf
d8d65788d7 Move mirror-distfiles target around a bit so it can even be invoked
on platforms that are prohibited by ONLY_FOR_ARCH/OPSYS etc. so we
can provide distfile-backups even for them.
1999-04-09 02:06:53 +00:00
tron
7e78d6071c "bzcat" now handles symlinks properly. 1999-04-08 18:43:42 +00:00
agc
e7cd3bf02f Substitute for ${LOWER_VENDOR} when building the PLIST. Necessary for
some GNU packages.
1999-04-08 12:46:08 +00:00
hubertf
c706d14441 Prettify PKGSRCDIR - instead of /usr/pkgsrc/foo/bar/../.., just make it
/usr/pkgsrc (through make(1) macig).
1999-04-08 07:51:21 +00:00
agc
a2ea4de8a3 Make this work on Solaris again.
Minor formatting changes around the pkg-su-install target.

Pass on any PKG_DEBUG_LEVEL as well as FORCE_PKG_REGISTER definitions.
1999-04-06 14:11:10 +00:00
agc
161d30887f Make it obvious, when invoking ${SU_CMD}, on which machine this
installation is taking place. Also echo the command which will be
invoked in ${SU_CMD}, so that the Principle of Least Surprise applies.
1999-04-06 09:39:30 +00:00
hubertf
fb6a49d11b Get rid of this "0":
|
|    ...
|    ===>   [Automatic a.out shared object handling]
+--> 0
     ===>  Registering installation for fnlib-0.4
1999-04-05 02:25:59 +00:00
tron
c592794199 Use input redirection with "bzcat" once again because it refuses to handle
symbolic links on files.
1999-04-04 12:56:05 +00:00
tron
f5ce2acf3c Use "su" automatically for "make deinstall" target, too. 1999-04-03 21:03:50 +00:00
agc
55324d2876 Correct a typo in previous - fixes bzip2 extractions. 1999-04-02 21:14:12 +00:00
tron
7d06cde548 Use input redirection with "bzcat" again because it refuses to handle
symbolic links on files.
1999-04-01 22:21:27 +00:00
agc
171e025b4a Rewrite the extraction commands to be more intuitive.
In the vast majority of cases, nothing has changed (i.e. .tgz, .tar.gz,
and .tar.bz2).

EXTRACT_USING_PAX can be set as before.

For custom extractions, instead of using EXTRACT_BEFORE_ARGS,
EXTRACT_AFTER_ARGS and EXTRACT_CMD, simply set EXTRACT_CMD to be the
command needed to decompress and extract the lements from the archive.
${DOWNLOADED_DISTFILE} can be used to reference the distfile(s).
e.g. for compressed shars, where previously there was:

EXTRACT_CMD=           ${GZCAT}
EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS=    |sh

now use:

EXTRACT_CMD=           ${GZCAT} ${DOWNLOADED_DISTFILE} | ${SH}
1999-04-01 14:07:52 +00:00
agc
41cd971f7a Provide an acceptable default for PRE_ROOT_CMD - pointed out by Tim
Rightnour, and suggested by Hubert Feyrer.

Also print the "Installing" message in the correct place.
1999-04-01 07:29:14 +00:00
agc
e085512531 Avoid shell smarts: on NetBSD, type is a sh(1) builtin. If make(1) is
invoked, a subsequent "type make" will give "make is a tracked alias
for /usr/bin/make".  Using awk(1) to find the third part of that can
lose.  type is also a sh(1) builtin on Solaris, which prints "make is
hashed (/usr/bin/make)". However, there is a separate /usr/bin/type,
which prints the pathname at the end.

Minor reformat in same target - replace spaces by tabs where possible.
1999-03-31 10:59:44 +00:00
agc
7ebc0e8810 Fix minor typo in previous. 1999-03-31 09:57:29 +00:00
agc
ebb313e748 + Factor out the real-install target from the rest of the .USE ones.
This makes it possible to do the next step. There were so many .if
make(install) checks that this arguably should be done anyway.

+ In interactive installs, if the effective uid is not zero when "make
install" is attempted, then ${SU_CMD} is invoked (defaults to "su -
root -c", but sudo or priv could be used). This allows running as
non-root for much more time, which is a significant benefit. This also
allows installation of pre-requisite (DEPENDS) packages while building
a package as non-root user.

+ A hook has been added to run ${PRE_ROOT_CMD} before becoming root, so
that root can be given write access to ${WRKDIR} directories, for
example, on -noroot mounted NFS filesystems.
1999-03-31 09:04:18 +00:00
agc
2275cda883 Add an EXTRACT_USING_PAX definition, which, if defined, will use pax(1)
to extract archives when building, rather than GNU tar. This is needed
on platforms where GNU tar is not the standard version of tar, and by
people who prefer to use pax(1) in general.
1999-03-30 09:46:27 +00:00
hubertf
b305a58d41 Fix some comments 1999-03-30 00:47:01 +00:00
agc
67a5acc5cf Delete spurious ';', when making the "package" target with
FORCE_PKG_REGISTER set.
1999-03-29 14:55:43 +00:00
agc
6ab53e8533 Calculate the version of the package tools required when it's needed,
using "${MAKE} show-pkgtools-version", rather than every time
bsd.pkg.mk is read.

Introduce a definition to indicate the versions of package tools which use
the pkgdb cache, rather than using a magic 19990302 value.
1999-03-29 11:22:29 +00:00
hubertf
5df287ffd4 DUDS is expected to be a a make variable, not a shell variable 1999-03-28 03:56:32 +00:00
agc
49ad04f369 Move the definition of BUILD_ROOT into bsd.pkg.mk, from the individual
package Makefiles which need it.
1999-03-22 09:38:22 +00:00
agc
e117782bbd Add ONLY_FOR_OPSYS processing, to go with the existing NOT_FOR_OPSYS 1999-03-17 12:05:40 +00:00
agc
e82f23a97f On Solaris, make patch(1) create a backup copy of the file it's patching 1999-03-17 10:33:57 +00:00
agc
48067df8d7 Simplify EXTRACT_CMD definitions, and add GTAR definition. 1999-03-16 15:28:37 +00:00
agc
990570fcef Optimise the manual page handling a bit more - miss out redundant commands. 1999-03-16 09:50:28 +00:00
mrg
4bef378a5f pull in deltas from src/share/mk/bsd.own.mk 1.113 -> 1.120. approved by agc. 1999-03-15 12:49:01 +00:00
agc
d0b7ba3042 Major changes in manual page handling - deal with imake's man pages in
Solaris, and consolidate other manual page handling.
1999-03-12 10:19:14 +00:00
tron
0c766cf685 If "GNU_CONFIGURE" is set to "yes" supply "${INSTALL}" with full pathname
again because "configure" will create bogus makefiles otherwise.
1999-03-10 18:31:02 +00:00
agc
b733efcf0d Fix another difference between Solaris and NetBSD sh(1). On Solaris,
for f in $var; do...

where $var is empty, produces an error.
1999-03-09 16:39:56 +00:00
agc
5a3c955bf6 Improve ELF shared lib handling, so that it now works on Solaris.
In the process, it was found that the Solaris ln(1) doesn't work quite
the way its manual page claims it does. In particular, "ln -fs a b" will
fail if b already exists, rather than deleting the link. Work around this
by using an explicit rm(1) prior to calling "ln -s".
1999-03-09 15:31:59 +00:00
agc
53c3157512 Solaris sh(1) doesn't understand the "if ! command; then..." construct.
So dumb-down the shell commands used: make them into
	"command; if [ $? -ne 0 ]; then..."
Suggested by David Brownlee.
1999-03-09 11:14:52 +00:00
agc
940cb8878f Set the default value for the OS definition to "NetBSD". 1999-03-08 20:38:15 +00:00
agc
0fd3106f42 Add Solaris support to pkgsrc, using Christos Zoulas' NetBSD emulation
package. Tested for some packages on Solaris 2.6 on Sparc.
1999-03-08 17:26:54 +00:00
hubertf
375e34ac1d Allow (recursive) cleaning out and deinstallation of required packages:
make clean CLEANDEPENDS=YES
 make deinstall DEINSTALLDEPENDS=YES

Both CLEANDEPENDS and DEINSTALLDEPENDS default to NO, so this isn't
different from the current behaviour.
1999-03-03 22:53:49 +00:00
hubertf
182d6621e7 Mention mk.conf(5), and remove USE_LOCALBASE_FOR_X11 (this is not ready
for use, people better not use this).
1999-03-03 22:38:49 +00:00