iputils: build and install the manpages
This commit is contained in:
parent
d711dcc070
commit
0236cc5d88
@ -1,4 +1,5 @@
|
|||||||
{ stdenv, fetchurl, libsysfs, gnutls, openssl, libcap }:
|
{ stdenv, fetchurl, libsysfs, gnutls, openssl, libcap, sp, docbook_sgml_dtd_31
|
||||||
|
, SGMLSpm }:
|
||||||
|
|
||||||
assert stdenv ? glibc;
|
assert stdenv ? glibc;
|
||||||
|
|
||||||
@ -13,15 +14,28 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "17riqp8dh8dvx32zv3hyrghpxz6xnxa6vai9b4yc485nqngm83s5";
|
sha256 = "17riqp8dh8dvx32zv3hyrghpxz6xnxa6vai9b4yc485nqngm83s5";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ libsysfs gnutls openssl libcap ];
|
prePatch = ''
|
||||||
|
sed -i s/sgmlspl/sgmlspl.pl/ doc/Makefile
|
||||||
|
'';
|
||||||
|
|
||||||
buildFlags = "all ninfod";
|
buildInputs = [ libsysfs gnutls openssl libcap sp docbook_sgml_dtd_31 SGMLSpm ];
|
||||||
|
|
||||||
|
buildFlags = "man all ninfod";
|
||||||
|
|
||||||
|
# Stdenv doesn't handle symlinks well for that
|
||||||
|
dontGzipMan = true;
|
||||||
|
|
||||||
installPhase =
|
installPhase =
|
||||||
''
|
''
|
||||||
mkdir -p $out/sbin $out/bin
|
mkdir -p $out/sbin $out/bin
|
||||||
cp -p ping ping6 tracepath tracepath6 traceroute6 $out/bin/
|
cp -p ping ping6 tracepath tracepath6 traceroute6 $out/bin/
|
||||||
cp -p clockdiff arping rdisc ninfod/ninfod $out/sbin/
|
cp -p clockdiff arping rdisc ninfod/ninfod $out/sbin/
|
||||||
|
|
||||||
|
mkdir -p $out/share/man/man8
|
||||||
|
cp -p doc/clockdiff.8 doc/arping.8 doc/ping.8 doc/rdisc.8 \
|
||||||
|
doc/tracepath.8 doc/ninfod.8 $out/share/man/man8
|
||||||
|
ln -s $out/share/man/man8/{ping,ping6}.8
|
||||||
|
ln -s $out/share/man/man8/{tracepath,tracepath6}.8
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user