aboutsummaryrefslogtreecommitdiff
path: root/Tools
Commit message (Collapse)AuthorAgeFilesLines
* Detect flavored dependencies in Tools/scripts/rmport and add myself to the ↵Rene Ladan2018-03-261-1/+2
| | | | | | | copyright. Notes: svn path=/head/; revision=465615
* Show errors for duplicate source entries.Bryan Drewery2018-01-251-0/+7
| | | | Notes: svn path=/head/; revision=459958
* Run Tools/scripts/mfh through devel/hs-ShellCheck.Mathieu Arnold2018-01-231-17/+17
| | | | | | | | | | | | | | | | | SC2068: Double quote array expansions to avoid re-splitting elements. SC2034: revs appears unused. Verify it or export it. SC2039: In POSIX sh, XXX is undefined. type -> command -v echo -n -> printf read -p -> printf + read SC2162: read without -r will mangle backslashes. SC2086: Double quote to prevent globbing and word splitting. Sponsored by: Absolight Notes: svn path=/head/; revision=459782
* Follow up on last commit and actually allow editingMathieu Arnold2017-12-291-0/+1
| | | | | | | | | | | the commit message again. PR: 224634 Reported by: yuri Sponsored by: Absolight Notes: svn path=/head/; revision=457506
* Generic FLAVORS work.Mathieu Arnold2017-11-301-1/+30
| | | | | | | | | | | | | | | | - Enable FLAVORS. - Make make describe flavors aware. - Add a qa check for unique package names amongst flavors. - Make MOVEDlint understand flavors. - Add a bit of sanity check to make sure FLAVORS stay lowercase. - Various fixes. Reviewed by: portmgr Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D12577 Notes: svn path=/head/; revision=455205
* Commit the actual patch I testedMathieu Arnold2017-11-101-1/+1
| | | | | | | Sponsored by: Absolight Notes: svn path=/head/; revision=453896
* Cleanup resurrected processing.Mathieu Arnold2017-11-101-7/+1
| | | | | | | | | | There is no need to have a resurrected array, it is only used once, so move the resurrected printf where it belongs. Sponsored by: Absolight Notes: svn path=/head/; revision=453895
* Don't blame the person that removed a resurrected.Mathieu Arnold2017-11-101-1/+0
| | | | | | | Sponsored by: Absolight Notes: svn path=/head/; revision=453894
* Add braces around all if/else.Mathieu Arnold2017-11-101-2/+3
| | | | | | | Sponsored by: Absolight Notes: svn path=/head/; revision=453893
* Re-enable blame (was annotate) with svn and git support.Mathieu Arnold2017-10-301-2/+24
| | | | | | | | | | | ak@ asked that I remove the unused error array, and I went to have a look at what it was actually used for back in the day. It seemed better to re-enable the blame feature instead of removing it. Sponsored by: Absolight Notes: svn path=/head/; revision=453175
* The final sort was missing from some places.Mathieu Arnold2017-10-301-2/+2
| | | | | | | Sponsored by: Absolight Notes: svn path=/head/; revision=453170
* Do not add $FreeBSD$ to the patch files.Mathieu Arnold2017-08-231-3/+0
| | | | | | | Sponsored by: Absolight Notes: svn path=/head/; revision=448612
* Fix resurrected ports not being warned about if they have a new dest entry.Bryan Drewery2017-08-071-3/+4
| | | | | | | | | | | | | This now warns about these 2 ports as needing to be marked as resurrected: archivers/brotli|archivers/py-brotli|2016-11-24|Brotli is a python module devel/libbrotli|archivers/brotli|2017-07-12|meta project no longer required to build libs www/rubygem-jquery-rails||2017-01-07|Has expired: Depends on deprecated www/rubygem-railties www/rubygem-jquery-rails4|www/rubygem-jquery-rails|2017-03-27|Remove PKGNAMESUFFIX Notes: svn path=/head/; revision=447499
* Allow editing commit message on failure and save it somewhere if declined.Bryan Drewery2017-06-121-1/+8
| | | | | | | With hat: portmgr Notes: svn path=/head/; revision=443456
* Fix some FreeBSD.org case of bad case.Mathieu Arnold2017-05-041-1/+1
| | | | | | | Sponsored by: Absolight Notes: svn path=/head/; revision=440110
* Add some usage instructions to the top of the mfh script. In particular,Adam Weinberger2017-05-011-0/+6
| | | | | | | note that multiple revisions should appear chronologically. Notes: svn path=/head/; revision=439857
* Update Tools/scripts/rmport to ignore commented out EXPIRATION_DATE linesLarry Rosenman2017-04-301-1/+1
| | | | | | | | | Reviewed by: crees (maintainer) Approved by: rene (portmgr, mentor), adamw (portmgr, mentor), crees (maintainer) Differential Revision: https://reviews.freebsd.org/D10548 Notes: svn path=/head/; revision=439833
* Fix shebang. If /usr/bin/env is used the -w flag can't be passed after perl.Emanuel Haupt2017-04-244-138/+5
| | | | | | | | | | Use 'use warnings;' instead. While here remove distinfochecker. It's not needed anymore as it was written for a simple purpose eleven years ago. Notes: svn path=/head/; revision=439336
* Reset pgollucci@ as maintainer after 19 months of inactivityRene Ladan2017-03-292-2/+2
| | | | | | | With hat: portmgr-secretary Notes: svn path=/head/; revision=437233
* Set maintainer of these scripts to portmgr as the previous maintainers retired.Rene Ladan2017-02-124-4/+4
| | | | Notes: svn path=/head/; revision=433964
* - Remove inclusion of bsd.default-versions.mk from ftp/curl/Makefile soTijl Coosemans2017-02-051-1/+0
| | | | | | | | | | | | | | | | | | | | bsd.default-versions.mk can rely on ARCH being defined. - In bsd.port.mk move inclusion of bsd.default-versions.mk from the pre-makefile section to the options section so the variables can be used earlier. Also put the bit of code sitting between the options section and the pre-makefile section into the options section. - Remove last few cases where ports set WITH_OPENSSL_PORT. This variable is handled in bsd.default-versions.mk and some ports were setting it after including bsd.port.options.mk. After FreeBSD 9 EoL all but a few ports, and then only when setting non-default options, work without setting that variable. PR: 215996 Exp-run by: antoine Approved by: portmgr (antoine) Notes: svn path=/head/; revision=433456
* Make sure the merge is done on the latest branch.Mathieu Arnold2017-01-031-11/+24
| | | | | | | | | | Also, make the branch argument optional. Discussed with: swills Sponsored by: Absolight Notes: svn path=/head/; revision=430495
* Use make(1) to extract variables from a Makefile, not grep.Mathieu Arnold2016-09-081-2/+2
| | | | | | | | | | PR: 212486 Submitted by: mat Approved by: crees (maintainer) Sponsored by: Absolight Notes: svn path=/head/; revision=421545
* Fix the '-a' option to ${PORTSDIR}/Tools/scripts/addportMatthew Seaman2016-08-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Currently addport -a ends up running a command line like: make PORTSDIR="/tmp/ap.BsOuZJBy" clean check-categories where the temporary directory has only parts of the ports tree (specifically bits under ${PORTSDIR}/Mk) checked out. This can't work as 'make check-categories' needs to see the entire ports tree checked out. Instead, run the checks specified by '-a' and '-t' with the value of $PORTSDIR from the environment. Reviewers: crees Reviewed By: crees Subscribers: mat Differential Revision: https://reviews.freebsd.org/D7525 Notes: svn path=/head/; revision=420329
* Echo where the merge was done, so one can go and have a look.Mathieu Arnold2016-08-151-0/+1
| | | | | | | Sponsored by: Absolight Notes: svn path=/head/; revision=420223
* fixup last updates, and try to be better with slave ports.Mathieu Arnold2016-08-031-4/+14
| | | | | | | | | | | | | | | | | the case $? needs to have the exit status of the grep, not the awk line, so remove the awk line, it was not really helpful anyway. Also, with slave ports, most of the time, they don't have (PORT|DIST)VERSION, try to use CATEGORIES, PKGNAMEPREFIX or PKGNAMESUFFIX. PR: 211243 Submitted by: mat Approved by: maintainer timeout Sponsored by: Absolight Notes: svn path=/head/; revision=419519
* MFportsindexbuild:Antoine Brodin2016-07-171-21/+10
| | | | | | | | - build INDEX-12 - remove no longer used scp/ssh Notes: svn path=/head/; revision=418666
* Refactor a bit.Mathieu Arnold2016-06-171-4/+11
| | | | | | | Sponsored by: Absolight Notes: svn path=/head/; revision=417014
* - Update to last versionSofian Brabez2016-06-132-36/+63
| | | | | | | Differential Revision: https://reviews.freebsd.org/D6827 Notes: svn path=/head/; revision=416846
* Add a script to indent make(1)'s .if/.for blocks.Mathieu Arnold2016-06-021-0/+42
| | | | | | | Sponsored by: Absolight Notes: svn path=/head/; revision=416279
* Remove a stale comment in Tools/scripts/rmportRene Ladan2016-05-171-1/+0
| | | | Notes: svn path=/head/; revision=415400
* As a frequent user of the rmport script, it was time for some improvements:Rene Ladan2016-05-171-21/+10
| | | | | | | | | | | | | | | | | | | - allow PORTSDIR to be a symbolic link when looking for expired ports or dependent ports - allow for trailing slashes when specifying ports as cat/name. This prevents the port being a false positive for itself when the Makefile mentions the port name (e.g., in PLIST_FILES) - fetch possibly open PRs via Bugzilla, GNATS is long gone. Remove the version that used freefall. Thanks to crees for pretty-printing the results. - forcibly delete the temporary checkout to prevent rm(1) from asking for confirmation on each file in .svn - add myself as author Approved by: maintainer (crees) Differential Revision: https://reviews.freebsd.org/D6396 Notes: svn path=/head/; revision=415399
* MFportsindexbuild: build INDEX-9 with fmakeAntoine Brodin2016-05-011-1/+6
| | | | Notes: svn path=/head/; revision=414399
* Remove USE_SQLITE from bsd.databases.mk, replaced by USES=sqlite.Mathieu Arnold2016-04-251-1/+1
| | | | | | | | | | | | | | While there replace USE_SQLITE=x by USES=sqlite:x. PR: 208971 Submitted by: mat Exp-run by: antoine With hat: portmgr Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D5951 Notes: svn path=/head/; revision=414014
* Revert escaped un-approved commit.Matthias Andree2016-04-121-134/+72
| | | | | | | | This was not meant to be applied yet, as it is not yet completely developed. See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192706 Notes: svn path=/head/; revision=413101
* Drop maintainership.Matthias Andree2016-04-121-72/+134
| | | | | | | | | | If portmgr@ needs to commit against better advise, two years after this was first discussed without any motion of the upstream. Drop a few more maintainerships along the way. Notes: svn path=/head/; revision=413097
* redundant-opt-files script: Fix deleted port outputJohn Marino2016-03-241-1/+1
| | | | | | | | | The last change was flawed; for deleted ports it was writing out the origin, but it should be writing out the appropriate ports cache database directory. Notes: svn path=/head/; revision=411812
* redundant-opt-files script: Handle cache for deleted portsJohn Marino2016-03-241-0/+5
| | | | | | | | | | | | | | The redundant-opt-file scripts assumes that if options are cached, then the port that it was created by still exists. This, of course, is a terrible assumption. If the cached options refer to a port that has since been deleted or otherwise no longer exists, just print the origin and continue. The normal use case is that the origin will be piped to xargs rm -rf which will purge the obsolete directory as desired. Notes: svn path=/head/; revision=411809
* redundant-opt-files.sh script: validate PORTSDIR valueJohn Marino2016-03-171-0/+6
| | | | | | | | Before checking validity of $db_dir, verify $portdir is valid and eject if it is not. This provides a better error message when PORTSDIR is invalid. Notes: svn path=/head/; revision=411283
* - add Approved by: lineOlli Hauer2016-03-151-0/+2
| | | | Notes: svn path=/head/; revision=411190
* Add new tool script: redundant-opt-files.shJohn Marino2016-02-141-0/+51
| | | | | | | | | | | | | | | | | | | | I got a request to make Synth identify "redundant" cached option files, where "redundant" means the saved port options are identical to the default options. For Synth (and portmaster?) which use the port's cache options, these redundant files are somewhat of a liability. At best they do nothing (Synth assumes default options) and at worst they will cause a future build to stop if the maintainer changes the port options later. This situation is avoidable. Rather than build detection into Synth, I decided to write a generic shell script for ports. When run, it will display the full path to the port's options directory if the cached options are the same as the defaults. This output is suitable to pipe to "xargs rm -rf" to remove all the redundant options in a single command. Notes: svn path=/head/; revision=408849
* Remove spurious quotation mark.Erwin Lansing2015-12-221-1/+1
| | | | | | | | | PR: 205304 Submitted by: Stig Inge Lea Bjoernsen <stiginge@pvv.org> Sponsored by: DK Hostmaster A/S Notes: svn path=/head/; revision=404230
* Allow running this with a negative revision number, to backout a commit.Mathieu Arnold2015-12-181-2/+2
| | | | | | | Sponsored by: Absolight Notes: svn path=/head/; revision=403975
* Let addport script to use svnlite if availableRuslan Makhmatkhanov2015-09-251-18/+20
| | | | | | | | | | | 1. Check if svnlite is available and use it by default, else: use svn 2. Dehardcode svn binary name in shell calls, to make both svn/svnlite work Approved by: crees (maintainer) Notes: svn path=/head/; revision=397867
* Default to repo.FreeBSD.org for commits, as urged by our repo meister.Christian Weisgerber2015-09-201-5/+4
| | | | | | | Approved by: portmgr (mat) Notes: svn path=/head/; revision=397462
* Default to repo.FreeBSD.org for commits, as urged by our repo meister.Christian Weisgerber2015-09-152-3/+3
| | | | | | | Approved by: crees Notes: svn path=/head/; revision=396967
* Actually allow only one revision to be merged.Mathieu Arnold2015-09-071-1/+1
| | | | | | | | Pointy hat to: mat Sponsored by: Absolight Notes: svn path=/head/; revision=396269
* Support merging multiple revisions in one go with mfh.Mathieu Arnold2015-09-071-18/+38
| | | | | | | | Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3553 Notes: svn path=/head/; revision=396268
* Remove UNIQUENAME and LATEST_LINK.Mathieu Arnold2015-08-172-82/+0
| | | | | | | | | | | | | | | | | | | | UNIQUENAME was never unique, it was only used by USE_LDCONFIG and now, we won't have conflicts there. Use PKGBASE instead of LATEST_LINK in PKGLATESTFILE, the *only* consumer is pkg-devel, and it works just fine without LATEST_LINK as pkg-devel has the correct PKGNAME anyway. Now that UNIQUENAME is gone, OPTIONSFILE is too. (it's been called OPTIONS_FILE now.) Reviewed by: antoine, bapt Exp-run by: antoine Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3336 Notes: svn path=/head/; revision=394508
* Drop building 8.xErwin Lansing2015-08-011-6/+2
| | | | | | | Sponsored by: DK Hostmaster A/S Notes: svn path=/head/; revision=393391