summaryrefslogtreecommitdiff
path: root/Tools
AgeCommit message (Collapse)Author
2016-06-17Refactor a bit.Mathieu Arnold
Sponsored by: Absolight
2016-06-13- Update to last versionSofian Brabez
Differential Revision: https://reviews.freebsd.org/D6827
2016-06-02Add a script to indent make(1)'s .if/.for blocks.Mathieu Arnold
Sponsored by: Absolight
2016-05-17Remove a stale comment in Tools/scripts/rmportRene Ladan
2016-05-17As a frequent user of the rmport script, it was time for some improvements:Rene Ladan
- 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
2016-05-01MFportsindexbuild: build INDEX-9 with fmakeAntoine Brodin
2016-04-25Remove USE_SQLITE from bsd.databases.mk, replaced by USES=sqlite.Mathieu Arnold
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
2016-04-12Revert escaped un-approved commit.Matthias Andree
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
2016-04-12Drop maintainership.Matthias Andree
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.
2016-03-24redundant-opt-files script: Fix deleted port outputJohn Marino
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.
2016-03-24redundant-opt-files script: Handle cache for deleted portsJohn Marino
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.
2016-03-17redundant-opt-files.sh script: validate PORTSDIR valueJohn Marino
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.
2016-03-15- add Approved by: lineOlli Hauer
2016-02-14Add new tool script: redundant-opt-files.shJohn Marino
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.
2015-12-22Remove spurious quotation mark.Erwin Lansing
PR: 205304 Submitted by: Stig Inge Lea Bjoernsen <stiginge@pvv.org> Sponsored by: DK Hostmaster A/S
2015-12-18Allow running this with a negative revision number, to backout a commit.Mathieu Arnold
Sponsored by: Absolight
2015-09-25Let addport script to use svnlite if availableRuslan Makhmatkhanov
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)
2015-09-20Default to repo.FreeBSD.org for commits, as urged by our repo meister.Christian Weisgerber
Approved by: portmgr (mat)
2015-09-15Default to repo.FreeBSD.org for commits, as urged by our repo meister.Christian Weisgerber
Approved by: crees
2015-09-07Actually allow only one revision to be merged.Mathieu Arnold
Pointy hat to: mat Sponsored by: Absolight
2015-09-07Support merging multiple revisions in one go with mfh.Mathieu Arnold
Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3553
2015-08-17Remove UNIQUENAME and LATEST_LINK.Mathieu Arnold
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
2015-08-01Drop building 8.xErwin Lansing
Sponsored by: DK Hostmaster A/S
2015-07-09Invoke perl with /usr/bin/envEmanuel Haupt
2015-05-20Tools/scripts: Add size offenders report generatorJohn Marino
This is the script that generated the "20 ports account for X% of the Ports collection by size" report. This shells script is useful to identify obscenely large ports: top-size-offenders.sh
2015-04-10- Remove a few more scripts from Tools/scripts:Alex Kozlov
chkdepschain.py: doesn't support pkgng explicit_lib_depends.sh: doesn't support pkgng plist: obsolete; searches for /etc/mtree/BSD.local.dist, add @dirrm, doesn't know about man pages in the plist release: unused and obsolete resolveportsfromlibs.sh: doesn't support pkgng Approved by: portmgr (bapt)
2015-04-09- Obsolete and made unusable by changes in the Ports CollectionAlex Kozlov
2015-03-30Add getpatch.sh, a shell script only tool to download patch attachments on ↵Rodrigo Osorio
bug tracking systems
2015-03-18This scripts is not useful anymoreBaptiste Daroussin
2015-03-04Tools/scripts/bump-revision.sh: fix regression introduced in r380431Bartek Rutkowski
- Fix regression mistakenly introduced in r380431 - Handle multiple tabs in PORTREVISION - Handle PORTREVISION being a variable name - Handle multiple PORTREVISION values - Get rid of bash-like syntax - Grammar corrections PR: 192910 Reviewed by: danfe, mandree, mat
2015-03-04Tools/scripts/bump-revision.sh: various fixesBartek Rutkowski
- Write nicer code replacing fix introduced by mandree - Catch up some more edge cases PR: 192910
2015-02-20Support non default ports path.Pawel Pekala
PR: 194423 Submitted by: myself Approved by: maintainer timeout (4 months), trivial - just fix it
2015-01-27Don't add ports/ to the PR line.Mathieu Arnold
Sponsored by: Absolight
2014-12-07- Remove vestiges of cvs annotate supportAlex Kozlov
2014-11-24- Doesn't support Bugzilla bugtrackerAlex Kozlov
2014-11-18Make this work with any amount of tabulations between the = and the value of ↵Mathieu Arnold
PORTREVISION. Sponsored by: Absolight
2014-11-18Fix if PORTREVISION is not already there.Mathieu Arnold
Sponsored by: Absolight
2014-11-18Reset miwi's maintainership per his demandBaptiste Daroussin
Hope to see you back! Thank for all the work!
2014-08-22Catch and report substitution failure on lines such as PORTREVISION=${SOME_VAR}.Matthias Andree
2014-08-21- Eat excess newline at the end of the commit log.Bryan Drewery
2014-08-21Add a BerkeleyDB upgrade helper script in preparation of 4...4.7 removal.Matthias Andree
2014-07-23- Better handling when custom encoding is specified in detailsSofian Brabez
- Use only one request to retreive patchs CR: D400 CR: D401 Submitted by: rakuco
2014-06-26New script: Tools/scripts/bump-revision.shBartek Rutkowski
This script, requested by bapt@, is a pure sh tool to increase one or more ports PORTREVISION value or to add one, if the port havent had one already. Approved by: swills (mentor), bapt
2014-06-25ports/Tools/scripts/mfh revision:Matthias Andree
- use proper quoting - use fewer svn invocations - optionally drop to a shell before committing, to manually fix up a botched merge. - svnserver can be overridden in the environment. - Finally, we use sh's trap builtin to make sure we always clean up. PR: 186256 Approved by: portmgr (bapt@)
2014-06-25Remove consistency-check since it relies on MD5 and only works for old pkg_ ↵Eitan Adler
tools Also clean up README a bit more Discussed with: ak, bapt
2014-06-25Clean up READMEEitan Adler
2014-06-25add missing Mt to AqEitan Adler
2014-06-25To my knoledge (and grep) the close-pr script in Tools/scripts is not used ↵Eitan Adler
anywhere, so remove it. OKed by: bapt
2014-06-22Invoke perl with /usr/bin/env, as perl is not guaranteed to exist inAdam Weinberger
/usr/bin.
2014-06-22* Default to name search (-n) if no flags are specified.Adam Weinberger
* Add -e, to cat the pkg-descr for each port found. * Format with tabs instead of 4-spaces, as the latter made editing an absolute nightmare and isn't used by anything else. * Add -h to the option list, as it was missing. * Use the fields hash in the format instead of hardcoded indices.