Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Formula namebench #21818

Closed
wants to merge 4 commits into from
Closed

Formula namebench #21818

wants to merge 4 commits into from

Conversation

nikcub
Copy link
Contributor

@nikcub nikcub commented Aug 11, 2013

Support to brew namebench:

https://code.google.com/p/namebench/

A command line DNS server benchmarking tool.

Written in Python although it isn't in pypi.

Tested, audited, etc. and works. The --install-data=#{bin} may look weird, but it creates a config/ directory and it is where the program searches by default.

@nikcub
Copy link
Contributor Author

nikcub commented Aug 11, 2013

btw this doesn't install the GUI since it is building with python setuptools and from source.

@mistydemeo
Copy link
Member

Looks like this is installing a large number of nonexecutable files into bin:

brew ls namebench
/usr/local/Cellar/namebench/1.3.1/bin/namebench.py
/usr/local/Cellar/namebench/1.3.1/bin/namebench/templates/style.css
/usr/local/Cellar/namebench/1.3.1/bin/namebench/templates/resolv.conf.tmpl
/usr/local/Cellar/namebench/1.3.1/bin/namebench/templates/html.tmpl
/usr/local/Cellar/namebench/1.3.1/bin/namebench/templates/ascii.tmpl
/usr/local/Cellar/namebench/1.3.1/bin/namebench/data/cache-mix.txt
/usr/local/Cellar/namebench/1.3.1/bin/namebench/data/cache-miss.txt
/usr/local/Cellar/namebench/1.3.1/bin/namebench/data/cache-hit.txt
/usr/local/Cellar/namebench/1.3.1/bin/namebench/data/alexa-top-2000-domains.txt
/usr/local/Cellar/namebench/1.3.1/bin/namebench/config/namebench.cfg
/usr/local/Cellar/namebench/1.3.1/bin/namebench/config/hostname_reference.cfg
/usr/local/Cellar/namebench/1.3.1/bin/namebench/config/data_sources.cfg

@nikcub
Copy link
Contributor Author

nikcub commented Aug 12, 2013

Cleaned it up - there is now only the namebench binary, renamed without the .py extension and the default configs are in the module.

The app has a very weird search path, it doesn't check or you can't ask it to check /usr/local/etc - it requires patching the actual cli app rather than the setup.py. I sent a patch in upstream.

@mbrevda
Copy link
Contributor

mbrevda commented Aug 14, 2013

+1

@adamv
Copy link
Contributor

adamv commented Aug 18, 2013

Install the files to libexec instead of bin, then symlink libexec/namebench.py to bin/namebench or use a wrapper script as needed.

@adamv
Copy link
Contributor

adamv commented Sep 30, 2013

@BrewTestBot test this please

@ghost ghost assigned adamv Sep 30, 2013
@adamv adamv closed this in 69334fa Oct 1, 2013
handyman5 pushed a commit to handyman5/homebrew that referenced this pull request Oct 7, 2013
Closes Homebrew#21818.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
@Homebrew Homebrew locked and limited conversation to collaborators Feb 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants