If a package you need is available under another distro, don't hesitate to look at their sources! Some may be easy to read and understand (Arch), some slightly harder (Gentoo), and some borderline impossible without having read their packaging bible (Fedora/Debian), but you'll always be able to find a source archive, patches and possibly a Homepage URL.
In the case of bsdmainutils,
https://packages.debian.org/source/sid/bsdmainutils, there isn't a Homepage mentioned.
If you look at the source (Debian Source Repository->tree), you'll see a readme, which quickly tells you why:
https://anonscm.debian.org/cgit/bsdm...it/tree/README, and directs you to a file (which I seem to be unable to find) containing the source for each component if you'd want to fetch them yourself.
Thankfully, debian distributes easily downloaded and unpacked source archives for each of their packages, which makes it easy to compile yourself. Usually, there's two archives: a source .tar, and a "debian" .tar. You would then extract the source, and inside the source extract the debian tar, which contains patches and additional files. This package in particular has the debian folder in the same archive as the source.
This package requires libbsd, which is available in SBo. You should get that first.
Here's a SlackBuild I just made to build bsdmainutils:
http://chunk.io/f/18472bce5835460bbe...kBuild?lang=sh
The sources are here:
http://http.debian.net/debian/pool/m...12+nmu1.tar.gz
and here:
https://sourceforge.net/projects/lib...1.6.02.tar.bz2
It differs slightly from the Debian package:
- Utilities that conflict with util-linux have been removed
- /etc/cron.daily/bsdmainutils has been installed in /usr/doc as cron.daily.
- Similarly, /etc/default/bsdmainutils has been installed in /usr/doc as bsdmainutils.default. Please verify these scripts work before using them in production, if you even need them!
- Other slight filesystem alterations to fit with the slackware filesystem.
EDIT: It got accepted into SBo! It should appear at
https://slackbuilds.org/repository/1...c/bsdmainutils by next update!