diff options
author | Timothy Redaelli <drizzt@gentoo.org> | 2007-07-14 14:51:34 +0000 |
---|---|---|
committer | Timothy Redaelli <drizzt@gentoo.org> | 2007-07-14 14:51:34 +0000 |
commit | b26ac19db875a891619e87b379af83c43ea48379 (patch) | |
tree | f5d22a5f8b4831caae39aa56b9a910db0b8ced1e /app-arch/unarj | |
parent | Add ~ia64 (diff) | |
download | historical-b26ac19db875a891619e87b379af83c43ea48379.tar.gz historical-b26ac19db875a891619e87b379af83c43ea48379.tar.bz2 historical-b26ac19db875a891619e87b379af83c43ea48379.zip |
Version bump:
Add ~x86-fbsd keyword with a patch by gechi.it
Package-Manager: portage-2.1.3_rc7
Diffstat (limited to 'app-arch/unarj')
-rw-r--r-- | app-arch/unarj/ChangeLog | 11 | ||||
-rw-r--r-- | app-arch/unarj/Manifest | 50 | ||||
-rw-r--r-- | app-arch/unarj/files/digest-unarj-2.65 | 3 | ||||
-rw-r--r-- | app-arch/unarj/files/unarj-2.63a-sanitation.patch | 133 | ||||
-rw-r--r-- | app-arch/unarj/files/unarj-2.65-gentoo-fbsd.patch | 9 | ||||
-rw-r--r-- | app-arch/unarj/files/unarj-2.65-sanitation.patch | 29 | ||||
-rw-r--r-- | app-arch/unarj/unarj-2.63a-r2.ebuild | 4 | ||||
-rw-r--r-- | app-arch/unarj/unarj-2.65.ebuild | 33 |
8 files changed, 239 insertions, 33 deletions
diff --git a/app-arch/unarj/ChangeLog b/app-arch/unarj/ChangeLog index 1d073042d0a0..78a1ff1d4d9e 100644 --- a/app-arch/unarj/ChangeLog +++ b/app-arch/unarj/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for app-arch/unarj # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-arch/unarj/ChangeLog,v 1.21 2007/03/09 20:09:03 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-arch/unarj/ChangeLog,v 1.22 2007/07/14 14:51:34 drizzt Exp $ + +*unarj-2.65 (14 Jul 2007) + + 14 Jul 2007; Timothy Redaelli <drizzt@gentoo.org> + +files/unarj-2.63a-sanitation.patch, +files/unarj-2.65-gentoo-fbsd.patch, + files/unarj-2.65-sanitation.patch, unarj-2.63a-r2.ebuild, + +unarj-2.65.ebuild: + Version bump: + Add ~x86-fbsd keyword with a patch by gechi.it 09 Mar 2007; Jeroen Roovers <jer@gentoo.org> unarj-2.63a-r2.ebuild: Stable for HPPA (xarchiver, perhaps bug #157879). diff --git a/app-arch/unarj/Manifest b/app-arch/unarj/Manifest index 81bed07b626b..4bb92b28043e 100644 --- a/app-arch/unarj/Manifest +++ b/app-arch/unarj/Manifest @@ -1,20 +1,36 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX unarj-2.63a-sanitation.patch 3040 RMD160 0fbacb6f9e638199f0151447251fe98e5e5bc57b SHA1 96fb99be56e76315429fa40cf619258853f3255f SHA256 b18a3db8e87a6ebb9dfe87cc58a573126311be69e9e7b5e85214bf5c33664449 +MD5 ff29e175029520a55c6bbe96c614370b files/unarj-2.63a-sanitation.patch 3040 +RMD160 0fbacb6f9e638199f0151447251fe98e5e5bc57b files/unarj-2.63a-sanitation.patch 3040 +SHA256 b18a3db8e87a6ebb9dfe87cc58a573126311be69e9e7b5e85214bf5c33664449 files/unarj-2.63a-sanitation.patch 3040 AUX unarj-2.65-CAN-2004-0947.patch 1523 RMD160 e8d360efda3a7569934fbf40a9b6452c1371c023 SHA1 c31e07ae4e860cb9b15c54f0c74615fff6e79650 SHA256 ade062a372bb40ec8965c4e3fc223edb6721057a0b7bd8ace1f0e885c15d4826 MD5 c690458b8e0e69d0988b7359b4c4efa7 files/unarj-2.65-CAN-2004-0947.patch 1523 RMD160 e8d360efda3a7569934fbf40a9b6452c1371c023 files/unarj-2.65-CAN-2004-0947.patch 1523 SHA256 ade062a372bb40ec8965c4e3fc223edb6721057a0b7bd8ace1f0e885c15d4826 files/unarj-2.65-CAN-2004-0947.patch 1523 -AUX unarj-2.65-sanitation.patch 3040 RMD160 0fbacb6f9e638199f0151447251fe98e5e5bc57b SHA1 96fb99be56e76315429fa40cf619258853f3255f SHA256 b18a3db8e87a6ebb9dfe87cc58a573126311be69e9e7b5e85214bf5c33664449 -MD5 ff29e175029520a55c6bbe96c614370b files/unarj-2.65-sanitation.patch 3040 -RMD160 0fbacb6f9e638199f0151447251fe98e5e5bc57b files/unarj-2.65-sanitation.patch 3040 -SHA256 b18a3db8e87a6ebb9dfe87cc58a573126311be69e9e7b5e85214bf5c33664449 files/unarj-2.65-sanitation.patch 3040 +AUX unarj-2.65-gentoo-fbsd.patch 220 RMD160 2945eae7dbcd0eb103e5b51656d8126db65079ff SHA1 0c6442f0e8021b0d07f9ed8e3bcade71937e040a SHA256 cceeb9cbeecaf1468dfd5f919982f949d99e60c262b174f77df38022d123682a +MD5 db26b5c8b915d9a976e90bf1a4465542 files/unarj-2.65-gentoo-fbsd.patch 220 +RMD160 2945eae7dbcd0eb103e5b51656d8126db65079ff files/unarj-2.65-gentoo-fbsd.patch 220 +SHA256 cceeb9cbeecaf1468dfd5f919982f949d99e60c262b174f77df38022d123682a files/unarj-2.65-gentoo-fbsd.patch 220 +AUX unarj-2.65-sanitation.patch 2710 RMD160 177d0e56e1f3ad0a9c9257a8fa5c7b2b32e9dbe2 SHA1 c58b771dc95d6935caa17db04de7e32da5b48d5a SHA256 6f6507362658dbe1629945834461c59ba6fbec097655feb40a72136efe758b1c +MD5 1eac9627e8acc91a0eff8830cda4b5a3 files/unarj-2.65-sanitation.patch 2710 +RMD160 177d0e56e1f3ad0a9c9257a8fa5c7b2b32e9dbe2 files/unarj-2.65-sanitation.patch 2710 +SHA256 6f6507362658dbe1629945834461c59ba6fbec097655feb40a72136efe758b1c files/unarj-2.65-sanitation.patch 2710 DIST unarj-2.63a.tar.gz 24979 RMD160 cebee016ffc2b7eb74a13f8246d82ea68519e500 SHA1 abd35d894444fea1a0bdc7472ed2346f0f8c6ba4 SHA256 33f8297aa28911eb684ca83e9e00de04a360ea35603282d91de20aec4eb19a48 -EBUILD unarj-2.63a-r2.ebuild 826 RMD160 51c96e31d228dd50fc01f82a29baa0320b79207d SHA1 113e745d3be55c09233d1adda69f7ad60cfc099c SHA256 94e18a0c785aa891ffe5c217dd09d4ee4aeea62b8d143e96b82fb578f9d1e042 -MD5 5fefed2fb5282dbfa9f9b9636e107200 unarj-2.63a-r2.ebuild 826 -RMD160 51c96e31d228dd50fc01f82a29baa0320b79207d unarj-2.63a-r2.ebuild 826 -SHA256 94e18a0c785aa891ffe5c217dd09d4ee4aeea62b8d143e96b82fb578f9d1e042 unarj-2.63a-r2.ebuild 826 -MISC ChangeLog 2542 RMD160 402a3476a5dee00cd7f846d3389c728916689ab2 SHA1 2cbd25138bd9e5982211076d019138eea1ad56c5 SHA256 f92ad60aa912a9c2a5c32f9251a9e6ba13884aca266058d40011cf8a397f6412 -MD5 938633f56500fc410f0982268de91d75 ChangeLog 2542 -RMD160 402a3476a5dee00cd7f846d3389c728916689ab2 ChangeLog 2542 -SHA256 f92ad60aa912a9c2a5c32f9251a9e6ba13884aca266058d40011cf8a397f6412 ChangeLog 2542 +DIST unarj-2.65.tgz 21568 RMD160 54760b2896c29b35fd0af8a136e3412c2b2142f5 SHA1 a7c3f5ec0ff3eb987d350a41f1cb3163120e37fc SHA256 092869f3b4d4943b3d999db4f266f39ab9e474f2984b813b20735283af068304 +EBUILD unarj-2.63a-r2.ebuild 823 RMD160 d0a969f3b087af2ead2ffc8e6605082c891d6d51 SHA1 9c5291eee7b3b1cb1cdeecd6d4be7c55849c68d2 SHA256 10cd1788f2654ca4eae667672cfd6be5320d5a5edfcef74d616feb88a4da9b8e +MD5 55722a5a856875606447db5bcc48800b unarj-2.63a-r2.ebuild 823 +RMD160 d0a969f3b087af2ead2ffc8e6605082c891d6d51 unarj-2.63a-r2.ebuild 823 +SHA256 10cd1788f2654ca4eae667672cfd6be5320d5a5edfcef74d616feb88a4da9b8e unarj-2.63a-r2.ebuild 823 +EBUILD unarj-2.65.ebuild 830 RMD160 b38a132ff1fafc18688201014440b9bf914b805f SHA1 ff1fa340f153545c9b177452c876ef8c98c94ac6 SHA256 24c082c12d0fa6fbf439413439a02ebcbfa65cd1bdfb47ee08a73fc9baaf3f94 +MD5 76016b191b3b37b995983ac139699829 unarj-2.65.ebuild 830 +RMD160 b38a132ff1fafc18688201014440b9bf914b805f unarj-2.65.ebuild 830 +SHA256 24c082c12d0fa6fbf439413439a02ebcbfa65cd1bdfb47ee08a73fc9baaf3f94 unarj-2.65.ebuild 830 +MISC ChangeLog 2848 RMD160 4854d6f7bb1a95997f1d496e1eff87eccc5eacc9 SHA1 50825502813b05a32bcc296b0f48fe50b6bf95ae SHA256 93a24c96350eb2eef8b92bdb2250c318aa736c0f47796c108af10553f1cc8736 +MD5 12b48311b7a0558121b61d5d10b75a29 ChangeLog 2848 +RMD160 4854d6f7bb1a95997f1d496e1eff87eccc5eacc9 ChangeLog 2848 +SHA256 93a24c96350eb2eef8b92bdb2250c318aa736c0f47796c108af10553f1cc8736 ChangeLog 2848 MISC metadata.xml 317 RMD160 b30990d91263e71b9733fa7848c9358e5b78e29b SHA1 1b164a78a2f46bba5fba9c4d16370d53df8d5e43 SHA256 5db5a439233c78295b4465abb4a3383874aa8438b80f85a4b29fd05133f0e701 MD5 bb7410022e37a9182ca39acb5b7810f4 metadata.xml 317 RMD160 b30990d91263e71b9733fa7848c9358e5b78e29b metadata.xml 317 @@ -22,3 +38,13 @@ SHA256 5db5a439233c78295b4465abb4a3383874aa8438b80f85a4b29fd05133f0e701 metadata MD5 8829362bb5d44f5979b1db5b9642ae76 files/digest-unarj-2.63a-r2 232 RMD160 36e01f9bc539e25698c40a98bb5af47a40b9c228 files/digest-unarj-2.63a-r2 232 SHA256 923cc507bda5d7eed51739d40984f2265f81c5c54fa5329340697bb5a24d29cb files/digest-unarj-2.63a-r2 232 +MD5 f5b1b7a206ef4388cc4265db1920f18f files/digest-unarj-2.65 220 +RMD160 7835439a6999347218de310a7eebb299a727bece files/digest-unarj-2.65 220 +SHA256 c18bcb0f74b58153900a5a579d5569bb10aa1a324bf9ce0326e89c48efd0d55b files/digest-unarj-2.65 220 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.4 (GNU/Linux) + +iD8DBQFGmOL5jJyKLBkBVroRApi7AJ9i/xGin2u8RcME/EIUlGXxVEZ3iQCcCCwM +IZIZ7yJy3/BYsQ+nR0IDlpQ= +=/iSC +-----END PGP SIGNATURE----- diff --git a/app-arch/unarj/files/digest-unarj-2.65 b/app-arch/unarj/files/digest-unarj-2.65 new file mode 100644 index 000000000000..12cc8ad9b44f --- /dev/null +++ b/app-arch/unarj/files/digest-unarj-2.65 @@ -0,0 +1,3 @@ +MD5 a35c9a969cfdbb621b2084dce65fda70 unarj-2.65.tgz 21568 +RMD160 54760b2896c29b35fd0af8a136e3412c2b2142f5 unarj-2.65.tgz 21568 +SHA256 092869f3b4d4943b3d999db4f266f39ab9e474f2984b813b20735283af068304 unarj-2.65.tgz 21568 diff --git a/app-arch/unarj/files/unarj-2.63a-sanitation.patch b/app-arch/unarj/files/unarj-2.63a-sanitation.patch new file mode 100644 index 000000000000..e8b36f050815 --- /dev/null +++ b/app-arch/unarj/files/unarj-2.63a-sanitation.patch @@ -0,0 +1,133 @@ +Index: unarj-2.65/sanitize.c +=================================================================== +--- /dev/null ++++ unarj-2.65/sanitize.c +@@ -0,0 +1,81 @@ ++/* ++ * Path sanitation code by Ludwig Nussel <ludwig.nussel@suse.de>. Public Domain. ++ */ ++ ++#include "unarj.h" ++ ++#include <string.h> ++#include <limits.h> ++#include <stdio.h> ++ ++#ifndef PATH_CHAR ++#define PATH_CHAR '/' ++#endif ++#ifndef MIN ++#define MIN(x,y) ((x)<(y)?(x):(y)) ++#endif ++ ++/* copy src into dest converting the path to a relative one inside the current ++ * directory. dest must hold at least len bytes */ ++void copy_path_relative(char *dest, char *src, size_t len) ++{ ++ char* o = dest; ++ char* p = src; ++ ++ *o = '\0'; ++ ++ while(*p && *p == PATH_CHAR) ++p; ++ for(; len && *p;) ++ { ++ src = p; ++ p = strchr(src, PATH_CHAR); ++ if(!p) p = src+strlen(src); ++ ++ /* . => skip */ ++ if(p-src == 1 && *src == '.' ) ++ { ++ if(*p) src = ++p; ++ } ++ /* .. => pop one */ ++ else if(p-src == 2 && *src == '.' && src[1] == '.') ++ { ++ if(o != dest) ++ { ++ char* tmp; ++ *o = '\0'; ++ tmp = strrchr(dest, PATH_CHAR); ++ if(!tmp) ++ { ++ len += o-dest; ++ o = dest; ++ if(*p) ++p; ++ } ++ else ++ { ++ len += o-tmp; ++ o = tmp; ++ if(*p) ++p; ++ } ++ } ++ else /* nothing to pop */ ++ if(*p) ++p; ++ } ++ else ++ { ++ size_t copy; ++ if(o != dest) ++ { ++ --len; ++ *o++ = PATH_CHAR; ++ } ++ copy = MIN(p-src,len); ++ memcpy(o, src, copy); ++ len -= copy; ++ src += copy; ++ o += copy; ++ if(*p) ++p; ++ } ++ while(*p && *p == PATH_CHAR) ++p; ++ } ++ o[len?0:-1] = '\0'; ++} +Index: unarj-2.65/unarj.c +=================================================================== +--- unarj-2.65.orig/unarj.c ++++ unarj-2.65/unarj.c +@@ -235,6 +235,8 @@ static UCRC crctable[UCHAR_MAX + 1]; + + /* Functions */ + ++void copy_path_relative(char *dest, char *src, size_t len); ++ + static void + make_crctable() + { +@@ -738,11 +740,11 @@ extract() + + no_output = 0; + if (command == 'E') +- strncopy(name, &filename[entry_pos], sizeof(name)); ++ copy_path_relative(name, &filename[entry_pos], sizeof(name)); + else + { + strcpy(name, DEFAULT_DIR); +- strncopy(name+strlen(name), filename, sizeof(name)-strlen(name)); ++ copy_path_relative(name+strlen(name), filename, sizeof(name)-strlen(name)); + } + + if (host_os != OS) +Index: unarj-2.65/Makefile +=================================================================== +--- unarj-2.65.orig/Makefile ++++ unarj-2.65/Makefile +@@ -6,8 +6,8 @@ CC = gcc + CFLAGS = -O2 -Wall -ansi -pedantic -DUNIX + INSTALLDIR=/usr/local/bin + +-unarj: unarj.o decode.o environ.o +- $(CC) $(CFLAGS) -o unarj unarj.o decode.o environ.o ++unarj: unarj.o decode.o environ.o sanitize.o ++ $(CC) $(CFLAGS) -o unarj unarj.o decode.o environ.o sanitize.o + strip unarj + + clean: +@@ -19,3 +19,4 @@ install: + unarj.o: unarj.c unarj.h Makefile + environ.o: environ.c unarj.h Makefile + decode.o: decode.c unarj.h Makefile ++sanitize.o: sanitize.c unarj.h Makefile diff --git a/app-arch/unarj/files/unarj-2.65-gentoo-fbsd.patch b/app-arch/unarj/files/unarj-2.65-gentoo-fbsd.patch new file mode 100644 index 000000000000..755b9b696cc9 --- /dev/null +++ b/app-arch/unarj/files/unarj-2.65-gentoo-fbsd.patch @@ -0,0 +1,9 @@ +--- environ.c 2007-06-19 12:44:09 +0200 ++++ environ.c.new 2007-06-19 12:44:37 +0200 +@@ -437,7 +437,6 @@ + #endif + + extern struct tm *localtime(); +-extern time_t time(); + extern char *strcpy(); + extern voidp *malloc();
\ No newline at end of file diff --git a/app-arch/unarj/files/unarj-2.65-sanitation.patch b/app-arch/unarj/files/unarj-2.65-sanitation.patch index e8b36f050815..f37784ed2491 100644 --- a/app-arch/unarj/files/unarj-2.65-sanitation.patch +++ b/app-arch/unarj/files/unarj-2.65-sanitation.patch @@ -111,23 +111,16 @@ Index: unarj-2.65/unarj.c } if (host_os != OS) -Index: unarj-2.65/Makefile -=================================================================== ---- unarj-2.65.orig/Makefile -+++ unarj-2.65/Makefile -@@ -6,8 +6,8 @@ CC = gcc - CFLAGS = -O2 -Wall -ansi -pedantic -DUNIX - INSTALLDIR=/usr/local/bin +--- unarj-2.65.orig/Makefile Mon Nov 29 16:47:24 2004 ++++ unarj-2.65/Makefile Mon Nov 29 22:46:56 2004 +@@ -9,7 +9,9 @@ + + decode.o: decode.c unarj.h --unarj: unarj.o decode.o environ.o -- $(CC) $(CFLAGS) -o unarj unarj.o decode.o environ.o -+unarj: unarj.o decode.o environ.o sanitize.o -+ $(CC) $(CFLAGS) -o unarj unarj.o decode.o environ.o sanitize.o - strip unarj +-OBJS = unarj.o decode.o environ.o ++sanitize.o: sanitize.c unarj.h ++ ++OBJS = unarj.o decode.o environ.o sanitize.o - clean: -@@ -19,3 +19,4 @@ install: - unarj.o: unarj.c unarj.h Makefile - environ.o: environ.c unarj.h Makefile - decode.o: decode.c unarj.h Makefile -+sanitize.o: sanitize.c unarj.h Makefile + unarj: $(OBJS) + $(CC) $(LDFLAGS) $(OBJS) -o unarj diff --git a/app-arch/unarj/unarj-2.63a-r2.ebuild b/app-arch/unarj/unarj-2.63a-r2.ebuild index 15b162502724..e27d66cec311 100644 --- a/app-arch/unarj/unarj-2.63a-r2.ebuild +++ b/app-arch/unarj/unarj-2.63a-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-arch/unarj/unarj-2.63a-r2.ebuild,v 1.14 2007/03/09 20:09:03 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-arch/unarj/unarj-2.63a-r2.ebuild,v 1.15 2007/07/14 14:51:34 drizzt Exp $ inherit eutils @@ -18,7 +18,7 @@ src_unpack() { cd ${S} sed -i "/^CFLAGS/s:-O2:${CFLAGS}:" Makefile epatch ${FILESDIR}/unarj-2.65-CAN-2004-0947.patch - epatch ${FILESDIR}/unarj-2.65-sanitation.patch + epatch ${FILESDIR}/${P}-sanitation.patch sed -i -e 's@strip unarj@@' Makefile } diff --git a/app-arch/unarj/unarj-2.65.ebuild b/app-arch/unarj/unarj-2.65.ebuild new file mode 100644 index 000000000000..2956a804f104 --- /dev/null +++ b/app-arch/unarj/unarj-2.65.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-arch/unarj/unarj-2.65.ebuild,v 1.1 2007/07/14 14:51:34 drizzt Exp $ + +inherit eutils toolchain-funcs + +DESCRIPTION="Utility for opening arj archives" +HOMEPAGE="http://www.arjsoftware.com/" +SRC_URI="mirror://freebsd/ports/local-distfiles/ache/${P}.tgz" + +LICENSE="arj" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${P}-CAN-2004-0947.patch + epatch "${FILESDIR}"/${P}-sanitation.patch + epatch "${FILESDIR}"/${P}-gentoo-fbsd.patch +} + +src_compile() { + tc-export CC + emake || die +} + +src_install() { + dobin unarj || die 'dobin failed' + dodoc unarj.txt technote.txt || die 'dodoc failed' +} |