1
0
mirror of https://github.com/gryf/gryf-overlay.git synced 2026-02-02 14:25:45 +01:00

Added unadf

This commit is contained in:
root
2013-05-16 22:38:17 +02:00
parent 822702567c
commit 44a2059aa1
8 changed files with 2729 additions and 0 deletions

40
app-arch/unadf/ChangeLog Normal file
View File

@@ -0,0 +1,40 @@
# ChangeLog for app-arch/unadf
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/unadf/ChangeLog,v 1.11 2010/01/01 19:41:00 fauli Exp $
01 Jan 2010; Christian Faulhammer <fauli@gentoo.org> unadf-0.7.9b.ebuild:
Transfer Prefix keywords
12 Oct 2009; Mark Loeser <halcy0n@gentoo.org> unadf-0.7.9b.ebuild:
QA fixes; unquoted variables
11 Apr 2007; Jeroen Roovers <jer@gentoo.org> unadf-0.7.9b.ebuild:
Stable for HPPA (bug #173841).
09 Apr 2007; Fabian Groffen <grobian@gentoo.org> unadf-0.7.9b.ebuild:
Dropped ppc-macos keyword, see you in prefix
09 Apr 2007; nixnut <nixnut@gentoo.org> unadf-0.7.9b.ebuild:
Stable on ppc wrt bug 173841
09 Apr 2007; Raúl Porcel <armin76@gentoo.org> unadf-0.7.9b.ebuild:
x86 stable wrt bug 173841
01 Apr 2007; Robin H. Johnson <robbat2@gentoo.org> unadf-0.7.9b.ebuild:
Bug #172246, unadf needs makedepend during build as well.
08 Feb 2007; Diego Pettenò <flameeyes@gentoo.org> ChangeLog:
Regenerate digest in Manifest2 format.
15 Sep 2005; Fabian Groffen <grobian@gentoo.org> unadf-0.7.9b.ebuild:
Marked ~ppc-macos (bug #105864)
07 Jul 2005; David Holm <dholm@gentoo.org> unadf-0.7.9b.ebuild:
Added to ~ppc.
*unadf-0.7.9b (01 Jun 2005)
01 Jun 2005; Robin H. Johnson <robbat2@gentoo.org>
+files/no.in_path.patch, +metadata.xml, +unadf-0.7.9b.ebuild:
Bug #61643, ebuild submitted by Jonathan Adamczewski <jadamcze@utas.edu.au>.

8
app-arch/unadf/Manifest Normal file
View File

@@ -0,0 +1,8 @@
AUX 64-bit-fixes 75874 SHA256 cc3ac18d092f4b5eca3227ba1764f402b59eb9b0a2e724342db4ab6144f7db07 SHA512 3fb6aa0818bf08ab7d4a775ba1028d214e1476f130dca94f205749a6c3dca99908fedda94e59c84ff29926c5aaebfa54e84d4e2d4d2d1b5be3543c215b504648 WHIRLPOOL 7de0e976af15dd6ead75c64ad0fbecd1884bcfd70511adbbee0ff1f9bf5c3ce844a03ac6e8430152beb8b7198792ccb8d77e2a9dd72236e47847bfe155aec6e5
AUX add-hardening-flags-in-compiler-options 1219 SHA256 ef3e2fa616f5d17810b1b0db6d637c0e780336504118668a5414af7b164bb339 SHA512 e664f526a4cc66109f718dabda4236260b5fd0adbdce0ef9766a0893df6922eb725eb733fb44a594387b7589671d2a5977c1f5ff65889e9ea95e57246ebcda48 WHIRLPOOL 810b696e9001a5ec9a40ed6b2cf8def102bd2482f43a798a5ffc1cbfd95a7c290d2fe6642d5799159361dbb00bf79a22323c5be66fcb86dc96a90b06d704faaa
AUX source-code-fixes 2260 SHA256 2869c6ed76c7d3c0dd489053671022a20e1fea44f9ea3e5069829e576e8536ac SHA512 3f044ff72499765f5dc54dd617084514df69bdbccda120da94192fe922fdb1716b4e72858d30edbea2b304d26512c03d18bf735ddea0f3e0f243057aa82311d3 WHIRLPOOL f23e0b2950510b0d91f80b09ceb43741394889d57e9f8b3f0ff81ac133df96b03a132115dc385792fee2ee8a4838178b77fd6322d1ac601e19442316aed02ca5
AUX unadf_separate_comment.patch 4473 SHA256 a2a5b0b989bb8e4110f7c3e0aeef8c9cb2335808ad7f9da72bcb84bc12195501 SHA512 46a0e159ef2e03de731ecb652c55c690a858261afd453da2fdd1f8f4cdaf9869bff83966a4b1ccd608b402d4649713eeceabaaee689ccbd97d4980ed59fc30be WHIRLPOOL b1b2667a5c11a8a84bacbda672da0c9bea96dcd0c7b99d6335d99bee5e3f0555ee871e1526229e5146b38c6b1eced70fc178681e6f95cc2f19b7b74707bd5d06
DIST unadf_0.7.11a.orig.tar.gz 209458 SHA256 fa9e0e34b1b0f4f4287905a3d485e3bba498451af98d6c12be87ab3a2b436471 SHA512 f4b45438eaa875d96b42958a74a59b1a7605d3cbb91a7301fa58bf3a6cb617530c972d4496497e3e9395ca7916600bd60a56e4941512250018d3524e5af5bfe9 WHIRLPOOL 674d22dc39944e907195d010326802a2311c477f676280ed8eb945bd4c870d16a620a10c55dab6708ae7053d5a6adc31e3bc0a72f078ecb236cb99f4205f0824
EBUILD unadf-0.7.11a.ebuild 1022 SHA256 fd456453f906c1d63736bf9da1d0177ffd70652dfd0b80267c8f42e5484c0747 SHA512 3ffc114484dd4c50c0369fa3a34c81b7a922fed306bcf37ac151570310945a34232b9a22e3ff53403142771b049882893a84785f589a33a2a84264ffe6efc46e WHIRLPOOL 8807a102a11caf82358cb3e25114660e45f1e588b19869615aa1a687be0e4bf018cc9aa983f20ffac7eec058ae5b7541eda7395663a4d18bfe6efc4cc7e1f07c
MISC ChangeLog 1480 SHA256 4aae781d45103b292677c18dafeb26ca9d2fd5098a48bc177006143d6a76c765 SHA512 9a6816cefb775f881fc0108b598264896119122dff24709a756935f4cc8df30f8757525b8a50a8bbb6e3f528de7d251375d4154db1a13f6c5a7e4b297f040416 WHIRLPOOL 2f044633ed3f163c076a3ddf8adfdf319ff3def6826dd5049433367ef21c75e5f1bf8f49248aa15390ad91bdb6f6926b660190a429901c44d6ccf692715cc419
MISC metadata.xml 202 SHA256 76dbb4a720140d78f0ddfb2b2782c03852169c201c1f507eb17ef4d2a82f212a SHA512 bd1c14da72bdd52e3bea3056f5b9f908c31d6915b651d15d80a0a7d26778c97cde493ae9ca4352bd313eb16ddbed9b169c6b620c7f4a9b77973f7077fa8d997c WHIRLPOOL c073cc4c903e3377c7aee652c5661a1657cc5ba70c3deb4b2d7b2d0e31a78fb8b362b2f255de3faddbf4c46250d14d2d5d39a6a13b910ad18f8d53df362163a0

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,44 @@
Description: Add hardening flags in compiler options
Author: Boris Pek <tehnick-8@mail.ru>
Last-Update: 2012-06-19
--- a/Demo/Makefile
+++ b/Demo/Makefile
@@ -8,6 +8,9 @@
CFLAGS=-I$(LIBDIR) -Wall -Wno-uninitialized -pedantic -std=gnu99 -ggdb
LDFLAGS=-L$(LIBDIR) -ladf
+CFLAGS+=$(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
+LDFLAGS+=$(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
+
EXES= unadf
--- a/Lib/Makefile
+++ b/Lib/Makefile
@@ -16,11 +16,13 @@
DEFINES=
CFLAGS=$(DEFINES) -I${NATIV_DIR} -I.. -I. -Wall -ggdb -std=gnu99
+CFLAGS+=$(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
CC=gcc
DEPEND=makedepend
LDFLAGS=-L. -ladf
+LDFLAGS+=$(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
LDSHARED=$(CC)
OBJS= adf_hd.o adf_disk.o adf_raw.o adf_bitm.o adf_dump.o\
--- a/Demo/unadf.c
+++ b/Demo/unadf.c
@@ -489,8 +489,7 @@
dev = adfMountDev( devname,TRUE );
if (!dev) {
- sprintf(strbuf,"Can't mount the dump device '%s'.\n", devname);
- fprintf(stderr, strbuf);
+ fprintf(stderr,"Can't mount the dump device '%s'.\n", devname);
adfEnvCleanUp(); exit(1);
}
if (!qflag)

View File

@@ -0,0 +1,100 @@
Description: fix header files
Last-Update: 2012-05-31
--- unadf-0.7.11a.orig/Lib/adf_env.c
+++ unadf-0.7.11a/Lib/adf_env.c
@@ -33,7 +33,7 @@
#include"adf_nativ.h"
#include"adf_env.h"
-#include"defendian.h"
+#include"Win32/defendian.h"
union u{
long l;
--- unadf-0.7.11a.orig/Lib/adf_file.c
+++ unadf-0.7.11a/Lib/adf_file.c
@@ -31,7 +31,7 @@
#include"adf_util.h"
#include"adf_file.h"
#include"adf_str.h"
-#include"defendian.h"
+#include"Win32/defendian.h"
#include"adf_raw.h"
#include"adf_disk.h"
#include"adf_dir.h"
--- unadf-0.7.11a.orig/Lib/adf_dir.c
+++ unadf-0.7.11a/Lib/adf_dir.c
@@ -32,7 +32,7 @@
#include"adf_dir.h"
#include"adf_str.h"
#include"adf_util.h"
-#include"defendian.h"
+#include"Win32/defendian.h"
#include"adf_blk.h"
#include"adf_raw.h"
#include"adf_disk.h"
--- unadf-0.7.11a.orig/Lib/adf_raw.c
+++ unadf-0.7.11a/Lib/adf_raw.c
@@ -35,7 +35,7 @@
#include "adf_disk.h"
#include "adf_util.h"
#include "adf_err.h"
-#include "defendian.h"
+#include "Win32/defendian.h"
extern struct Env adfEnv;
--- unadf-0.7.11a.orig/Lib/adf_bitm.c
+++ unadf-0.7.11a/Lib/adf_bitm.c
@@ -33,7 +33,7 @@
#include"adf_err.h"
#include"adf_disk.h"
#include"adf_util.h"
-#include"defendian.h"
+#include"Win32/defendian.h"
extern unsigned long bitMask[32];
--- unadf-0.7.11a.orig/Lib/adf_cache.c
+++ unadf-0.7.11a/Lib/adf_cache.c
@@ -31,7 +31,7 @@
#include"adf_defs.h"
#include"adf_str.h"
#include"adf_err.h"
-#include"defendian.h"
+#include"Win32/defendian.h"
#include"adf_cache.h"
#include"adf_raw.h"
#include"adf_disk.h"
--- unadf-0.7.11a.orig/Lib/adf_hd.c
+++ unadf-0.7.11a/Lib/adf_hd.c
@@ -41,7 +41,7 @@
#include"adf_dump.h"
#include"adf_err.h"
-#include"defendian.h"
+#include"Win32/defendian.h"
extern struct Env adfEnv;
--- unadf-0.7.11a.orig/Lib/Generic/adf_nativ.c
+++ unadf-0.7.11a/Lib/Generic/adf_nativ.c
@@ -20,7 +20,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
- */
#include<stdio.h>
#include<stdlib.h>
--- unadf-0.7.11a.orig/Lib/Generic/adf_nativ.h
+++ unadf-0.7.11a/Lib/Generic/adf_nativ.h
@@ -20,7 +20,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
- */
#ifndef ADF_NATIV_H
#define ADF_NATIV_H

View File

@@ -0,0 +1,122 @@
diff -ur unadf-0.7.11a.orig/Demo/unadf.c unadf-0.7.11a/Demo/unadf.c
--- unadf-0.7.11a.orig/Demo/unadf.c 2013-05-12 17:59:51.214905177 +0200
+++ unadf-0.7.11a/Demo/unadf.c 2013-05-12 17:50:06.843420519 +0200
@@ -58,6 +58,7 @@
puts(" -r : lists directory tree contents");
puts(" -c : use dircache data (must be used with -l)");
puts(" -s : display entries logical block pointer (must be used with -l)");
+ puts(" -m : display file comments, if exists (must be used with -l)");
putchar('\n');
puts(" -v n : mount volume #n instead of default #0 volume");
putchar('\n');
@@ -65,7 +66,8 @@
puts(" -d dir : extract to 'dir' directory");
}
-void printEnt(struct Volume *vol, struct Entry* entry, char *path, BOOL sect)
+void printEnt(struct Volume *vol, struct Entry* entry, char *path, BOOL sect,
+ BOOL comment)
{
/* do not print the links entries, ADFlib do not support them yet properly */
if (entry->type==ST_LFILE || entry->type==ST_LDIR || entry->type==ST_LSOFT)
@@ -89,7 +91,7 @@
printf("%s/",entry->name);
else
printf("%s",entry->name);
- if (entry->comment!=NULL && strlen(entry->comment)>0)
+ if (comment && entry->comment!=NULL && strlen(entry->comment)>0)
printf(", %s",entry->comment);
putchar('\n');
@@ -199,13 +201,14 @@
}
-void printTree(struct Volume *vol, struct List* tree, char* path, BOOL sect)
+void printTree(struct Volume *vol, struct List* tree, char* path, BOOL sect,
+ BOOL comment)
{
char *buf;
struct Entry* entry;
while(tree) {
- printEnt(vol, tree->content, path, sect);
+ printEnt(vol, tree->content, path, sect, comment);
if (tree->subdir!=NULL) {
entry = (struct Entry*)tree->content;
if (strlen(path)>0) {
@@ -215,11 +218,11 @@
return;
}
sprintf(buf,"%s/%s", path, entry->name);
- printTree(vol, tree->subdir, buf, sect);
+ printTree(vol, tree->subdir, buf, sect, comment);
free(buf);
}
else
- printTree(vol, tree->subdir, entry->name, sect);
+ printTree(vol, tree->subdir, entry->name, sect, comment);
}
tree = tree->next;
}
@@ -370,12 +373,10 @@
int main(int argc, char* argv[])
{
int i, j;
- BOOL rflag, lflag, xflag, cflag, vflag, sflag, dflag, pflag, qflag;
+ BOOL rflag, lflag, xflag, cflag, vflag, sflag, dflag, pflag, qflag, mflag;
struct List* files, *rtfiles;
char *devname, *dirname;
- char strbuf[80];
unsigned char *extbuf;
- int vInd, dInd, fInd, aInd;
BOOL nextArg;
struct Device *dev;
@@ -389,8 +390,7 @@
exit(0);
}
- rflag = lflag = cflag = vflag = sflag = dflag = pflag = qflag = FALSE;
- vInd = dInd = fInd = aInd = -1;
+ rflag = lflag = cflag = vflag = sflag = dflag = pflag = qflag = mflag = FALSE;
xflag = TRUE;
dirname = NULL;
devname = NULL;
@@ -430,6 +430,9 @@
case 's':
sflag = TRUE;
break;
+ case 'm':
+ mflag = TRUE;
+ break;
case 'c':
cflag = TRUE;
break;
@@ -522,13 +525,13 @@
if (!rflag) {
cell = list = adfGetDirEnt(vol,vol->curDirPtr);
while(cell) {
- printEnt(vol,cell->content,"", sflag);
+ printEnt(vol,cell->content,"", sflag, mflag);
cell = cell->next;
}
adfFreeDirList(list);
} else {
cell = list = adfGetRDirEnt(vol,vol->curDirPtr,TRUE);
- printTree(vol,cell,"", sflag);
+ printTree(vol,cell,"", sflag, mflag);
adfFreeDirList(list);
}
}else if (xflag) {
diff -ur unadf-0.7.11a.orig/Demo/unadf.usage unadf-0.7.11a/Demo/unadf.usage
--- unadf-0.7.11a.orig/Demo/unadf.usage 2006-12-03 15:27:00.000000000 +0100
+++ unadf-0.7.11a/Demo/unadf.usage 2013-05-12 17:40:23.116966854 +0200
@@ -3,6 +3,7 @@
-r : lists directory tree contents
-c : use dircache data (must be used with -l)
-s : display entries logical block pointer (must be used with -l)
+ -m : display file comments, if exists (must be used with -l)
-v n : mount volume #n instead of default #0 volume

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>robbat2@gentoo.org</email>
</maintainer>
</pkgmetadata>

View File

@@ -0,0 +1,41 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/unadf/unadf-0.7.9b.ebuild,v 1.11 2010/01/01 19:41:00 fauli Exp $
inherit eutils
DESCRIPTION="Extract files from Amiga adf disk images"
SRC_URI="http://ftp.de.debian.org/debian/pool/main/u/unadf/unadf_0.7.11a.orig.tar.gz"
HOMEPAGE="http://packages.debian.org/unstable/utils/unadf"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND="app-arch/unzip
x11-misc/makedepend"
RDEPEND=""
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/source-code-fixes
epatch "${FILESDIR}"/64-bit-fixes
epatch "${FILESDIR}"/add-hardening-flags-in-compiler-options
epatch "${FILESDIR}"/unadf_separate_comment.patch
}
src_compile() {
echo "** ${S} **"
cd "${S}" && make || die "make failed"
}
src_install() {
dobin Demo/unadf
dodoc README CHANGES Faq/adf_info.txt
docinto Docs
dodoc Docs/*
docinto Faq
dodoc Faq/*
docinto Faq/image
dodoc Faq/image/*
}