mpack: add version 1.6

This commit is contained in:
Peter Simons 2013-08-17 14:42:06 +02:00
parent 588c8e062c
commit d2194a294e
3 changed files with 52 additions and 1 deletions

View File

@ -0,0 +1,29 @@
diff -ubr mpack-1.6-orig/unixos.c mpack-1.6/unixos.c
--- mpack-1.6-orig/unixos.c 2013-08-17 14:32:38.102772775 +0200
+++ mpack-1.6/unixos.c 2013-08-17 14:32:43.180792505 +0200
@@ -38,10 +38,6 @@
#define MAXHOSTNAMELEN 64
#endif
-extern int errno;
-extern char *malloc();
-extern char *getenv();
-
int overwrite_files = 0;
int didchat;
Only in mpack-1.6: unixos.o
Only in mpack-1.6: unixunpk.o
Only in mpack-1.6: uudecode.o
diff -ubr mpack-1.6-orig/xmalloc.c mpack-1.6/xmalloc.c
--- mpack-1.6-orig/xmalloc.c 2013-08-17 14:32:38.102772775 +0200
+++ mpack-1.6/xmalloc.c 2013-08-17 14:33:08.900892319 +0200
@@ -24,7 +24,6 @@
*/
#include <stdio.h>
#include <string.h>
-extern char *malloc(), *realloc();
char *xmalloc (int size)
{
Only in mpack-1.6: xmalloc.o

View File

@ -0,0 +1,20 @@
{ stdenv, fetchurl, pkgconfig, glib }:
stdenv.mkDerivation rec {
name = "mpack-1.6";
src = fetchurl {
url = "http://ftp.andrew.cmu.edu/pub/mpack/${name}.tar.gz";
sha256 = "0k590z96509k96zxmhv72gkwhrlf55jkmyqlzi72m61r7axhhh97";
};
patches = [ ./build-fix.patch ];
preConfigure = "configureFlags=--mandir=$out/share/man";
meta = {
description = "utilities for encoding and decoding binary files in MIME";
maintainers = [ stdenv.lib.maintainers.simons ];
platforms = stdenv.lib.platforms.unix;
};
}

View File

@ -833,7 +833,7 @@ let
finger_bsd = callPackage ../tools/networking/bsd-finger { };
fio = callPackage ../tools/system/fio { };
flpsed = callPackage ../applications/editors/flpsed { };
flvstreamer = callPackage ../tools/networking/flvstreamer { };
@ -1349,6 +1349,8 @@ let
newsbeuter = callPackage ../applications/networking/feedreaders/newsbeuter { };
mpack = callPackage ../tools/networking/mpack { };
pa_applet = callPackage ../tools/audio/pa-applet { };
nilfs_utils = callPackage ../tools/filesystems/nilfs-utils {};