afio: init at 2.5.1

Signed-off-by: Philipp Gesang <phg@phi-gamma.net>

+81
+48
pkgs/tools/archivers/afio/afio-2.5.1-install.patch
··· 1 + --- p1/Makefile.orig 2017-02-14 21:40:20.404249126 +0100 2 + +++ p1/Makefile 2017-02-19 23:38:43.880414077 +0100 3 + @@ -66,37 +66,42 @@ 4 + # systems the large file compile environment itself might be buggy or beta. 5 + #LARGEFILEFLAGS= 6 + LARGEFILEFLAGS=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 7 + 8 + # even more warnings flags.. 9 + MW= 10 + #MW=-Wtraditional -Wcast-qual -Wcast-align -Wconversion -pedantic -Wlong-long -Wimplicit -Wuninitialized -W -Wshadow -Wsign-compare -Wstrict-prototypes -Wmissing-declarations 11 + 12 + CFLAGS1 = -Wall -Wstrict-prototypes -s -O2 -fomit-frame-pointer ${LARGEFILEFLAGS} ${MW} 13 + 14 + -CC=gcc 15 + +#CC=gcc 16 + 17 + CFLAGS = ${CFLAGS1} $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e ${e2} $f $g $I 18 + LDFLAGS = 19 + 20 + afio : afio.o compfile.o exten.o match.o $M 21 + ${CC} ${LDFLAGS} afio.o compfile.o exten.o match.o $M -o afio 22 + 23 + clean: 24 + rm -f *.o afio 25 + rm -f regtest/cmpstat regtest/makesparse 26 + rm -f regtest/statsize regtest/statsize64 27 + cd regtest; /bin/sh regtest.clean 28 + 29 + +ifndef DESTDIR 30 + +install: 31 + + $(error Please specify install prefix as $$DESTDIR) 32 + +else 33 + install: afio 34 + - cp afio /usr/local/bin 35 + - cp afio.1 /usr/share/man/man1 36 + + install -Dm755 afio $(DESTDIR)/bin/afio 37 + + install -Dm644 afio.1 $(DESTDIR)/share/man/man1/afio.1 38 + +endif 39 + 40 + # generate default list of -E extensions from manpage 41 + # note: on sun, I had to change awk command below to nawk or gawk 42 + # to get it to work. 43 + exten_default.h : afio.1 44 + awk -f exten_make.awk afio.1 >exten_default.h 45 + 46 + 47 + afio.o : afio.h patchlevel.h 48 + compfile.o : afio.h
+31
pkgs/tools/archivers/afio/default.nix
··· 1 + { stdenv, fetchurl } : 2 + 3 + stdenv.mkDerivation rec { 4 + version = "2.5.1"; 5 + name = "afio-${version}"; 6 + 7 + src = fetchurl { 8 + url = "http://members.chello.nl/~k.holtman/${name}.tgz"; 9 + sha256 = "363457a5d6ee422d9b704ef56d26369ca5ee671d7209cfe799cab6e30bf2b99a"; 10 + }; 11 + 12 + /* 13 + * A patch to simplify the installation and for removing the 14 + * hard coded dependency on GCC. 15 + */ 16 + patches = [ ./afio-2.5.1-install.patch ]; 17 + 18 + installFlags = "DESTDIR=$(out)"; 19 + 20 + meta = { 21 + homepage = http://members.chello.nl/~k.holtman/afio.html; 22 + description = "Fault tolerant cpio archiver targeting backups"; 23 + platforms = stdenv.lib.platforms.all; 24 + /* 25 + * Licensing is complicated due to the age of the code base, but 26 + * generally free. See the file ``afio_license_issues_v5.txt`` for 27 + * a comprehensive discussion. 28 + */ 29 + license = stdenv.lib.licenses.free; 30 + }; 31 + }
+2
pkgs/top-level/all-packages.nix
··· 359 359 360 360 aescrypt = callPackage ../tools/misc/aescrypt { }; 361 361 362 + afio = callPackage ../tools/archivers/afio { }; 363 + 362 364 afl = callPackage ../tools/security/afl { }; 363 365 364 366 afpfs-ng = callPackage ../tools/filesystems/afpfs-ng/default.nix { };