aboutsummaryrefslogtreecommitdiff
path: root/Mk
Commit message (Collapse)AuthorAgeFilesLines
...
* Ignore patchfiles that end with ".orig" or "~".Satoshi Asami1995-09-131-5/+19
| | | | | | | Suggested by: paul, joerg among others Notes: svn path=/head/; revision=2147
* Don't trust ncftp's exit status, they are not indicative of whetherSatoshi Asami1995-08-291-14/+12
| | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=2129
* Clean up EXTRACT_ONLY logic a bit. Instead of branching in theSatoshi Asami1995-08-291-10/+5
| | | | | | | | | do-extract target depending on defined(EXTRACT_ONLY) or not, simply set EXTRACT_ONLY ?= ${DISTFILES} and always use ${EXTRACT_ONLY} as the extraction list. Notes: svn path=/head/; revision=2128
* Merge all the "skeleton" target into one macro. This is an enormousSatoshi Asami1995-08-181-237/+149
| | | | | | | | | | | | 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.... ;) Notes: svn path=/head/; revision=2070
* Let MASTER_SITE_OVERRIDE be prepended to the MASTER_SITES list insteadSatoshi Asami1995-07-241-3/+3
| | | | | | | | | | | 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 Notes: svn path=/head/; revision=2004
* Simplify the USE_IMAKE stuff considerably.Jordan K. Hubbard1995-07-171-9/+1
| | | | | | | Suggested by: asami Notes: svn path=/head/; revision=1985
* A regrettable hack to allow a port to say that it doesn't want its MakefilesJordan K. Hubbard1995-07-151-1/+5
| | | | | | | made after the xmkmf run. Notes: svn path=/head/; revision=1969
* Add IS_DEPENDED_TARGET to change the behavior of a port when you wantSatoshi Asami1995-07-111-2/+18
| | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=1943
* UseSatoshi Asami1995-06-261-6/+6
| | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=1888
* Use full pathnames for the commands. Everything except gmake andSatoshi Asami1995-06-261-93/+99
| | | | | | | | | | xmkmf (i.e., everything in the base distribution) should be referred to by full pathnames. Suggested by: rgrimes, originally from one of his customers Notes: svn path=/head/; revision=1887
* Check if uid is 0 before running mtree. If you aren't root, you justSatoshi Asami1995-06-261-2/+7
| | | | | | | get a message (instead of a bunch of crap from mtree). Notes: svn path=/head/; revision=1882
* Add new option NO_MTREE. If set, bsd.port.mk won't run mtree toSatoshi Asami1995-06-251-2/+8
| | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=1876
* Add a "checkpatch" target that does a "patch -C" instead of a "patch".Satoshi Asami1995-06-241-3/+20
| | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=1870
* Renamed the default package repository ".../packages/.packages" toSatoshi Asami1995-06-061-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | ".../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 Notes: svn path=/head/; revision=1824
* Remove comment about not being able to undefine a variable, as we *can*Satoshi Asami1995-05-291-3/+2
| | | | | | | do that. Notes: svn path=/head/; revision=1803
* Fix the indent level. I know we're in code freeze, and this isSatoshi Asami1995-05-161-2/+2
| | | | | | | | | | | | 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? :) Notes: svn path=/head/; revision=1764
* Don't conditionalize fake-pkg on NO_PACKAGE.Satoshi Asami1995-05-131-5/+1
| | | | Notes: svn path=/head/; revision=1734
* Add FORCE_PACKAGE, if this is defined, NO_PACKAGE will be turned off.Satoshi Asami1995-05-131-1/+7
| | | | | | | | | | 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. Notes: svn path=/head/; revision=1702
* When NO_PACKAGE is set, "package" and "repackage" don't depend onSatoshi Asami1995-05-121-3/+3
| | | | | | | "install". In other words, they won't do anything at all. Notes: svn path=/head/; revision=1690
* Not only deleting the package and package links, also exit with statusSatoshi Asami1995-05-121-1/+2
| | | | | | | 1 if pkg_create returns error! Notes: svn path=/head/; revision=1686
* Delete package and links when pkg_create fails.Satoshi Asami1995-05-121-4/+7
| | | | Notes: svn path=/head/; revision=1684
* Add new variable to override the "hey foobar-1.2.3 is already installed"Satoshi Asami1995-05-101-1/+6
| | | | | | | | | warning from fake-pkg. # FORCE_PKG_REGISTER - If set, it will overwrite any existing package # registration information in ${PKG_DBDIR}/${PKGNAME}. Notes: svn path=/head/; revision=1671
* Make the "reinstall" target delete the package cookie as well asSatoshi Asami1995-05-091-1/+2
| | | | | | | the install cookie. Notes: svn path=/head/; revision=1665
* added support for distribution patches in a subdir of ${DISTFILES}Adam David1995-05-041-18/+28
| | | | Notes: svn path=/head/; revision=1611
* Put an `@' in front of the mtree command. I don't want to see it.Jordan K. Hubbard1995-05-041-2/+2
| | | | Notes: svn path=/head/; revision=1606
* Add an mtree line to the install target.Jordan K. Hubbard1995-05-021-1/+6
| | | | Notes: svn path=/head/; revision=1586
* A bunch of new targets in the package area. Relevent targets are:Satoshi Asami1995-04-301-14/+44
| | | | | | | | | | | | | | | | | 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. :) Notes: svn path=/head/; revision=1558
* Pass X11BASE to all sub-makes. I need it for a port, and I daresay thatJordan K. Hubbard1995-04-281-18/+18
| | | | | | | | there are a lot of hardwired "/usr/X11R6" paths out there that could stand to use it as well. Notes: svn path=/head/; revision=1547
* (1) Add the chain of dependencies to the targets in the NO_* sectionSatoshi Asami1995-04-241-10/+12
| | | | | | | | | 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?) Notes: svn path=/head/; revision=1518
* Move call of fake-pkg from do-install to end of install.Satoshi Asami1995-04-241-4/+4
| | | | Notes: svn path=/head/; revision=1513
* Ok, this should get the last of the stragglers installed into a new fake-pkg.Jordan K. Hubbard1995-04-221-1/+4
| | | | Notes: svn path=/head/; revision=1482
* Don't try to run the fake-pkg target if NO_PACKAGE is set.Jordan K. Hubbard1995-04-221-1/+3
| | | | Notes: svn path=/head/; revision=1479
* Typo: patch -> packageJordan K. Hubbard1995-04-221-2/+2
| | | | Notes: svn path=/head/; revision=1478
* Instead of copying PLIST over, run pkg_create in a special mode that dumpsJordan K. Hubbard1995-04-221-2/+2
| | | | | | | the fully-formed PLIST to stdout and uses that. Notes: svn path=/head/; revision=1476
* Major overhaul. The major targets (fetch, extract, patch, configure,Satoshi Asami1995-04-201-357/+532
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | build, install) are now all skeletons and do nothing but (1) Call pre-* target (if exists) (2) Call scripts/pre-* script (if exists) (3) Call do-* target (4) Call post-* target (if exists) (5) Call scripts/post-* script (if exists) The do-* targets do all the work. The pre-* and post-* targets/scripts don't exist by default. The main targets check for the cookies too, so porters shouldn't have to worry about them at all. NOTE: THE MAIN TARGETS IN THE PORTS MAKEFILES SHOULD GO AWAY. We need to fix this before wcarchive comes back up. Change the names to do-*, rip out the cookies, rip out the calls to pre-* etc. and most of them should work. Also, reorganize the whole thing so that similar targets are together and add more comments. Surround section header with 64 #'s (C-u C-u C-u # in emacs :). Hopefully this will be the last major change to bsd.port.mk. Now let the Makefile-hacking begin. Notes: svn path=/head/; revision=1470
* 1. Add Satoshi's much-requested "fake pkg_add" option to the installationJordan K. Hubbard1995-04-191-1/+29
| | | | | | | | | | | | | rule. 2. Have all non-X11 prefix using packages include the BSD.local.dist mtree file for initialization of /usr/local. I'm still not sure if this is A Good Thing(tm) but I'll see what the users say. It's easily overridden. 3. Standardise on ${PKG_DBDIR} as pointer to /var/db/pkg or local preference. Notes: svn path=/head/; revision=1466
* Use PKGNAME in the "describe" target (used to generate INDEX) too.Satoshi Asami1995-04-181-2/+2
| | | | | | | Didn't make sense to have two ports with the same name. Notes: svn path=/head/; revision=1449
* Use PKGNAME instead of DISTNAME in messages. To avoid things likeSatoshi Asami1995-04-181-20/+20
| | | | | | | | | | | | | "Building for WWW" (pops up in two different ports) "Installing for web2c-6.1" (ditto), which aren even't reminiscent of the port's real name. Sorry jmz, please don't go fix the print Makefiles' own messages. We are going to take them out after we do the great bsd.port.mk update anyway. Notes: svn path=/head/; revision=1448
* "package" now depends on "install", so we can do "make -k package" fromSatoshi Asami1995-04-171-2/+18
| | | | | | | | | | | the top level and have the build-package sequence of each port work together. For the old behavior (i.e, just go ahead and blindly pack everything up, regardless of the contents of work/), there is a new target "repackage". Notes: svn path=/head/; revision=1423
* "all" now depends on "build", not "extract configure build".Satoshi Asami1995-04-171-2/+2
| | | | | | | | | | | | | Since "build" depends on "configure", which depends on "patch", etc., this shouldn't disrupt any Makefile that doesn't break the dependency chain. The old behavior was very annoying because when I did a "make -k", it would still try to go configure and build even if the extraction failed. Notes: svn path=/head/; revision=1422
* Yikes...typo (.package/ should have been .packages/).Satoshi Asami1995-04-151-2/+2
| | | | Notes: svn path=/head/; revision=1380
* Don't pass duplicate pkgdeps to pkg_createJordan K. Hubbard1995-04-101-3/+3
| | | | Notes: svn path=/head/; revision=1321
* Add new -P argument to pkg_create.Jordan K. Hubbard1995-04-091-2/+2
| | | | Notes: svn path=/head/; revision=1317
* Add 2 new targets to facilitate some things I'm thinking about.Jordan K. Hubbard1995-04-091-1/+21
| | | | | | | | | | 1. package-name Simply echos the associated package name for a port (if any). 2. package-depends Shows all package names on which this port depends. Notes: svn path=/head/; revision=1316
* 1. Fix the first line (should be a proper comment - silly emacs).Jordan K. Hubbard1995-04-091-3/+4
| | | | | | | | 2. KEYWORDS+= CATEGORIES 3. CATEGORIES+= all (always want to be in "all"!) Notes: svn path=/head/; revision=1315
* Add support for categorized subdirectories for packages. By default,Satoshi Asami1995-04-091-6/+25
| | | | | | | | | | | | all .tgz files go to /usr/ports/packages/.packages, and a relative symlink is created for every item in CATEGORIES...i.e., if "CATEGORIES = foo bar", then /usr/ports/packages/{foo,bar}/pkgname.tgz both point to /usr/ports/packages/.packages/pkgname.tgz. Suggested by: jkh Notes: svn path=/head/; revision=1313
* Add USE_X11 for ports which are X11 users but don't use IMAKE.Jordan K. Hubbard1995-04-041-2/+3
| | | | Notes: svn path=/head/; revision=1286
* Remove a `.' from the end of the echo lineGary Palmer1995-04-041-2/+2
| | | | | | | `>> Attempting to fetch from $${site}' as it is misleading Notes: svn path=/head/; revision=1284
* By default, KEYWORDS is a copy of CATEGORIES.Jordan K. Hubbard1995-04-011-2/+2
| | | | Notes: svn path=/head/; revision=1266
* Add default values and document them for CATEGORIES and KEYWORDS.Jordan K. Hubbard1995-04-011-3/+3
| | | | Notes: svn path=/head/; revision=1265