Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dsniff: init at 2.4b1 #51418

Merged
merged 2 commits into from Dec 3, 2018
Merged

dsniff: init at 2.4b1 #51418

merged 2 commits into from Dec 3, 2018

Conversation

symphorien
Copy link
Member

Motivation for this change

I wanted to use tcpkill

Things done

upstream does not provide a stable url. So I used debian as source. This enables me to use their 36 patches to have dsniff build with recent version of libraries like openssl. Debian only provides the beta version, like most distros according to repology. This is probably because dsniff is not much maintained. If you think we should not add dsniff to nixpkgs for this reason, I'd understand. I do this PR mainly because I spent time on it, so I'd like to share :)

Their build system demands static libraries and header files under the same prefix. So I have to override all libraries and merge their outputs. In the end, there is still a reference to openssl for /nix/store/a23xvnnl29scqqjvcqya6vgs0vnz1shi-openssl-1.1.1/etc/ssl/ct_log_list.cnf so dsniff will depend on openssl dev output... This is very sad.

  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/) only tcpkill
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

rm $out/lib/*.so*
'';
};
pcap = symlinkJoin {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth it to do all the symlink dance instead of just force-passing an extra -I and biting the relatively small closure bloat?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The compiler finds libraries just fine, it is the configure script which does strange things by looking at the actual files instead of deferring finding libraries to the compiler.

@7c6f434c
Copy link
Member

7c6f434c commented Dec 3, 2018

I consider the minor pain that is this package justified by the upstream supply of pain in the build system (and having dsniff around is useful)

@7c6f434c 7c6f434c merged commit 34efe45 into NixOS:master Dec 3, 2018
@symphorien symphorien deleted the dsniff branch May 18, 2019 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants