summaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)AuthorFilesLines
2006-10-22Removed setargs_from_cmd, as it is unused.rillig1-12/+1
2006-10-22Added header comments.rillig7-7/+53
2006-10-21If ${WRKSRC} does not yet exist in the configure phase, skip therillig1-1/+2
portability checks. Needed for the emulators/compat?? packages.
2006-10-21The "scan" program does not modify "$@".rillig1-7/+2
2006-10-21Fixed the "inconsistent update" problem when using the pkgsrc wrapperrillig3-7/+14
cache together with MAKE_FLAGS=-j. The cache file is now regenerated into a temporary file and then renamed (atomically) to the "real" cache file. Fixed some code that would fail when run in "set -e" mode. If you want to test the "set -e" mode, just uncomment the line in wrapper.sh.
2006-10-21Moved the check whether checkperms(1) exists from load time to run time.rillig1-12/+10
2006-10-21Documented a not-so-easily-fixed bug that occurs when stripping commentsrillig1-1/+3
off a line.
2006-10-21When CPP is defined as "cc -E" on Solaris with sunpro, the cc wrapperrillig1-3/+5
had been overwritten with the cpp wrapper, and the latter didn't define the necessary transformation rules. Fixed that.
2006-10-21Add two new options for viewvcadrianp1-0/+2
2006-10-18Added a stub describing the public interface of this file.rillig1-1/+16
2006-10-18Add cformat= to avoid an error and exit on the undefined variable.ben1-1/+2
2006-10-18Change from jlam that adds the ability to override the decompressor usedben1-7/+23
by extract.
2006-10-18Add ipa options.markd1-0/+6
2006-10-17Add an (up to date!) HTTP mirror for KDE sources, the first HTTP site in the ↵dsainty1-1/+2
preferred list on http://download.kde.org.
2006-10-17Added a missing line continuation in the README.html target.rillig1-2/+2
2006-10-17If /usr/bin/printf exists, it will be used.rillig1-1/+4
2006-10-17Added /usr/bin/printf.rillig1-1/+2
2006-10-17Use /usr/bin/printf if it exists.rillig1-1/+4
2006-10-16Since 2006/10/09 the ${PLIST} file does not contain the fullseb1-2/+3
pathnames anymore. Therefore cd to ${PREFIX} to correctly resolve the relative pathnames. While here unbreak CHECK_WRKREF for another reason: Append to ${ERROR_DIR}/${.TARGET} otherwise the "_NONZERO_FILESIZE_P" check is always false...
2006-10-15Include some more magic to set ownership of packages build withjoerg3-4/+17
use-destdir to ${ROOT_USER}:${ROOT_GROU}. This allows us to safely use it on all packages which don't install setuid/setgid binaries.
2006-10-15Rename some bugzilla options based on the upcomming 2.22 import and addadrianp1-3/+4
some extra ones as well.
2006-10-15Teach how to unpack .gem files.minskim4-4/+25
2006-10-15Darwin has gm4 and printf.minskim1-1/+3
2006-10-14Added the user-settable variable CCACHE_DIR, so that the cache can berillig1-2/+13
outside of WRKDIR. I don't see a reason for having the cache inside a directory that will go away on "make clean", but I left the default value as is.
2006-10-14Completely rewrote apache.mk and apachever.mk. The latter is now anrillig2-161/+107
alias for apache.mk, since I don't see a reason why a package should query the apache version without also adding a dependency on apache. Fixed the documentation to match the code. Made the code simpler. Added sanity checks for both package-settable and user-settable variables.
2006-10-13Creating an archive from the working directory may take some time forrillig1-1/+2
big packages, so print an informational message before doing that.
2006-10-13Added a new post-installation check to see whether the files have theirrillig3-2/+73
permissions properly set. See mk/check/check-perms.mk and sysutils/checkperms for details.
2006-10-12Linux shadow-utils provides a useradd that fails when creating a homeben1-0/+146
directory under a base directory hat does not exist. Add workaround to ensure that the base directory does exist. This addresses PR#34779
2006-10-12Warnings must only be prefixed by a warnings heading, not an errorrillig1-6/+13
heading.
2006-10-12Portability checks, version two.rillig3-31/+107
The actual check has moved into a shell file to allow for nice-looking code. Instead of only the configure scripts, it scans all files whose first line matches "#!*/bin/sh". Therefore the check is run no matter if HAS_CONFIGURE is set or not. Added a warning (not an error) for every use of $RANDOM that is not combined with $$, the process ID. $RANDOM is only implemented by bash and some versions of the ksh.
2006-10-11Add default DIALER_GROUP and explanation.reed1-1/+8
I forgot to commit this last week when I updated xisp package. (This is for PR 34780.)
2006-10-10Added printf to USE_TOOLS, because it is used heavily by the "debug" andrillig1-3/+3
"help" targets.
2006-10-10s/LOCALBASE/PREFIX/, but thanks for catching this.joerg1-2/+2
2006-10-09Since a few hours, the .PLIST file does not contain the full pathnamesrillig1-1/+2
anymore. Therefore, cd to ${LOCALBASE} to correctly resolve the relative pathnames.
2006-10-09Main infrastructure for DESTDIR support.joerg12-50/+119
Packages may set PKG_DESTDIR_SUPPORT to either "destdir" or "user-destdir" to flag support for this, following the same rules as PKG_INSTALLATION_TYPES (e.g. define before first include of bsd.prefs.mk). The user activates it via USE_DESTDIR. When set to "yes", packages with "user-destdir" are handled as "destdir". The installation of the package will not go to ${LOCALBASE}, but a subdirectory of ${WRKDIR} instead. pre/post install scripts are not run and the package is not registered either. A binary package can be created instead to be installed normally with pkg_add. For "user-destdir" packages, everything is run as normal user and ownership is supposed to be correctled by pkg_create later. Since the current pkg_install code uses pax and it doesn't allow overwriting owners, this does not work yet. For "destdir" packages, installation, packaging and cleaning is run as root. This commit does not change the handling of DEPENDS_TARGET or bin-install to allow recursive usage.
2006-10-09Add variable to control whether the install target is run as root.joerg2-2/+8
2006-10-09Add two variables to control whether make package and make cleanjoerg4-23/+20
are run with elevated privileges. Remove MAKE_PACKAGE_AS_ROOT for now, since it is not sure whether the functionality in the current form will stay and developers should spend time on the destdir support instead.
2006-10-09Introduce _SU_ROOT_USER, which can be used for partially unprivilegedjoerg1-4/+7
builds, when the normal ROOT_USER overrides should happen, but su-target is still desired to work.
2006-10-09Backout rev 1.13 of rillig. Addresses PR 34764 and complains onjoerg1-9/+7
pkgsrc-users.
2006-10-09Forgot to provide the default value for EXTRACT_DIR.rillig1-2/+4
EXTRACT_DIR may be given relative to WRKDIR.
2006-10-09Added the EXTRACT_DIR variable, which can be used if the distfiles shouldrillig1-2/+13
not be extracted into ${WRKDIR}.
2006-10-09Replaced the pipe operator with temporary files, since the former hidesrillig1-7/+9
errors. Now "make depends" stops on dependency directories that don't exist. The dependencies are first extracted into two temporary files and then combined with cat(1) because otherwise "make depends" passes silently on errors when it is called for the second time. Somehow ${.TARGET} didn't get removed.
2006-10-08Added a new variable MAKE_PACKAGE_AS_ROOT that controls whether therillig2-2/+19
package needs to be packed by root or whether the unprivileged user can do that as well. Most packages don't need root privileges, but the default value is nevertheless "yes" to not break too many existing packages. pkgsrc users are encouraged to add the following to their mk.conf: MAKE_PACKAGES_AS_ROOT?= no The "?=" operator here is important because after the testing phase, this variable is only intended to be set by packages. If "=" would be used instead, packages could not override the value.
2006-10-08Remove the +BUILD_DEFS file before overwriting it. This is necessary torillig1-3/+5
allow most of the packages to be created as unprivileged user, since the +BUILD_DEFS file is created by the privileged user in the "install" phase.
2006-10-08Made the code simpler and added "set -e".rillig1-7/+6
2006-10-08pkg/34695: Static list of package master sites may (and often will)mishka2-8/+32
lead to overloads of very first distribution site. Moreover, if first site in the list is not available (often seen for sourceforge mirrors) you have to wait for timeout each time. To distribute load on master distribution sites and to make second problem not so annoying randomly intermix list of MASTER_SITES with MASTER_SORT_RANDOM feature. Any of MASTER_SORT and MASTER_SORT_REGEX can be applied later. The feature is turned ON by default and is disabled for PKG_DEVELOPERs or if MASTER_SORT_RANDOM=no.
2006-10-07Meta-packages that had DIST_SUBDIR set (for whatever reason) tried torillig1-5/+5
fetch files with an empty name, for example "geda/". The problem was that the expression ${LIST:S,^,${DIST_SUBDIR}/,} results in ${DIST_SUBDIR}/ when ${LIST} is empty. This is surprising but matches the documentation in the manual page, so this cannot be called a bug. The proper fix is to use ${LIST:@f@${DIST_SUBDIR}/${f}@} instead. Noticed by Don Woodstock on #netbsd-code.
2006-10-07Renamed the "pack" option for _PRESERVE_WRKSRC to "pack-if-failed",rillig1-4/+5
since that's what I really wanted. It's just one day old, so I hope that nobody has gotten used to it.
2006-10-06Added more error checking: If a directory is specified inrillig1-1/+5
INSTALLATION_DIRS but a regular file of the same name already exists, the BSD install(1) program doesn't care but exits successfully. To avoid much more confusing error messages, this is checked here, and a _good_ error message is printed.
2006-10-06Instead of removing error and warning messages, they are collected inrillig1-7/+9
.error-done and .warning-done, so they can be inspected later.