summaryrefslogtreecommitdiff
path: root/Tools (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use YYYYMMDDHH for log files so we can have two builds on the sameSatoshi Asami2000-11-071-1/+8
| | | | | | | day. Remove lock file if package build aborts. Notes: svn path=/head/; revision=34894
* (1) New flag, -ftp, indicates packages are to be copied over to theSatoshi Asami2000-11-071-17/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ftp site (specified in portbuild.conf). (It used to be implied by -norestr.) (2) Remove x11-toolkits/Motif-dummy from list of dummy ports, since open-motif is now the default. Also gone is the MOTIF_OPEN variable. (3) Run the tar -czf of the ports tree and generation of CHECKSUM.MD5 in the background. (4) Print the amount of time it took for the entire process, as well as phase 1 and phase 2 of the compilations. (It is done by date -r, so it will only work modulo 24 hours. Hopefully the build will never go over 24 hours again.) (5) Make symlink of the form [ae].${branch}.YYYYMMDD -> [ae].${branch}.YYYYMMDDHH so we can have the simple "date" form as well as the new "date+hour" directories for logs. (6) Remove temporary make status files from /tmp that are over 60 minutes since the last modification. It was filling up the root filesystem. (7) Print out an "ls -lrt" of packages/All into logs/ls-lrt. This is going to be used to evaluate make's job dispatch policies. Notes: svn path=/head/; revision=34893
* Add standard 2-clause BSD license to protect my (and mharo's) copyright.Will Andrews2000-11-041-0/+24
| | | | Notes: svn path=/head/; revision=34802
* s|pkg/PLIST|pkg-plist|gMaxim Sobolev2000-10-211-3/+3
| | | | Notes: svn path=/head/; revision=34071
* Add update-patches, a script to generate updated versions of theTrevor Johnson2000-10-192-1/+139
| | | | | | | | | patches in a port. Obtained from: OpenBSD Notes: svn path=/head/; revision=33990
* Add plist, a script to automate the generation of a pkg-plist.Brian Feldman2000-10-172-0/+65
| | | | Notes: svn path=/head/; revision=33935
* Overhaul addport again. Should be quite functional now.Will Andrews2000-10-141-22/+70
| | | | | | | | | | | | | | | | | | | | | | 1) Re-add functionality removed in revision 1.11, but only as an option. This time, it checks out its own copy of ports/Mk and points PORTSDIR at the correct location. To use this, use the -a option. It will not work if it can't find portlint in your path. 2) Add option -f to disable fetching the distfile. 3) Add option -m to disable checking out a copy of Mk for 1). For those that have a current Mk in PORTSDIR and don't want to check out a fresh copy for whatever reason. 4) Support CVSROOT environment variable. 5) Note environment variables recognized by addport. 6) Fix breakage trying to use -d with multiple directories (not tested). 7) Actually use $interactive variable. 8) Update usage(). 9) Note original RCSID for my shell script; take over as MAINTAINER. Tested by: gshapiro (this revision was used in adding sendmail) Notes: svn path=/head/; revision=33809
* Add the first efforts on my mkptools, the successor to makeport.pl.Neil Blakey-Milner2000-10-144-0/+613
| | | | | | | | | | | | | | | | | | | | | | | | mkptools are broken up into simple scripts: mkpskel takes a distribution file as an argument and generates a skeleton; it guesses the extract method, the package name, and so forth, and generates populated Makefile and distinfo and empty pkg-descr, pkg-comment, and pkg-plist. mkpextr goes through the extract phase, and generates what it believes are the necessary variables necessary to build the port. It guesses the work source directory, what the Makefile is called, whether it has configure, whether to use libtool, and other bits such as wildly guessing kde, qt, gtk, gnome, and ssl requirements. Run it in a port directory, and it generates Makefile.extr. mkpmerge merges the results from mkpskel and mkpextr (and will later merge the results from the other phases) into Makefile. mkpclean cleans up any extra files that may be hanging about. Notes: svn path=/head/; revision=33807
* Since people don't seem to appreciate the fact that addport can doWill Andrews2000-10-111-26/+0
| | | | | | | | | | | automatic checking on their ports to be added, I'm removing it and its overriding -v option. Let the improper port additions continue, and screw anyone who doesn't care about the repo. Propelled by: obrien, msmith Notes: svn path=/head/; revision=33694
* Ajust for a new world order (md5 --> distinfo).Maxim Sobolev2000-10-091-3/+3
| | | | Notes: svn path=/head/; revision=33600
* Name change, files/md5 -> distinfo. (Only change is to message -- theSatoshi Asami2000-10-091-2/+2
| | | | | | | | | code actually detects both new and old errors.) Expand the USE_XLIB case to include Xosdefs.h. Notes: svn path=/head/; revision=33597
* Hack this file beyond recognition to cope with both the old and newSatoshi Asami2000-10-061-9/+12
| | | | | | | | | | | mtree outputs. Also change the title of the file from "List of extra files and directories" to "List of files and directories that do not match their mtree description", which is more accurate. Notes: svn path=/head/; revision=33453
* Need to quote su -c command with ", not ' since I've got variablesSatoshi Asami2000-10-061-1/+1
| | | | | | | in there (d'oh!). Notes: svn path=/head/; revision=33452
* Typo (/etc/portbuild -> /var/portbuild).Satoshi Asami2000-10-061-1/+1
| | | | Notes: svn path=/head/; revision=33451
* Comment out OSREL settings -- these are taken from /usr/bin/unameSatoshi Asami2000-10-061-5/+7
| | | | | | | in the chroot dirs (which is a hacked version) anyway. Notes: svn path=/head/; revision=33450
* Use -t flag with portlint.Will Andrews2000-10-041-1/+1
| | | | | | | Submitted by: trevor Notes: svn path=/head/; revision=33392
* Fix bogon where replies were not chomp()'d.Will Andrews2000-10-011-0/+1
| | | | | | | Submitted by: knu Notes: svn path=/head/; revision=33294
* Detect two more failures -- fetch timeout and runaway process (which isSatoshi Asami2000-09-291-0/+4
| | | | | | | really a make package timeout without output). Notes: svn path=/head/; revision=33245
* Don't delete modules, it might be needed.Satoshi Asami2000-09-271-1/+0
| | | | Notes: svn path=/head/; revision=33176
* Read in configuration variables from /var/portbuild/portbuild.conf.Satoshi Asami2000-09-272-4/+6
| | | | Notes: svn path=/head/; revision=33173
* Pull in configuration variables from /var/portbuild/portbuild.conf.Satoshi Asami2000-09-279-29/+48
| | | | | | | | | | | | /var/portbuild is the new designated home of the portbuild setup, and is expected to be a symlink to wherever you choose to put the stuff. Also, change reportload to use /var/portbuild to store temporary files. Seems there are some bugs in the null mount code that make the files inaccessible if you are using an NFS root. Notes: svn path=/head/; revision=33172
* A configuration file where all options reside.Satoshi Asami2000-09-271-0/+17
| | | | Notes: svn path=/head/; revision=33171
* A little script to call "at" to copy the packages.Satoshi Asami2000-09-271-0/+7
| | | | Notes: svn path=/head/; revision=33170
* Don't whack old packages, we have enough disk space to keep a few setsSatoshi Asami2000-09-271-31/+58
| | | | | | | | | | | | | | | | | | | | | | around now. Make a symlink "Makefile" so I don't have to "make -f ../../Makefile" when I'm restarting an aborted build. Print out pnohang messages along with ptimeout messages. Count the number of jobs at the beginning of the second phase too. Check integrity of packages at end with gzip -t. Remove the ones that don't pass the test. Don't try to compare list of packages if there is no prior list to compare with. If the -norestr flag is given, copy the packages to the ftp site. Notes: svn path=/head/; revision=33169
* Remove syslog message about a load file being empty -- I know it happens now.Satoshi Asami2000-09-271-1/+1
| | | | Notes: svn path=/head/; revision=33168
* Make sure you're given the "start" argument before trying to start the script.Satoshi Asami2000-09-271-0/+2
| | | | Notes: svn path=/head/; revision=33167
* Don't add packages that are already installed.Satoshi Asami2000-09-271-7/+17
| | | | | | | | Use pnohang to catch make checksum (fetch) or make package (usually an xemacs running away) that aren't making any progress. Notes: svn path=/head/; revision=33166
* A little script to kill makes that haven't printed out any message inSatoshi Asami2000-09-271-0/+70
| | | | | | | a while (presumably because they are hanging or are in an infinite loop). Notes: svn path=/head/; revision=33165
* Change "grep *.log" to "find . -name '*.log' | xargs grep", the number ofSatoshi Asami2000-09-261-1/+1
| | | | | | | logs were overflowing the argv array. Notes: svn path=/head/; revision=33164
* Catch one more case of XFree86-4 manpage building error.Satoshi Asami2000-09-261-0/+7
| | | | | | | | Mark ports that are already marked BROKEN (and don't build, predictably) with a red "[B]" for people to see. Notes: svn path=/head/; revision=33163
* Remove an extra message that only served to clutter the logs.Satoshi Asami2000-09-261-1/+1
| | | | Notes: svn path=/head/; revision=33162
* Don't try to process logs twice by protecting this script with a lock file.Satoshi Asami2000-09-261-1/+9
| | | | Notes: svn path=/head/; revision=33161
* Add -t and -n flags to ssh. (-t flag suggested by: ps)Satoshi Asami2000-09-261-4/+4
| | | | | | | | This seems to fix a lot of the hang problems to bump up the timeout from 5 hours to 12 hours. Notes: svn path=/head/; revision=33160
* Change lock file name to "cppackages.lock" so it's clear it's a lock.Satoshi Asami2000-09-261-1/+1
| | | | Notes: svn path=/head/; revision=33159
* When NODUMMY is defined, set XFREE86_VERSION to 4 and MOTIF_OPEN to t.Satoshi Asami2000-09-262-0/+15
| | | | | | | These are for testing the split-up XFree86-4 ports and open-motif. Notes: svn path=/head/; revision=33158
* Don't remove the distfiles from the backup directory -- the nextSatoshi Asami2000-09-261-2/+0
| | | | | | | run of dopackages will take care of it. Notes: svn path=/head/; revision=33157
* Exit with error status in ${portbuild}/status when an error occurs.Satoshi Asami2000-08-291-45/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make INDEX build failure a fatal error. Copy INDEX to INDEX-${branch} for later perusal. There is no -a flag in OpenSSH's scp. Use sed to remove /usr/ports and stuff from restricted.sh and cdrom.sh, so they can be run without further modification using relative directories. Take more options, namely -norestr (don't build RESTRICTED ports), -noplistcheck (turn off "extra files check"), and -nodummy (use open-motif instead of Motif-dummy and XFree86-4-* instead of XFree86-3). -nodummy will become the default soon. Also a new flag -nocvs will prevent cvs update on ${branch}/src only (while -nocvsup will prevent cvsup and cvs update on usr/ports). -nocvs is to be used when builds for more than one branch shares a same cvsup session. Write out time cvsup is done so it can be used by log processing scripts. Handle dummy ports by using a more generic approach -- list the directories they reside in (e.g., x11-toolkits/Motif-dummy) and generate the package name from there, instead of hardcoding them package names everywhere. Hopefully this will go away when we get rid of the special case handling for Motif and XFree86. Add something called "quickports" -- these are packages with very long dependency lists that always seem to throttle the parallel build near the end. By spelling them out explicitly, try to make make build dependencies for them earlier while there are a lot of other stuff to do. (Our make doesn't do anything with the target list, but maybe I can fix that someday.) Copy bindist.tar to clients before the second run of package build too. It can be useful to "sneak" in fixes if something minorly wrong is discovered in the bindist during the first run. Since there is a md5 checking, this copying will not be done unless the files are actually different. When -norestr is set, delete restricted packages and distfiles using restricted.sh immediately after completion of package build. Generate CHECKSUM.MD5 after packages are built. Copy distfiles over to the ftp site after everything is done. This is run in the background on bak/distfiles so the next package build can immediately start. Notes: svn path=/head/; revision=32091
* Split build into two phases, checksum and package, and copy theSatoshi Asami2000-08-291-18/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | distfile to the server right after checksum. This will make it possible to "harvest" distfiles even for ports that don't currently build. (This was a reason for a lot of distfiles being lost in the past -- someone commits a broken port, distfile doesn't get fetched to ftp.FreeBSD.org since package doesn't build, and distfile is gone from the master site before the port is fixed.) This also enables more efficient sharing of distfiles since we can set MASTER_SITE_OVERRIDE to the port build server and have a better chance of finding the distfiles there. Instead of using a simple make package | tee, redirect the output of make package into a separate log file and concatenate it later. For some reason, the gconf build always hangs after the build succeeds (tee doesn't exit). Handle the new arguments (-norestr for NO_RESTRICTED, -noplistcheck for NOPLISTCHECK and -nodummy for NODUMMY) by converting them to environment variables. Add the branch=5 case. Run ldconfig on /usr/lib/compat too. Notes: svn path=/head/; revision=32090
* Instead of doing a pwd | grep (duh!) to find the branch we areSatoshi Asami2000-08-291-15/+16
| | | | | | | | | | building ports for, pass it as an argument. Pass NO_RESTRICTED, NOPLISTCHECK and NODUMMY to ssh as flags when said environment variables are set. Notes: svn path=/head/; revision=32088
* The errors and logs are now in the archive directory namedSatoshi Asami2000-08-291-1/+1
| | | | | | | | [ae].${branch}.${date}, and "logs" and "errors" are just symlinks to them. Notes: svn path=/head/; revision=32087
* Change find command line to find potential security hazards (portsSatoshi Asami2000-08-291-2/+2
| | | | | | | | | that install setupd binaries etc.) Submitted by: kris Notes: svn path=/head/; revision=32086
* Run build on three branches. Check the status file filled out bySatoshi Asami2000-08-291-3/+39
| | | | | | | | | | | | dopackages and abort build if there were any errors. It intentionally leaves lock files behind in that case because it usually requires my manual intervention to fix whatever's wrong (usually a botched INDEX build due to someone forgetting to update dependency lines) and we don't want subsequent failed tries to wipe out all the good packages and distfiles we have accumulated. Notes: svn path=/head/; revision=32085
* Handle arbitrary number of log directories instead of just two.Satoshi Asami2000-08-291-22/+37
| | | | Notes: svn path=/head/; revision=32084
* Ignore empty loads files -- it seems scp in OpenSSH sometimes leavesSatoshi Asami2000-08-291-1/+5
| | | | | | | | | files empty even if the original target and the new source are both non-empty. (Old ssh1 never did that, but whether this is a bug is not obvious.) Notes: svn path=/head/; revision=32083
* Handle three branches instead of two. Use a for loop instead of justSatoshi Asami2000-08-291-12/+13
| | | | | | | | listing calls to comparelogs etc., so we can expand it into the future (no, not 4 branches, but maybe another architecture). Notes: svn path=/head/; revision=32082
* Add -f to forcefully umount /usr/src and /usr/obj before reboot.Satoshi Asami2000-08-291-1/+1
| | | | Notes: svn path=/head/; revision=32081
* Add branch=5 case and update some variables. Don't set NO_RESTRICTED,Satoshi Asami2000-08-291-5/+14
| | | | | | | | | | this will be passed down by calling scripts if necessary. Remove extra spaces in dependency list -- this sometimes confuses make for some reason. Notes: svn path=/head/; revision=32080
* Add branch=5 case and update some variables. Don't set NO_RESTRICTED,Satoshi Asami2000-08-291-5/+11
| | | | | | | this will be passed down by calling scripts if necessary. Notes: svn path=/head/; revision=32079
* Print uptime after the number of jobs running. This has no functionalSatoshi Asami2000-08-291-1/+2
| | | | | | | | | effect since the job scheduler will only look at the first field, but will give humans looking at the load reports some idea about the machines (especially crashes). Notes: svn path=/head/; revision=32078
* A little script that tries to "undo" a package build. Basically just renamesSatoshi Asami2000-08-291-0/+6
| | | | | | | a bunch of directories back. Use it when you want to void a botched build. Notes: svn path=/head/; revision=32077