summaryrefslogtreecommitdiff
path: root/Mk
AgeCommit message (Collapse)Author
1996-03-10Replace PATCH_PRFX with a more generic DIST_SUBDIR. If it is set toSatoshi Asami
"foo", what this does is: (1) Put all distfiles and patchfiles in /usr/ports/distfiles/foo (2) Go to ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/foo when the master site is down When your port has a lot of dist/patchfiles, or has a file that does not have a very port-specific name (e.g., "Makefile"), set this variable instead of redefining DISTDIR. (If you redefine DISTDIR, (1) will work but (2) will not.) Agreed that it's a good idea by: adam
1996-03-06Delete all references to the variable ${KEYWORD} that never quite flew.Satoshi Asami
(Sorry Jordan, but your other idea (${CATEGORIES}) was a major hit.) Also remove the keyword field in the INDEX line and replace it with two columns: build-time dependencies and run-time dependencies. They are both list of package names (minus the ".tgz").
1996-03-06Replace absolute pathnames with variables, so thatSatoshi Asami
(1) people can have weird paths and it will still work, and (2) if you really need to use /usr/local/bin/cp instead of /bin/cp, you can do that by changing only one line. Submitted by: wosch
1996-02-16Add a check for when the user tries to FTP over a symlink in ${DISTDIR}.Jordan K. Hubbard
1996-02-08correct semantic error in the English usage:Adam David
distributed patches --> distribution patches
1996-02-07Mention "make reinstall" in the message that gets printed out whenSatoshi Asami
/var/db/pkg/${PKGNAME} exists. ("make install" will do nothing because this is not a critical error and the installation is treated as successful.) Closes PR 870.
1996-02-06Add NCFTP tailer arguments: ${NCFTPTAIL} variableAndrey A. Chernov
Since it is empty in normal case, it not affect anything It is useful for ncftp -c ugly_name > nice_name ^^^^^^^^^^^ ${NCFTPTAIL}
1995-12-07Add support for ALL_HOOK feature. Lets you replace the `all' targetJordan K. Hubbard
with something of your own devising.
1995-11-26Make the {FETCH,BUILD,RUN}_DEPEND targets work with non-executable filesSatoshi Asami
too. Basically, if the name starts with a "/", it's tested with "test -e"; otherwise, it's tested with "witch -s". Reviewed by: the ports list (well at least nobody complained)
1995-11-17Use NO_MTREE, not !USE_X11 && !USE_IMAKE, to determine package args.Satoshi Asami
NO_MTREE should work as advertised (for both direct installation and pkg_add) now.
1995-10-17Back out the two latest changes. The -current branch is now equal toSatoshi Asami
the -stable branch except the change between 1.182 -> 1.183.
1995-10-16Add NO_FETCH handling in the similar way as other NO_* targets doesAndrey A. Chernov
1995-10-16Fix NO_EXTRACT case: build missing WRKDIRAndrey A. Chernov
Previous variant always fails on touch work/.extract_cookie (or next following touches) because work directory not exists.
1995-10-11Add "--batch" to PATCH_ARGS and PATCH_DIST_ARGS when ${BATCH} is setSatoshi Asami
to avoid an infinite loop in patch when the patch target is not found and stdin is redirected from /dev/null (the "skip this patch? [n]" question).
1995-10-04Add CONFIGURE_ENV: pass this environment to configure script.Andrey A. Chernov
Allows pre-set some variables to eliminate wrong tests
1995-10-04Attempt to sound more civilized by adding a missing period toSatoshi Asami
"Attempting to fetch from $${site}." Why it was in PATCHFILES and not in DISTFILES, I have no idea.
1995-10-02Use full pathname for ldconfig (/sbin/ldconfig).Satoshi Asami
Hinted by: joerg
1995-09-18Split EXEC_DEPENDS into FETCH_DEPENDS, BUILD_DEPENDS and RUN_DEPENDS.Satoshi Asami
They are called from the fetch, extract and install targets, respectively. Also, only RUN_DEPENDS is put into the @pkgdep list of the package. EXEC_DEPENDS is still supported (for now), it is copied into BUILD_DEPENDS and RUN_DEPENDS. This will go away after we finish fixing all the ports Makefiles. This change fixes the following bug/features: (1) "make fetch" building and installing all the dependencies (2) Programs needed for building only (e.g., gmake) put into the packages' dependency lists ("why does the emacs package depend on gmake?") Reviewed by: the ports list
1995-09-13Ignore patchfiles that end with ".orig" or "~".Satoshi Asami
Suggested by: paul, joerg among others
1995-08-29Don't trust ncftp's exit status, they are not indicative of whetherSatoshi Asami
the file is fetched or not. Apparently Jordan fixed it a long time ago but it was broken again at import of the new version of ncftp. Which means even if we fix it, it may break again and we may need to fix it again, and (imagination here, please).... Instead, move the file existence check into the for loop for MASTER_SITES/PATCH_SITES and break out with "continue 2" when the file is found. This is actually a cleaner logic than before if you ask me, because instead of assuming the file is fetched on a 0 exit status from ncftp AND checking for the existence of the file after the loop, the check is done exactly once for each iteration and nowhere else.
1995-08-29Clean up EXTRACT_ONLY logic a bit. Instead of branching in theSatoshi Asami
do-extract target depending on defined(EXTRACT_ONLY) or not, simply set EXTRACT_ONLY ?= ${DISTFILES} and always use ${EXTRACT_ONLY} as the extraction list.
1995-08-18Merge all the "skeleton" target into one macro. This is an enormousSatoshi Asami
change, but I've been testing this on thud and silvia for quite a while, also I haven't gotten any bug reports from the ports list, so I'm going to let it loose! It cleans up this file quite a bit, now I can go in and start adding some more "interesting" things.... ;)
1995-07-24Let MASTER_SITE_OVERRIDE be prepended to the MASTER_SITES list insteadSatoshi Asami
of replacing it. This way you can point it to a site close to you that carries many distfiles, and still let it go fetch from the original site if the distfile is not there. Original idea by: mmead@Glock.COM
1995-07-17Simplify the USE_IMAKE stuff considerably.Jordan K. Hubbard
Suggested by: asami
1995-07-15A regrettable hack to allow a port to say that it doesn't want its MakefilesJordan K. Hubbard
made after the xmkmf run.
1995-07-11Add IS_DEPENDED_TARGET to change the behavior of a port when you wantSatoshi Asami
to do something else than "install". For example, make IS_DEPENDED_TARGET=fetch fetch will fetch the required distfiles including those of the dependencies without actually building and installing dependencies. Also document ECHO_MSG. Requested by: paul Reviewed by: paul, jhs and others
1995-06-26UseSatoshi Asami
ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/ as our distribution point for distfiles and patches. Other than cosmetic changes (freebsd.cdrom.com -> ftp.freebsd.org), the omission of "ports" is important. I would like to move this directory completely out of the ports tree (on the ftp site), so that people who do "get ports.tar.gz" won't get a bogus distfiles -> ../distfiles symlink (which will make "make fetch" fail). Sometime around the 2.1 release, the distfiles link will be deleted.
1995-06-26Use full pathnames for the commands. Everything except gmake andSatoshi Asami
xmkmf (i.e., everything in the base distribution) should be referred to by full pathnames. Suggested by: rgrimes, originally from one of his customers
1995-06-26Check if uid is 0 before running mtree. If you aren't root, you justSatoshi Asami
get a message (instead of a bunch of crap from mtree).
1995-06-25Add new option NO_MTREE. If set, bsd.port.mk won't run mtree toSatoshi Asami
set permissions and ownerships of PREFIX (usually /usr/local). This is the default if USE_IMAKE or USE_X11 is set. This should be useful for machines like thud, where we want to keep the /usr/local subtree writable to a group ("ports" in our case). Anybody who installs stuff in /usr/local should have this set in the environment. Note this won't affect anything the pkg_* suite does.
1995-06-24Add a "checkpatch" target that does a "patch -C" instead of a "patch".Satoshi Asami
Note that the two "touch"s I took out from do-patch shouldn't have been there in the first place. This target may give incorrent results if two separate patches deal with the same file, and their hunks overlap. (But having those kinds of patches are bad, and they should be merged anyway.) Reviewed by: hsu
1995-06-06Renamed the default package repository ".../packages/.packages" toSatoshi Asami
".../packages/All". The "all" category that was automatically added for every package is gone. Note that bsd.port.mk requires category names to start with lowercase names, otherwise it may get confused. Reviewed by: jkh By the way, here is a small script to convert your local package hierarchy. Run it in bash, as /bin/sh not only will bark at the $(.) command substitution but will also botch the [a-z]*/*.tgz expansion (long-standing and annoying bug, reported before). cd /usr/ports/packages mv .packages All for i in [a-z]*/*.tgz; do j=$(basename $i) /bin/rm $i ln -s ../All/$j $i done
1995-05-29Remove comment about not being able to undefine a variable, as we *can*Satoshi Asami
do that.
1995-05-16Fix the indent level. I know we're in code freeze, and this isSatoshi Asami
one of the key components of the system, but I'm sure that this: === - ${ECHO_MSG} "===> Registering installation for ${PKGNAME}"; \ + ${ECHO_MSG} "===> Registering installation for ${PKGNAME}"; \ === change has absolutely no chance to screw us up, right? :)
1995-05-13Don't conditionalize fake-pkg on NO_PACKAGE.Satoshi Asami
1995-05-13Add FORCE_PACKAGE, if this is defined, NO_PACKAGE will be turned off.Satoshi Asami
Ports for which we can't build packages should define NO_PACKAGE but still prepare pkg/* files. The user who really wants a package and clear of the legal problems can say FORCE_PACKAGE from the command line to build a package anyway.
1995-05-12When NO_PACKAGE is set, "package" and "repackage" don't depend onSatoshi Asami
"install". In other words, they won't do anything at all.
1995-05-12Not only deleting the package and package links, also exit with statusSatoshi Asami
1 if pkg_create returns error!
1995-05-12Delete package and links when pkg_create fails.Satoshi Asami
1995-05-10Add new variable to override the "hey foobar-1.2.3 is already installed"Satoshi Asami
warning from fake-pkg. # FORCE_PKG_REGISTER - If set, it will overwrite any existing package # registration information in ${PKG_DBDIR}/${PKGNAME}.
1995-05-09Make the "reinstall" target delete the package cookie as well asSatoshi Asami
the install cookie.
1995-05-04added support for distribution patches in a subdir of ${DISTFILES}Adam David
1995-05-04Put an `@' in front of the mtree command. I don't want to see it.Jordan K. Hubbard
1995-05-02Add an mtree line to the install target.Jordan K. Hubbard
1995-04-30A bunch of new targets in the package area. Relevent targets are:Satoshi Asami
package: check installation, build package, create links, touch cookie repackage: ditto but don't check cookie package-noinstall: just build package from installed stuff, no cookies involved at all package-links create the symbolic links only delete-package: delete package and symbolic links delete-package-links: delete links only These should make the management of the spaghetti of package links a little friendlier. :)
1995-04-28Pass X11BASE to all sub-makes. I need it for a port, and I daresay thatJordan K. Hubbard
there are a lot of hardwired "/usr/X11R6" paths out there that could stand to use it as well.
1995-04-24(1) Add the chain of dependencies to the targets in the NO_* sectionSatoshi Asami
too (otherwise the chain won't work). (2) If NO_WRKDIR is set, "make clean" removes "./.*_done" (assuming these are cookies...or should I list all the cookies?)
1995-04-24Move call of fake-pkg from do-install to end of install.Satoshi Asami
1995-04-22Ok, this should get the last of the stragglers installed into a new fake-pkg.Jordan K. Hubbard
1995-04-22Don't try to run the fake-pkg target if NO_PACKAGE is set.Jordan K. Hubbard