forked from mirrors/nixpkgs
d438cbb0b6
Running the chkhsgr test on Hydra fails with ``` ./chkshsgr || ( cat warn-shsgr; exit 1 ) Oops. Your getgroups() returned 0, and setgroups() failed; this means that I can't reliably do my shsgr test. Please either ``make'' as root or ``make'' while you're in one or more supplementary groups. ``` We just assume that our supported platforms have working getgroups()/setgroups().
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{ stdenv, fetchurl }:
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "socklog-${version}";
|
|
version = "2.1.0";
|
|
|
|
src = fetchurl {
|
|
url = "http://smarden.org/socklog/socklog-${version}.tar.gz";
|
|
sha256 = "0mdlmhiq2j2fip7c4l669ams85yc3c1s1d89am7dl170grw9m1ma";
|
|
};
|
|
|
|
sourceRoot = "admin/socklog-${version}";
|
|
|
|
outputs = [ "out" "man" "doc" ];
|
|
|
|
postPatch = ''
|
|
sed -i src/TARGETS -e '/^chkshsgr/d'
|
|
'';
|
|
|
|
configurePhase = ''
|
|
echo "$NIX_CC/bin/cc $NIX_CFLAGS_COMPILE" >src/conf-cc
|
|
echo "$NIX_CC/bin/cc -s" >src/conf-ld
|
|
'';
|
|
|
|
buildPhase = ''package/compile'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin
|
|
mv command"/"* $out/bin
|
|
|
|
for i in {1,8} ; do
|
|
mkdir -p $man/share/man/man$i
|
|
mv man"/"*.$i $man/share/man/man$i
|
|
done
|
|
|
|
mkdir -p $doc/share/socklog/html
|
|
mv doc"/"*.html $doc/share/socklog/html/
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
checkPhase = ''package/check'';
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "System and kernel logging services";
|
|
homepage = http://smarden.org/socklog/;
|
|
license = licenses.publicDomain;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.joachifm ];
|
|
};
|
|
}
|