summaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)AuthorFilesLines
1999-04-01Provide an acceptable default for PRE_ROOT_CMD - pointed out by Timagc1-3/+4
Rightnour, and suggested by Hubert Feyrer. Also print the "Installing" message in the correct place.
1999-03-31Avoid shell smarts: on NetBSD, type is a sh(1) builtin. If make(1) isagc1-11/+13
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-31Fix minor typo in previous.agc1-2/+2
1999-03-31+ Factor out the real-install target from the rest of the .USE ones.agc2-23/+76
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-30Add an EXTRACT_USING_PAX definition, which, if defined, will use pax(1)agc2-12/+23
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-30Fix some commentshubertf1-2/+5
1999-03-29Delete spurious ';', when making the "package" target withagc1-2/+2
FORCE_PKG_REGISTER set.
1999-03-29Calculate the version of the package tools required when it's needed,agc1-25/+24
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-28DUDS is expected to be a a make variable, not a shell variablehubertf1-2/+2
1999-03-22Move the definition of BUILD_ROOT into bsd.pkg.mk, from the individualagc1-1/+3
package Makefiles which need it.
1999-03-17Add ONLY_FOR_OPSYS processing, to go with the existing NOT_FOR_OPSYSagc1-1/+9
1999-03-17On Solaris, make patch(1) create a backup copy of the file it's patchingagc1-2/+2
1999-03-16Simplify EXTRACT_CMD definitions, and add GTAR definition.agc1-12/+6
1999-03-16Optimise the manual page handling a bit more - miss out redundant commands.agc1-9/+9
1999-03-15pull in deltas from src/share/mk/bsd.own.mk 1.113 -> 1.120. approved by agc.mrg1-18/+111
1999-03-12Major changes in manual page handling - deal with imake's man pages inagc1-65/+57
Solaris, and consolidate other manual page handling.
1999-03-10If "GNU_CONFIGURE" is set to "yes" supply "${INSTALL}" with full pathnametron1-2/+2
again because "configure" will create bogus makefiles otherwise.
1999-03-09Fix another difference between Solaris and NetBSD sh(1). On Solaris,agc1-2/+4
for f in $var; do... where $var is empty, produces an error.
1999-03-09Improve ELF shared lib handling, so that it now works on Solaris.agc1-18/+27
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-09Solaris sh(1) doesn't understand the "if ! command; then..." construct.agc1-6/+9
So dumb-down the shell commands used: make them into "command; if [ $? -ne 0 ]; then..." Suggested by David Brownlee.
1999-03-08Set the default value for the OS definition to "NetBSD".agc1-1/+4
1999-03-08Add Solaris support to pkgsrc, using Christos Zoulas' NetBSD emulationagc4-401/+1074
package. Tested for some packages on Solaris 2.6 on Sparc.
1999-03-03Allow (recursive) cleaning out and deinstallation of required packages:hubertf1-7/+30
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-03Mention mk.conf(5), and remove USE_LOCALBASE_FOR_X11 (this is not readyhubertf1-9/+4
for use, people better not use this).
1999-03-03Call "pkg_delete -O' on "make reinstall", to remove things not onlyhubertf1-1/+7
from /var/db/pkg, but also from the pkgdb (in case someone does a "make reinstall" with FORCE_PKG_REGISTER set). Pointed out by Greg Woods. XXX This change is only effective if one has a pkg_* tools as of 19990302 or later, but I will not bump the PKGTOOLS_REQD version up, as I do not expect many people to run into this (and if, it's not a problem). One should just remove the check with ${_PKGTOOLS_VER} >= 19990302 if the version's bumped beyond 19990302.
1999-02-27Add example entry for Japanese mirror sites.sakamoto1-1/+15
1999-02-25Set things like PATH for targets pre-*, do-* and post-* (from ${MAKE_ENV}).hubertf1-4/+4
This prevents that the pkg builder needs ${LOCALBASE/bin in $PATH. Helps also with Peter Seebach's problem in PR 7047.
1999-02-25Document AMANDA_VARbouyer1-2/+4
1999-02-24Use leading spaces before the comment, rather than leading tabs, so thatagc1-3/+7
make(1) does not puke. Add a note at the top of the file for people editing it, requesting them to do just that.
1999-02-23A new variable, AMANDA_SMB, to control support of backup with smbclient.bouyer1-2/+7
1999-02-22Comment that targets listed in $PKG_MISC_TARGETS are also regardedhubertf1-2/+2
1999-02-21Allow for customised groups of packages at the top-level of pkgsrc.agc1-25/+56
If SPECIFIC_PKGS is defined (at the top-level of pkgsrc), then instead of looping through all the categories and then all the packages within that, simply loop through ${SITE_SPECIFIC_PKGS}, ${HOST_SPECIFIC_PKGS}, ${GROUP_SPECIFIC_PKGS} and ${USER_SPECIFIC_PKGS}, which are whitespace separated lists of categories/packages e.g. SITE_SPECIFIC_PKGS+= devel/cvs security/ssh The default behaviour is unchanged - if SPECIFIC_PKGS is not defined, the whole hierarchy will be traversed. Modify mk.conf.example to reflect the settings of SPECIFIC_PKGS, SITE_SPECIFIC_PKGS, HOST_SPECIFIC_PKGS, GROUP_SPECIFIC_PKGS and USER_SPECIFIC_PKGS. Modify the ispell package to use the make definition ISPELL_LANG, rather than just LANG (which can clash with the environment variable of the same name), and modify mk.conf.example accordingly.
1999-02-21Because 1.3's and 1.3.x's "pax" chokes on some ".tar.bz2" archivestron1-2/+2
use "tar" for now.
1999-02-21Pull in mk.conf (via bsd.pref.mk), so that e.g. PKG_MISC_TARGETS canhubertf1-1/+11
be set there.
1999-02-16Do not overwrite (files of) other pkg versions, warn instead.hubertf1-5/+6
1999-02-15Add "WINDOWMAKER_OPTIONS".tron1-1/+8
1999-02-14Use "pkglibtool-1.2p1" as package libtool.tron1-2/+2
1999-02-14Add "MASTER_SITE_OVERRIDE".tron1-1/+5
1999-02-13Add automatic handling for ".tar.bz2" archives - just set "EXTRACT_SUFX"tron1-7/+19
and "bsd.pkg.mk" will do the rest. Furthermore replace all remaining instances of ":../../foo/bar" in dependences by ":${PKGSRCDIR}/foo/bar".
1999-02-11Back out the info dir changes/install-to-LOCALBASE; /usr/share/info wastv1-12/+4
not in pkgsrc's info path, which confused me to no end.
1999-02-11Also make this work if gtexinfo is not installed at all and info is in thetv1-1/+3
base; install the symlink at ${LOCALBASE}/info/dir if there is nothing there yet.
1999-02-11Missed the !exists(/usr/bin/install-info) on the gtexinfo dependency.tv1-2/+2
1999-02-11If /usr/bin/install-info exists:tv1-3/+10
- do not depend on gtexinfo pkg even if USE_GTEXINFO is set - if ${LOCALBASE}/info/dir is a regular file, nuke it and replace as a symlink to /usr/share/info/dir. (Upgrades of the base system will do this too, except that those will copy the contents of /usr/pkg/info/dir first. There is no truly clean solution here.) Also, use --info-dir=${LOCALBASE}/info/dir, NOT ${PREFIX}/info/dir. info(1) only searches one directory file.
1999-02-10NETBSD_CURRENT is not only used for finding out abouth UVM, but also for thehubertf1-2/+3
OBJECT_FMT, thanks to Thorsten Frueauf for finding this. (The error only showed up if you defined UVM in mk.conf on a -current system)
1999-02-09Backward compatible OBJECT_FMT/SHLIB_TYPE handling,hubertf1-2/+21
pointed out by Alistair Crooks.
1999-02-08sync with -currenthubertf1-53/+38
1999-02-03Don't match a slash in the middle of a library name.tv1-2/+2
1999-02-01Use a more generic pattern to match libs in PLIST, this willfrueauf1-2/+2
DTRT on ELF for e.g. lib/mozilla/*.
1999-02-01Make "distclean" target work for packages without distribution andtron1-2/+3
patch files, e.g. meta packages.
1999-01-30Replace all occurrences of USE_X11 with USE_X11BASE. This means "install thisagc1-6/+6
package into ${X11BASE}". Replace all occurrences of BUILD_USES_X11 with USE_X11. This means "use X11 headers and libraries to build this package".