forked from mirrors/nixpkgs
Merge pull request #205665 from prusnak/miniupnpc
miniupnpc: install binaries and manpages
This commit is contained in:
commit
aec339148e
|
@ -19,10 +19,18 @@ stdenv.mkDerivation rec {
|
|||
|
||||
doCheck = !stdenv.isFreeBSD;
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" "INSTALLPREFIX=$(out)" ];
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
postInstall = ''
|
||||
chmod +x "$out"/lib/libminiupnpc${stdenv.hostPlatform.extensions.sharedLibrary}
|
||||
chmod +x $out/lib/libminiupnpc${stdenv.hostPlatform.extensions.sharedLibrary}
|
||||
|
||||
# for some reason cmake does not install binaries and manpages
|
||||
# https://github.com/miniupnp/miniupnp/issues/637
|
||||
mkdir -p $out/bin
|
||||
cp -a upnpc-static $out/bin/upnpc
|
||||
cp -a ../external-ip.sh $out/bin/external-ip
|
||||
mkdir -p $out/share/man
|
||||
cp -a ../man3 $out/share/man
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue