
RequiredBuilder is a simple tool to help Slackware packages developers 
finding dependencies of a package and in particular writing 
the slack-required file for the slapt-get's dependency checking.

It scans the package directory tree and finds all the binary dependencies 
using ldd. Besides it's able to identify scripts that need perl or python,
or classes that need java. After collecting dependencies it adds them to the
slack-required file using the informations in /var/log/packages.
Of course it doesn't substitute the package developer, in fact it won't
delete any handwritten dependency in the slack-required file.

You can prevent requiredbuilder from adding any packages to the slack-required
file adding their complete name to /etc/requiredbuilder.conf

requiredbuilder tries to guess the package name by reading the
slack-desc or the build directory name: if there is no slack-desc or
the directory doesn't start with "package-" it can't guess the package
name so if you have another version of the same package you are building
installed on your system, this could be seen as a dependency and
requiredbuilder isn't able to remove it.


EXAMPLE:
If you are building postfix and the directory of the package in your SlackBuild
is /tmp/package-postfix:

requiredbuilder /tmp/package-postfix


if you only want to see the dependencies of an already made tgz package:

requiredbuilder -n qca-sasl-1.0-i486-1stb.tgz


if you want to generate a Zenwalk style depfile:

requiredbuilder -z qca-sasl-1.0-i486-1stb.tgz > qca-sasl-1.0-i486-1stb.dep


OPTIONS:
-v		writes version controls
-c		checks every single file in the directory tree instead of following the FHS
-b		only scans binary files (no scripts at all)
-p		doesn't search for perl dependencies
-s <dir>	writes a copy of the slack-required to <dir>
-y		yes to all questions
-n		only prints to stdout, implies -y
-z		only prints to stdout a comma separated list of dependencies, implies -y
