2014-08-17 22:17:13 +02:00
|
|
|
{ stdenv, fetchurl, gettext, coreutils }:
|
2010-02-22 10:07:15 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2011-05-30 23:48:50 +02:00
|
|
|
name = "sharutils-4.11.1";
|
2010-02-22 10:07:15 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/sharutils/${name}.tar.bz2";
|
2011-05-30 23:48:50 +02:00
|
|
|
sha256 = "1mallg1gprimlggdisfzdmh1xi676jsfdlfyvanlcw72ny8fsj3g";
|
2010-02-22 10:07:15 +01:00
|
|
|
};
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2015-12-23 02:59:47 +01:00
|
|
|
|
2015-06-20 07:08:01 +02:00
|
|
|
preConfigure = ''
|
|
|
|
# Fix for building on Glibc 2.16. Won't be needed once the
|
|
|
|
# gnulib in sharutils is updated.
|
2015-11-26 18:33:58 +01:00
|
|
|
sed -i ${stdenv.lib.optionalString (stdenv.isOpenBSD && stdenv.cc.nativeTools) "''"} '/gets is a security hole/d' lib/stdio.in.h
|
2015-06-20 07:08:01 +02:00
|
|
|
'';
|
2012-09-21 16:49:26 +02:00
|
|
|
|
2010-02-22 10:52:39 +01:00
|
|
|
# GNU Gettext is needed on non-GNU platforms.
|
2014-08-17 22:17:13 +02:00
|
|
|
buildInputs = [ gettext coreutils ];
|
2010-02-22 10:52:39 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2012-10-27 14:46:36 +02:00
|
|
|
crossAttrs = {
|
|
|
|
patches = [ ./sharutils-4.11.1-cross-binary-mode-popen.patch ];
|
|
|
|
};
|
|
|
|
|
2010-02-22 10:07:15 +01:00
|
|
|
meta = {
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Tools for remote synchronization and `shell archives'";
|
2010-02-22 10:07:15 +01:00
|
|
|
longDescription =
|
|
|
|
'' GNU shar makes so-called shell archives out of many files, preparing
|
|
|
|
them for transmission by electronic mail services. A shell archive
|
|
|
|
is a collection of files that can be unpacked by /bin/sh. A wide
|
|
|
|
range of features provide extensive flexibility in manufacturing
|
|
|
|
shars and in specifying shar smartness. For example, shar may
|
|
|
|
compress files, uuencode binary files, split long files and
|
|
|
|
construct multi-part mailings, ensure correct unsharing order, and
|
|
|
|
provide simplistic checksums.
|
|
|
|
|
|
|
|
GNU unshar scans a set of mail messages looking for the start of
|
|
|
|
shell archives. It will automatically strip off the mail headers
|
|
|
|
and other introductory text. The archive bodies are then unpacked
|
|
|
|
by a copy of the shell. unshar may also process files containing
|
|
|
|
concatenated shell archives.
|
|
|
|
'';
|
|
|
|
homepage = http://www.gnu.org/software/sharutils/;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2013-08-16 23:44:33 +02:00
|
|
|
maintainers = [ ];
|
2010-02-22 10:07:15 +01:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|