mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
ncftp: man and doc files were missing
This commit is contained in:
parent
0709ebba72
commit
dab9d404ce
@ -1,8 +1,8 @@
|
||||
{ stdenv, fetchurl, ncurses, coreutils }:
|
||||
|
||||
let version = "3.2.6"; in
|
||||
stdenv.mkDerivation {
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ncftp-${version}";
|
||||
version = "3.2.6";
|
||||
|
||||
src = fetchurl {
|
||||
url = "ftp://ftp.ncftp.com/ncftp/ncftp-${version}-src.tar.xz";
|
||||
@ -11,24 +11,29 @@ stdenv.mkDerivation {
|
||||
|
||||
buildInputs = [ ncurses ];
|
||||
|
||||
preConfigure = ''
|
||||
find . -name "*.sh" -type f | xargs sed 's@/bin/ls@${coreutils}/bin/ls@g' -i
|
||||
find . -name "*.in" -type f | xargs sed 's@/bin/ls@${coreutils}/bin/ls@g' -i
|
||||
find . -name "*.c" -type f | xargs sed 's@/bin/ls@${coreutils}/bin/ls@g' -i
|
||||
sed 's@/bin/ls@${coreutils}/bin/ls@g' -i configure
|
||||
enableParallelBuilding = true;
|
||||
|
||||
find . -name "*.sh" -type f | xargs sed 's@/bin/rm@${coreutils}/bin/rm@g' -i
|
||||
find . -name "*.in" -type f | xargs sed 's@/bin/rm@${coreutils}/bin/rm@g' -i
|
||||
find . -name "*.c" -type f | xargs sed 's@/bin/rm@${coreutils}/bin/rm@g' -i
|
||||
sed 's@/bin/rm@${coreutils}/bin/rm@g' -i configure
|
||||
preConfigure = ''
|
||||
find . -name '*.sh' -or -name '*.in' -or -name '*.c' -or -name configure | xargs sed -i \
|
||||
-e 's@/bin/ls@${coreutils}/bin/ls@g' \
|
||||
-e 's@/bin/rm@${coreutils}/bin/rm@g'
|
||||
'';
|
||||
|
||||
configureFlags = [ "--mandir=$out/share/man/" ];
|
||||
postInstall = ''
|
||||
rmdir $out/etc
|
||||
mkdir -p $out/share/doc
|
||||
cp -r doc $out/share/doc/ncftp
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--enable-ssp"
|
||||
"--mandir=$(out)/share/man/"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Command line FTP (File Transfer Protocol) client";
|
||||
homepage = http://www.ncftp.com/ncftp/;
|
||||
homepage = https://www.ncftp.com/ncftp/;
|
||||
maintainers = with maintainers; [ bjornfor ];
|
||||
platforms = platforms.unix;
|
||||
maintainers = [ maintainers.bjornfor ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user