summaryrefslogtreecommitdiffstats
path: root/Tools
Commit message (Collapse)AuthorAgeFilesLines
* s|pkg/PLIST|pkg-plist|gsobomax2000-10-211-3/+3
|
* Add update-patches, a script to generate updated versions of thetrevor2000-10-192-1/+139
| | | | | | patches in a port. Obtained from: OpenBSD
* Add plist, a script to automate the generation of a pkg-plist.green2000-10-172-0/+65
|
* Overhaul addport again. Should be quite functional now.will2000-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)
* Add the first efforts on my mkptools, the successor to makeport.pl.nbm2000-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.
* Since people don't seem to appreciate the fact that addport can dowill2000-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
* Ajust for a new world order (md5 --> distinfo).sobomax2000-10-091-3/+3
|
* Name change, files/md5 -> distinfo. (Only change is to message -- theasami2000-10-091-2/+2
| | | | | | code actually detects both new and old errors.) Expand the USE_XLIB case to include Xosdefs.h.
* Hack this file beyond recognition to cope with both the old and newasami2000-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.
* Need to quote su -c command with ", not ' since I've got variablesasami2000-10-061-1/+1
| | | | in there (d'oh!).
* Typo (/etc/portbuild -> /var/portbuild).asami2000-10-061-1/+1
|
* Comment out OSREL settings -- these are taken from /usr/bin/unameasami2000-10-061-5/+7
| | | | in the chroot dirs (which is a hacked version) anyway.
* Use -t flag with portlint.will2000-10-041-1/+1
| | | | Submitted by: trevor
* Fix bogon where replies were not chomp()'d.will2000-10-011-0/+1
| | | | Submitted by: knu
* Detect two more failures -- fetch timeout and runaway process (which isasami2000-09-291-0/+4
| | | | really a make package timeout without output).
* Don't delete modules, it might be needed.asami2000-09-271-1/+0
|
* Read in configuration variables from /var/portbuild/portbuild.conf.asami2000-09-272-4/+6
|
* Pull in configuration variables from /var/portbuild/portbuild.conf.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.
* A configuration file where all options reside.asami2000-09-271-0/+17
|
* A little script to call "at" to copy the packages.asami2000-09-271-0/+7
|
* Don't whack old packages, we have enough disk space to keep a few setsasami2000-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.
* Remove syslog message about a load file being empty -- I know it happens now.asami2000-09-271-1/+1
|
* Make sure you're given the "start" argument before trying to start the script.asami2000-09-271-0/+2
|
* Don't add packages that are already installed.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.
* A little script to kill makes that haven't printed out any message inasami2000-09-271-0/+70
| | | | a while (presumably because they are hanging or are in an infinite loop).
* Change "grep *.log" to "find . -name '*.log' | xargs grep", the number ofasami2000-09-261-1/+1
| | | | logs were overflowing the argv array.
* Catch one more case of XFree86-4 manpage building error.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.
* Remove an extra message that only served to clutter the logs.asami2000-09-261-1/+1
|
* Don't try to process logs twice by protecting this script with a lock file.asami2000-09-261-1/+9
|
* Add -t and -n flags to ssh. (-t flag suggested by: ps)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.
* Change lock file name to "cppackages.lock" so it's clear it's a lock.asami2000-09-261-1/+1
|
* When NODUMMY is defined, set XFREE86_VERSION to 4 and MOTIF_OPEN to t.asami2000-09-262-0/+15
| | | | These are for testing the split-up XFree86-4 ports and open-motif.
* Don't remove the distfiles from the backup directory -- the nextasami2000-09-261-2/+0
| | | | run of dopackages will take care of it.
* Exit with error status in ${portbuild}/status when an error occurs.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.
* Split build into two phases, checksum and package, and copy theasami2000-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.
* Instead of doing a pwd | grep (duh!) to find the branch we areasami2000-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.
* The errors and logs are now in the archive directory namedasami2000-08-291-1/+1
| | | | | [ae].${branch}.${date}, and "logs" and "errors" are just symlinks to them.
* Change find command line to find potential security hazards (portsasami2000-08-291-2/+2
| | | | | | that install setupd binaries etc.) Submitted by: kris
* Run build on three branches. Check the status file filled out byasami2000-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.
* Handle arbitrary number of log directories instead of just two.asami2000-08-291-22/+37
|
* Ignore empty loads files -- it seems scp in OpenSSH sometimes leavesasami2000-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.)
* Handle three branches instead of two. Use a for loop instead of justasami2000-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).
* Add -f to forcefully umount /usr/src and /usr/obj before reboot.asami2000-08-291-1/+1
|
* Add branch=5 case and update some variables. Don't set NO_RESTRICTED,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.
* Add branch=5 case and update some variables. Don't set NO_RESTRICTED,asami2000-08-291-5/+11
| | | | this will be passed down by calling scripts if necessary.
* Print uptime after the number of jobs running. This has no functionalasami2000-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).
* A little script that tries to "undo" a package build. Basically just renamesasami2000-08-291-0/+6
| | | | a bunch of directories back. Use it when you want to void a botched build.
* A small script to copy packages over to the ftp site. It is not integratedasami2000-08-291-0/+35
| | | | into the main build scripts yet so you need to call this one manually.
* A small script to copy distfiles from per-port directory to centralasami2000-08-291-0/+17
| | | | | | | | | | | | | | | location. This is done to avoid write-on-write race conditions, when two package builds try to write the same distfile back into the server. To avoid this, the distfiles are first copied over to distfiles/.pbtmp/${PKGNAME}, and then a .done file is created in that directory. This script runs on the server periodically to copy the files to the central location. Since this script copies one distfile at a time, the race mentioned above doesn't exist. Also, it will only copy files from directories where the .done file exists to avoid read-before-write race conditions.
* Remove bak/distfiles after it's done -- this script is now called inasami2000-08-291-0/+2
| | | | | the background with bak/distfiles to work with (so that the new package build can run in parallel).
OpenPOWER on IntegriCloud