add(dev-util/catalyst): Add catalyst and its missing dependencies

With these installed bootstrap_sdk should work inside the sdk itself.
Probably won't add this to the sdk by default since it pulls in extra
stuff most people don't need and is only really needed for build hosts.
This commit is contained in:
Michael Marineau 2013-06-22 12:00:55 -04:00
parent 603a1b1a05
commit a8bf0fc986
57 changed files with 5054 additions and 0 deletions

View File

@ -0,0 +1,199 @@
# ChangeLog for app-arch/lbzip2
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/lbzip2/ChangeLog,v 1.52 2013/06/02 08:37:27 ago Exp $
02 Jun 2013; Agostino Sarubbo <ago@gentoo.org> lbzip2-2.2-r1.ebuild:
Stable for sh, wrt bug #457218
25 May 2013; Agostino Sarubbo <ago@gentoo.org> lbzip2-2.2-r1.ebuild:
Stable for sparc, wrt bug #457218
20 May 2013; Agostino Sarubbo <ago@gentoo.org> lbzip2-2.2-r1.ebuild:
Stable for s390, wrt bug #457218
20 May 2013; Agostino Sarubbo <ago@gentoo.org> lbzip2-2.2-r1.ebuild:
Stable for x86, wrt bug #457218
18 May 2013; Agostino Sarubbo <ago@gentoo.org> lbzip2-2.2-r1.ebuild:
Stable for alpha, wrt bug #457218
17 May 2013; Agostino Sarubbo <ago@gentoo.org> lbzip2-2.2-r1.ebuild:
Stable for ia64, wrt bug #457218
17 May 2013; Jeroen Roovers <jer@gentoo.org> lbzip2-2.2-r1.ebuild:
Stable for HPPA (bug #457218).
16 May 2013; Agostino Sarubbo <ago@gentoo.org> lbzip2-2.2-r1.ebuild:
Stable for arm, wrt bug #457218
16 May 2013; Agostino Sarubbo <ago@gentoo.org> lbzip2-2.2-r1.ebuild:
Stable for ppc64, wrt bug #457218
16 May 2013; Agostino Sarubbo <ago@gentoo.org> lbzip2-2.2-r1.ebuild:
Stable for ppc, wrt bug #457218
16 May 2013; Agostino Sarubbo <ago@gentoo.org> lbzip2-2.2-r1.ebuild:
Stable for amd64, wrt bug #457218
*lbzip2-2.2-r1 (12 Jan 2013)
12 Jan 2013; Justin Lecher <jlec@gentoo.org> +lbzip2-2.2-r1.ebuild,
+files/lbzip2-2.2-assertion.patch, metadata.xml:
Backport fix from upstream git for Assertion failure, #436382
07 Oct 2012; Justin Lecher <jlec@gentoo.org> -lbzip2-0.23-r2.ebuild,
-lbzip2-2.1.ebuild, -lbzip2-2.1-r2.ebuild, lbzip2-2.2.ebuild:
Block other packages installing the /usr/bin/bzip2 symlink, #436354; drop old
30 Sep 2012; Raúl Porcel <armin76@gentoo.org> lbzip2-2.2.ebuild:
ia64/m68k/s390/sh/sparc stable wrt #435228
25 Sep 2012; Matt Turner <mattst88@gentoo.org> lbzip2-2.2.ebuild:
Stable on alpha, bug 435228.
18 Sep 2012; Anthony G. Basile <blueness@gentoo.org> lbzip2-2.2.ebuild:
stable arm, bug #435228
18 Sep 2012; Jeroen Roovers <jer@gentoo.org> lbzip2-2.2.ebuild:
Stable for HPPA (bug #435228).
18 Sep 2012; Johannes Huber <johu@gentoo.org> lbzip2-2.2.ebuild:
Stable for x86, wrt bug #435228
18 Sep 2012; Anthony G. Basile <blueness@gentoo.org> lbzip2-2.2.ebuild:
stable ppc ppc64, bug #435228
17 Sep 2012; Agostino Sarubbo <ago@gentoo.org> lbzip2-2.2.ebuild:
Stable for amd64, wrt bug #435228
*lbzip2-2.2 (06 Aug 2012)
06 Aug 2012; Justin Lecher <jlec@gentoo.org> +lbzip2-2.2.ebuild,
+files/lbzip2-2.2-s_isreg.patch:
Version Bump
14 Feb 2012; Jeroen Roovers <jer@gentoo.org> lbzip2-0.23-r2.ebuild:
Stable for HPPA (bug #370685).
*lbzip2-2.1-r2 (05 Dec 2011)
05 Dec 2011; Justin Lecher <jlec@gentoo.org> files/2.1-crc-missmatch.patch,
-lbzip2-2.1-r1.ebuild, +lbzip2-2.1-r2.ebuild:
Correct working fix for crc mismatch, upstream
b0808cade3a7554bf7c0a00314218feccc8398f5; #393155
*lbzip2-2.1-r1 (28 Nov 2011)
28 Nov 2011; Justin Lecher <jlec@gentoo.org> +files/2.1-crc-missmatch.patch,
+lbzip2-2.1-r1.ebuild:
Fixes crc missmatch, https://github.com/kjn/lbzip2/issues/5
28 Nov 2011; Justin Lecher <jlec@gentoo.org> lbzip2-2.1.ebuild:
Keyworded for prefix, tested by me
*lbzip2-2.1 (24 Nov 2011)
24 Nov 2011; Justin Lecher <jlec@gentoo.org> -lbzip2-2.0.ebuild,
+lbzip2-2.1.ebuild:
Version Bump, fixes https://github.com/kjn/lbzip2/issues/4 which was rated to
be a security lack in addition to the function loss.
20 Nov 2011; Kacper Kowalik <xarthisius@gentoo.org> lbzip2-0.23-r2.ebuild:
ppc64 stable wrt #370685
06 Nov 2011; Brent Baude <ranger@gentoo.org> lbzip2-0.23-r2.ebuild:
Marking lbzip2-0.23-r2 ppc for bug 370685
*lbzip2-2.0 (03 Nov 2011)
03 Nov 2011; Justin Lecher <jlec@gentoo.org> +lbzip2-2.0.ebuild,
metadata.xml:
Version Bump, #389389; thanks Tim Harder for the updated ebuild
23 Oct 2011; Raúl Porcel <armin76@gentoo.org> lbzip2-0.23-r2.ebuild:
alpha/arm/ia64/m68k/s390/sh/sparc stable wrt #370685
13 Oct 2011; Pawel Hajdan jr <phajdan.jr@gentoo.org> lbzip2-0.23-r2.ebuild:
x86 stable wrt bug #370685
13 Oct 2011; Tony Vroon <chainsaw@gentoo.org> lbzip2-0.23-r2.ebuild:
Marked stable on AMD64 based on arch testing by Agostino "ago" Sarubbo &
Elijah "Armageddon" El Lazkani in bug #370685.
06 Sep 2011; Naohiro Aota <naota@gentoo.org> lbzip2-0.23-r2.ebuild:
Add ~x86-fbsd. Bug #370685
15 Aug 2011; Matt Turner <mattst88@gentoo.org> -files/0.20-Makefile.patch,
-lbzip2-0.20.ebuild, -lbzip2-0.22.ebuild, -lbzip2-0.23.ebuild,
-lbzip2-0.23-r1.ebuild, -files/0.22-Makefile.patch, lbzip2-0.23-r2.ebuild:
Remove old versions.
14 Aug 2011; Matt Turner <mattst88@gentoo.org> +files/0.23-test.sh.patch,
lbzip2-0.23-r2.ebuild:
Don't use lfs.sh from test.sh. Should help BSD.
*lbzip2-0.23-r2 (06 Aug 2011)
06 Aug 2011; Matt Turner <mattst88@gentoo.org> +files/0.23-Makefile.patch,
+lbzip2-0.23-r2.ebuild:
BSD fixes: Replaced dependency on app-shells/dash with app-shells/bash; Added
option to use freebsd-ubin instead of sys-process/time. Removed
_X_OPEN_SOURCE from Makefile. Thanks to Alexis Ballier, Laszlo Ersek, and
Naohiro Aota for their suggestions in bug 370685.
06 Aug 2011; Matt Turner <mattst88@gentoo.org> metadata.xml:
Add myself as a maintainer.
10 Jul 2011; Raúl Porcel <armin76@gentoo.org> lbzip2-0.23-r1.ebuild:
Add ~ia64/~m68k/~s390/~sh/~sparc wrt #370685
12 Jun 2011; Markus Meier <maekke@gentoo.org> lbzip2-0.23-r1.ebuild:
add ~arm, bug #370685
10 Jun 2011; Justin Lecher <jlec@gentoo.org> lbzip2-0.20.ebuild,
lbzip2-0.22.ebuild, lbzip2-0.23.ebuild, lbzip2-0.23-r1.ebuild, metadata.xml:
Adopted DESCRIPTION as sugested in bug 370685
09 Jun 2011; Jeroen Roovers <jer@gentoo.org> lbzip2-0.23-r1.ebuild:
Marked ~hppa (bug #370685).
08 Jun 2011; Kacper Kowalik <xarthisius@gentoo.org> lbzip2-0.23-r1.ebuild:
Marked ~ppc/~ppc64 wrt #370685
08 Jun 2011; Matt Turner <mattst88@gentoo.org> lbzip2-0.23-r1.ebuild:
Add ~alpha and ~mips, bug 370685
08 Jun 2011; Matt Turner <mattst88@gentoo.org> lbzip2-0.23-r1.ebuild:
Add missing sys-devel/bc dependency for USE=test
*lbzip2-0.23-r1 (27 Mar 2010)
27 Mar 2010; Justin Lecher <jlec@gentoo.org>
+files/0.23-s_isreg.patch, +lbzip2-0.23-r1.ebuild:
Add support for symlink decompression #309683
*lbzip2-0.23 (04 Mar 2010)
04 Mar 2010; Justin Lecher <jlec@gentoo.org>
+lbzip2-0.23.ebuild:
Version Bump
*lbzip2-0.22 (19 Feb 2010)
19 Feb 2010; Justin Lecher <jlec@gentoo.org>
-files/0.21-Makefile.patch, -lbzip2-0.21.ebuild,
+files/0.22-Makefile.patch, +lbzip2-0.22.ebuild:
Version Bump
*lbzip2-0.21 (18 Feb 2010)
18 Feb 2010; Justin Lecher <jlec@gentoo.org>
+files/0.21-Makefile.patch, +lbzip2-0.21.ebuild:
Version Bump
*lbzip2-0.20 (09 Feb 2010)
09 Feb 2010; Justin Lecher <jlec@gentoo.org>
+files/0.20-Makefile.patch, +lbzip2-0.20.ebuild, +metadata.xml:
Added on request of bug 264002
thanks Daniel Lin for initial ebuild

View File

@ -0,0 +1,31 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
AUX 0.23-Makefile.patch 1389 SHA256 1fa306143aa8030381d561c29022bab2775877b7e5dcd3aa63476205ae3c375a SHA512 2cd8d561fc2a5351f8fba57cd6e99a866692b14db9bac4195bcbee4f0dde1f442c8c2ad5f813f690ef62f72c069219ff2755fd8d61a22ea17ab45044d52ac262 WHIRLPOOL 909779dbebb24b162a4cd8e7daa40e3c14d41f302a5e18ec20e65c74923c8cb71edfaab5dce31b831f55ed07114944b5b2f10a3404d1cf4fd8919b9d664a748d
AUX 0.23-s_isreg.patch 350 SHA256 38c1c133faf8c30440164fad7c1539df555cee606934a3e75ed6a149eeb5d1d6 SHA512 ff0bf55710ec4a9a464515dfd49daee8ab3b4f0ffe4461ada19b8ba8056c10bfc05ee736204906c026ed075345d9f0f5f2d179b09edec189b2b37f99489f7b32 WHIRLPOOL d119c6f291ca149f9114a59eb4ba717cf41856973cf83746374df0aac9cc120a6ee6545f3b4b1a9a3a5e0b4f14316be18df268fef5353212c1b01be2de58abce
AUX 0.23-test.sh.patch 648 SHA256 e37454a09697a49574068ad5c89d2047a9f4f5d9df32aacd3b01584f2b0477a1 SHA512 2fe226cb030d444d9a0866487596ed039b4e66af39762f1bc93625c1e93a7336697fa01311c3f0d0eee4a528ae513d18f197534d85539f3185dd8e58e1819dc7 WHIRLPOOL d06585234803278d593499af1e439b89f5dbe721d299018eb78f2b947db98bc882580b958b59a1abf1ef59b08abf9ec521b57fd32b99640d74e6d9c0787aa591
AUX 2.1-crc-missmatch.patch 552 SHA256 3263d1b9452ac65a01a6127e1078ba6cc3ba040c8001e764af2f06d323d13c89 SHA512 b5113b0fe23adc17811b6e7812ca6e671d978c6765519729998077d6aed000f1fd22241b06ab4330534a6813b5b9f5d7aec62ed007957a34d39a39d5041f5b77 WHIRLPOOL d71c7954c2b24528359f05fd7917de75b0aa0cf872b8a38384e95a588d3ab19e7c3bac8492a9a37bdb5ae497d6a3cd7621b0dd698bd94102b363c5a25f81b669
AUX lbzip2-2.2-assertion.patch 3445 SHA256 b8604cc0a184fdd3efed02746623d1c29827381e2c659dcc7aab1fa3b6b8f59f SHA512 fa5b6572ffff30650b4917679e178741220f2fea0f6e62e7935839572f92c5f5c2455edc429c790b1d905445a295a541fca23378b5c24296e1a676414692360d WHIRLPOOL 7de49a15e1524e81f776d5e86cadda4a29c793d89d9259c740ca8aeb406099bb0b5f1de8cbd29b81be06911894102dc0244d8b6818c9ddf2d8a063797dd9bdc6
AUX lbzip2-2.2-s_isreg.patch 456 SHA256 d3564db329d05fde2866a113066e21478ef8c504c3765ac934afbe3e31df00c3 SHA512 5c5c221befa34b50b1cd299608fea4d0871ede7c53a297fe05504ac34b3088378f1734d9e7a1c1649ede44894481786b0c417d38852963606b127090c97b33bb WHIRLPOOL 6a5c6f6d566f8dd4880047fe0f2c49626b07174785715c3cd06e736117133dc23d67020d8cba6b4dd66a013f60ac8da0582af64c08629e2010a29938404219d0
DIST lbzip2-2.2.tar.gz 622154 SHA256 b905f763a5859670e36b15d016fb6bb73d6718905fc0e2a9fa1dbc11f30b0d80 SHA512 9b194eee262e44d4665d97307f73f20075c301c2a8fbc0f989805359645387bb3ad0a6b7507edc5463a017eaf7002ee177e9fc00cf808c02c7a9c16e7b58b918 WHIRLPOOL 241c6cf473171be56b94efdc152eecb15482977ed47cb46ed47dad641bca9f73d7ec52f13947677aa619387707d5d17f7fa3421f9bc83fc28ced9e7c49b607d1
EBUILD lbzip2-2.2-r1.ebuild 902 SHA256 afa4f1d4729f4e77026565397d2d4f252f294cb29495dcae15e4b0e4b41e0561 SHA512 7370254b4c8030b6907071362f1aebc0bae46665ca5d9c8c854cae5c2510b727c9d428d0e0ff237e9f41c503c102cc92393ea47060f94583db29b2880e49d0b0 WHIRLPOOL d35d923c686cd465a9bf1ed44f487f7cc7ba5cba9cc0af04c2c2bd5c12feabc631b9c8df0df6b15fb0074230d772798f848a4bf53e9efdb5318ae5337a1f8c54
EBUILD lbzip2-2.2.ebuild 860 SHA256 eb15019cae723c280bc30742ae1d2cf177861971301245d720bab14c70890a3e SHA512 0ba223c40b6f82d09b77a4813dc749e6a997a91ba8e9f662966704389ae7b69d4cf61b9d8c5dfcd7500560c84387b1839087c158016abf1c00d81302cd156a79 WHIRLPOOL 5fe79226012e8d32ba84aa75709bd688c0dffc8547cf643a8418aa217c323b609ed6609fbc80d9cc8791818ad735bd2443bcc7ad5e32f6ab33773b66fa6a35c3
MISC ChangeLog 7118 SHA256 c36923995d9a3b3e04ac807939432e6b0c44b1bfbfec970ca970add4081e61ef SHA512 da51a1276e91e99569b8ad9632c93a60335e61d212f7ed73a12af27730dd15bbe5c2a60f7171d49e9da70f91bdbee74e061e06fc929a44b4acd4347a61389ecf WHIRLPOOL 743745c8e589777a52f893980529d9cd377339782b0d5effee112e3840b52e612e4143b16eb83c793794c3888e01a8b7c11cb66c3014d2db20449285db2c0c07
MISC metadata.xml 517 SHA256 c2248b7afbad927ad1278839f066700d7feb2d0f92d5e39066225a3f391a7127 SHA512 8f3de06520fa4f8f1ff273897be36c870b128c561dc776ef27f34fb4eb15172f0d77b7e004b5d9861f23250e1b23b08b36bc2286fee48875c3ec3e1e0cf79bb2 WHIRLPOOL e5a1c3c4a463146d8d4437ba5b34481ffb4b729f4df52247d6682ed5c02475487be782dbaba4677cc4eac51a734e525f85e0ee1d8b4488a9bc58110b441344f3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
iQIcBAEBCgAGBQJRqwOdAAoJELp701BxlEWfcY0P/0N9DvMaTzqBAIUDfTPeUhIu
pqH+DUvtOtNPq+qT1H7ZCZd93Rt8bLqhjdNAJhyMJ/JMCCjQ5dYA+nQhpf1aQ/qr
xWtP8k3sngcCLNVQXM5pW9oVFEs34nxn4PsnuJ8gEvCsWYWDyKo7y4FmwwpJHHPs
I7UG3DWMTrLc+O6TaSRsNEd5k/SW/4DterpMO6yt+fQup3fryIgVeXeRn6PTGMz8
16sTDpJp7Q4l/i1ioSLuiIDhgfX7wHM7a7S35L2Y0tFAtRnejzW0n3aYi+lAsMkn
N6wjWx19gTaY85Um8GA7KVZ4RMa4OIo/P+U0Unsf3lBk5bJpi4bTxx83jzZWoTA3
3Uh8s53MH8yogi6z/XYTUY+mlEfQEKGuZq3QhDh2Jf7TfdWUIcK3yfxxooFft0uC
XcmUnYNtY2QoMreZirXfJ82+nPC572SPHAMeGgsKjXC2mhOeWdDvmvukLqwEpP5A
+jM5yt+Q5Iarphq0tWYU/DcKZy9Q33AR3fJQ7NfL8oTdhXBgq2c8WO2J2650HZCN
q+k0Tae5Gt1A1zfPDn9+YF/EJ0x8L7dKWnsksOtZ7gUdgWe+5bnh3xarWp718PqU
tZu5JknSJc0Rc78i4/vas6FG5YaLAt8489v2p7FQutrr6oyF0aMXAI++WGVM+s9R
p4XmJ2of6ZtBOgpjvotU
=sUt5
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,44 @@
--- Makefile 2009-04-04 00:33:49.000000000 +0200
+++ Makefile.new 2009-04-15 21:12:02.886390550 +0200
@@ -1,34 +1,26 @@
# Makefile,v 1.9 2009-04-03 22:33:49 lacos Exp
.POSIX:
-CC=gcc
-CFLAGS=$$($(SHELL) lfs.sh CFLAGS) -D _XOPEN_SOURCE=500 -pipe -ansi -pedantic \
- -O2
-
-
-
-
-LDFLAGS=-s $$($(SHELL) lfs.sh LDFLAGS)
-LIBS=-l pthread -l bz2 $$($(SHELL) lfs.sh LIBS)
+LIBS=-lpthread -lbz2
lbzip2: main.o lbzip2.o lbunzip2.o lbunzip2_single.o lacos_rbtree.o
- $(CC) -o lbzip2 $(LDFLAGS) main.o lbzip2.o lbunzip2.o \
+ $(CC) $(CPPFLAGS) $(LDFLAGS) -o lbzip2 main.o lbzip2.o lbunzip2.o \
lbunzip2_single.o lacos_rbtree.o $(LIBS)
main.o: main.c main.h lbunzip2_single.h lbunzip2.h lbzip2.h
- $(CC) $(CFLAGS) -c main.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) -c main.c
lbzip2.o: lbzip2.c main.h lbzip2.h lacos_rbtree.h
- $(CC) $(CFLAGS) -c lbzip2.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) -c lbzip2.c
lbunzip2.o: lbunzip2.c main.h lbunzip2.h lacos_rbtree.h
- $(CC) $(CFLAGS) -c lbunzip2.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) -c lbunzip2.c
lbunzip2_single.o: lbunzip2_single.c main.h lbunzip2_single.h
- $(CC) $(CFLAGS) -c lbunzip2_single.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) -c lbunzip2_single.c
lacos_rbtree.o: lacos_rbtree.c lacos_rbtree.h
- $(CC) $(CFLAGS) -c lacos_rbtree.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) -c lacos_rbtree.c
clean:
rm -f lbzip2 main.o lbzip2.o lbunzip2.o lbunzip2_single.o \

View File

@ -0,0 +1,11 @@
--- main.c.orig 2010-03-03 02:12:45.000000000 +0100
+++ main.c 2010-03-15 10:20:19.562892780 +0100
@@ -1252,7 +1252,7 @@
return -1;
}
- if (!S_ISREG(sbuf->st_mode)) {
+ if (!decompress && !S_ISREG(sbuf->st_mode)) {
log_warning("%s: skipping \"%s\": not a regular file\n", pname,
operand->val);
return -1;

View File

@ -0,0 +1,19 @@
Only in lbzip2: .lfs.sh.swp
diff -u lbzip2.orig//test.sh lbzip2/test.sh
--- lbzip2.orig//test.sh 2009-11-26 22:38:44.000000000 -0500
+++ lbzip2/test.sh 2011-08-14 19:28:31.746454047 -0400
@@ -99,12 +99,8 @@
}
EOT
- T_CFLAGS="$(set CFLAGS; set +e; . "$OLDPWD"/lfs.sh)"
- T_LDFLAGS="$(set LDFLAGS; set +e; . "$OLDPWD"/lfs.sh)"
- T_LIBS="$(set LIBS; set +e; . "$OLDPWD"/lfs.sh)"
-
- $C_CC1 $T_CFLAGS -D _XOPEN_SOURCE=500 $C_CC2 -o scratch/nullfmt -s \
- $T_LDFLAGS scratch/nullfmt.c $T_LIBS
+ $C_CC1 $CFLAGS $C_CC2 -o scratch/nullfmt -s \
+ $LDFLAGS scratch/nullfmt.c $LIBS
C_NULLFMT="$(scratch/nullfmt)"
fi
readonly C_NULLFMT

View File

@ -0,0 +1,13 @@
diff --git a/src/lbunzip2.c b/src/lbunzip2.c
index 113be47..5d8a456 100644
--- a/src/lbunzip2.c
+++ b/src/lbunzip2.c
@@ -604,7 +604,7 @@ work_decompr(struct w2w_blk *w2w_blk, struct w2m_q *w2m_q,
w2m_blk->id.decompr_blk_id = decompr_blk_id++;
w2m_blk->id.last_decompr = (YB_OK == ybret);
w2m_blk->produced = sizeof w2m_blk->decompr - oleft;
- w2m_blk->bs100k = w2w_blk->bs100k;
+ w2m_blk->bs100k = (YB_OK == ybret) ? w2w_blk->bs100k : 0u;
w2m_blk->crc = w2w_blk->crc;
w2m_blk->crc1 = crc;
w2m_blk->bs100k1 = bs100k;

View File

@ -0,0 +1,107 @@
From 57eeee36927f8a40ece1ca06c674e0bd56d0f21f Mon Sep 17 00:00:00 2001
Message-Id: <57eeee36927f8a40ece1ca06c674e0bd56d0f21f.1358019732.git.jlec@gentoo.org>
From: Mikolaj Izdebski <zurgunt@gmail.com>
Date: Sat, 20 Oct 2012 18:37:17 +0200
Subject: [PATCH] Fix assertion failure, closes #8
src/encode.c (generate_initial_trees): Rewrite from scratch.
---
src/encode.c | 61 +++++++++++++++++++++++++++++++++++++++++++++++-------------
1 file changed, 48 insertions(+), 13 deletions(-)
diff --git a/src/encode.c b/src/encode.c
index 09cfacc..00a78dc 100644
--- a/src/encode.c
+++ b/src/encode.c
@@ -763,40 +763,75 @@ assign_codes(uint32_t C[], uint32_t L[], uint8_t B[], uint32_t n)
/* Create initial mapping of symbols to trees.
- The goal is to divide all as symbols [0,as) into nt equivalence classes
+ The goal is to divide all as symbols [0,as) into nt equivalence classes (EC)
[0,nt) such that standard deviation of symbol frequencies in classes is
minimal. We use a kind of a heuristic to achieve that. There might exist a
better way to achieve that, but this one seems to be good (and fast) enough.
If the symbol v belongs to the equivalence class t then set s->length[t][v]
to zero. Otherwise set it to 1.
-
- TODO: This piece of code really needs some R&D...
*/
static void
generate_initial_trees(struct encoder_state *s, unsigned nm, unsigned nt)
{
- unsigned a, b, c, t;
-
- /* Equivalence classes are empty. */
+ unsigned a, b; /* range [a,b) of symbols forming current EC */
+ unsigned freq; /* symbol frequency */
+ unsigned cum; /* cumulative frequency */
+ unsigned as; /* effective alphabet size (alphabet size minus number
+ of symbols with frequency equal to zero) */
+ unsigned t; /* current tree */
+
+ /* Equivalence classes are initially empty. */
memset(s->length, 1, sizeof(s->length));
+ /* Determine effective alphabet size. */
+ as = 0;
+ for (a = 0, cum = 0; cum < nm; a++) {
+ freq = s->lookup[0][a];
+ cum += freq;
+ as += min(freq, 1);
+ }
+ assert(cum == nm);
+
+ /* Bound number of EC by number of symbols. Each EC is non-empty, so number
+ of symbol EC must be <= number of symbols. */
+ nt = min(nt, as);
+
/* For each equivalence class: */
- for (a = 0, t = 0; t < nt; t++) {
+ a = 0;
+ for (t = 0; nt > 0; t++, nt--) {
+ assert(nm > 0);
+ assert(as >= nt);
+
/* Find a range of symbols which total count is roughly proportional to one
nt-th of all values. */
- for (c = 0, b = a; c * (nt-t) < nm; b++)
- c += s->lookup[0][b];
- assert(a < b);
- if (a < b-1 && (2*c - s->lookup[0][b-1]) * (nt-t) > 2*nm) {
- c -= s->lookup[0][--b];
+ freq = s->lookup[0][a];
+ cum = freq;
+ as -= min(freq, 1);
+ b = a+1;
+ while (as > nt-1 && cum * nt < nm) {
+ freq = s->lookup[0][b];
+ cum += freq;
+ as -= min(freq, 1);
+ b++;
}
- nm -= c;
+ if (cum > freq && (2*cum - freq) * nt > 2*nm) {
+ cum -= freq;
+ as += min(freq, 1);
+ b--;
+ }
+ assert(a < b);
+ assert(cum > 0);
+ assert(cum <= nm);
+ assert(as >= nt-1);
+ Trace(("Tree %u: EC=[%3u,%3u), |EC|=%3u, cum=%6u", t, a, b, b-a, cum));
/* Now [a,b) is our range -- assign it to equivalence class t. */
bzero(&s->length[t][a], b - a);
a = b;
+ nm -= cum;
}
+ assert(as == 0);
assert(nm == 0);
}
--
1.8.1

View File

@ -0,0 +1,16 @@
src/main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/main.c b/src/main.c
index f030fd5..5f8290e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -702,7 +702,7 @@ input_init(const struct arg *operand, struct stat *sbuf)
return -1;
}
- if (!S_ISREG(sbuf->st_mode)) {
+ if (!decompress && !S_ISREG(sbuf->st_mode)) {
warn("skipping \"%s\": not a regular file", operand->val);
return -1;
}

View File

@ -0,0 +1,38 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/lbzip2/lbzip2-2.2-r1.ebuild,v 1.12 2013/06/02 08:37:27 ago Exp $
EAPI=4
inherit autotools-utils
DESCRIPTION="Parallel bzip2 utility"
HOMEPAGE="https://github.com/kjn/lbzip2/"
SRC_URI="mirror://github/kjn/${PN}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
IUSE="debug symlink"
PATCHES=(
"${FILESDIR}"/${P}-s_isreg.patch
"${FILESDIR}"/${P}-assertion.patch
)
RDEPEND="symlink? ( !app-arch/pbzip2[symlink] )"
DEPEND=""
src_configure() {
local myeconfargs=(
--disable-silent-rules
$(use_enable debug tracing)
)
autotools-utils_src_configure
}
src_install() {
autotools-utils_src_install
use symlink && dosym ${PN} /usr/bin/bzip2
}

View File

@ -0,0 +1,35 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/lbzip2/lbzip2-2.2.ebuild,v 1.9 2012/10/07 11:55:08 jlec Exp $
EAPI=4
inherit autotools-utils
DESCRIPTION="Parallel bzip2 utility"
HOMEPAGE="https://github.com/kjn/lbzip2/"
SRC_URI="mirror://github/kjn/${PN}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
IUSE="debug symlink"
PATCHES=( "${FILESDIR}"/${P}-s_isreg.patch )
RDEPEND="symlink? ( !app-arch/pbzip2[symlink] )"
DEPEND=""
src_configure() {
local myeconfargs=(
--disable-silent-rules
$(use_enable debug tracing)
)
autotools-utils_src_configure
}
src_install() {
autotools-utils_src_install
use symlink && dosym ${PN} /usr/bin/bzip2
}

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>jlec@gentoo.org</email>
</maintainer>
<maintainer>
<email>mattst88@gentoo.org</email>
<name>Matt Turner</name>
</maintainer>
<longdescription lang="en">
A multi-threaded bzip2/bunzip2 utility that employs multiple threads and an
input-bound splitter even when decompressing .bz2 files created by standard
bzip2
</longdescription>
</pkgmetadata>

View File

@ -0,0 +1,342 @@
# ChangeLog for app-cdr/cdrkit
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-cdr/cdrkit/ChangeLog,v 1.98 2013/02/22 18:38:34 zmedico Exp $
22 Feb 2013; Zac Medico <zmedico@gentoo.org> cdrkit-1.1.11-r1.ebuild:
Add ~arm-linux and ~x86-linux keywords.
13 Oct 2012; Anthony G. Basile <blueness@gentoo.org> cdrkit-1.1.11-r1.ebuild:
Keyword ~mips, needed for catalyst
*cdrkit-1.1.11-r1 (02 Aug 2012)
02 Aug 2012; Samuli Suominen <ssuominen@gentoo.org> +cdrkit-1.1.11-r1.ebuild,
+files/cdrkit-1.1.11-cmakewarn.patch,
+files/cdrkit-1.1.11-paranoiacdda.patch:
Use system media-sound/cdparanoia instead of internal copy wrt #206939 by
Diego Elio Pettenò
12 Mar 2012; Samuli Suominen <ssuominen@gentoo.org> cdrkit-1.1.11.ebuild:
Missing dependencies of app-arch/bzip2, sys-apps/file, and sys-libs/zlib for
genisoimage wrt #407905 by "kensington"
16 Apr 2011; Raúl Porcel <armin76@gentoo.org> cdrkit-1.1.11.ebuild:
ia64/s390 stable wrt #356509
24 Mar 2011; Kacper Kowalik <xarthisius@gentoo.org> cdrkit-1.1.11.ebuild:
ppc64 stable wrt #356509
20 Mar 2011; Thomas Kahle <tomka@gentoo.org> cdrkit-1.1.11.ebuild:
x86 stable per bug 356509
12 Mar 2011; Tobias Klausmann <klausman@gentoo.org> cdrkit-1.1.11.ebuild:
Stable on alpha, bug #356509
05 Mar 2011; Michael Weber <xmw@gentoo.org> cdrkit-1.1.11.ebuild:
ppc/sparc stable (bug 356509)
05 Mar 2011; Jeroen Roovers <jer@gentoo.org> cdrkit-1.1.11.ebuild:
Stable for HPPA (bug #356509).
27 Feb 2011; Markos Chandras <hwoarang@gentoo.org> cdrkit-1.1.11.ebuild:
Stable on amd64 wrt bug #356509
28 Dec 2010; Fabio Erculiani <lxnay@gentoo.org> cdrkit-1.1.10.ebuild,
cdrkit-1.1.11.ebuild:
app-cdr/cdrtools conflict must be also in RDEPEND
*cdrkit-1.1.11 (18 Dec 2010)
18 Dec 2010; Samuli Suominen <ssuominen@gentoo.org> +cdrkit-1.1.11.ebuild:
Version bump.
07 Feb 2010; Raúl Porcel <armin76@gentoo.org> cdrkit-1.1.10.ebuild:
alpha/ia64/s390/sparc stable wrt #299861
20 Jan 2010; Markus Meier <maekke@gentoo.org> cdrkit-1.1.10.ebuild:
x86 stable, bug #299861
14 Jan 2010; Jeroen Roovers <jer@gentoo.org> cdrkit-1.1.10.ebuild:
Stable for HPPA (bug #299861).
07 Jan 2010; Brent Baude <ranger@gentoo.org> cdrkit-1.1.10.ebuild:
Marking cdrkit-1.1.10 ppc for bug 299861
07 Jan 2010; Steve Dibb <beandog@gentoo.org> cdrkit-1.1.10.ebuild:
amd64 stable, bug 299861
06 Jan 2010; Brent Baude <ranger@gentoo.org> cdrkit-1.1.10.ebuild:
Marking cdrkit-1.1.10 ppc64 for bug 299861
*cdrkit-1.1.10 (07 Dec 2009)
07 Dec 2009; Samuli Suominen <ssuominen@gentoo.org> +cdrkit-1.1.10.ebuild:
Version bump.
15 Oct 2009; Raúl Porcel <armin76@gentoo.org> cdrkit-1.1.9-r1.ebuild:
alpha stable
09 Aug 2009; nixnut <nixnut@gentoo.org> cdrkit-1.1.9-r1.ebuild:
ppc stable #274260
18 Jul 2009; Raúl Porcel <armin76@gentoo.org> cdrkit-1.1.9-r1.ebuild:
ia64/s390/sparc stable wrt #274260
05 Jul 2009; Markus Meier <maekke@gentoo.org> cdrkit-1.1.9-r1.ebuild:
amd64 stable, bug #274260
03 Jul 2009; Brent Baude <ranger@gentoo.org> cdrkit-1.1.9-r1.ebuild:
Marking cdrkit-1.1.9-r1 ppc64 for bug 274260
17 Jun 2009; Christian Faulhammer <fauli@gentoo.org>
cdrkit-1.1.9-r1.ebuild:
stable x86, bug 274260
16 Jun 2009; Jeroen Roovers <jer@gentoo.org> cdrkit-1.1.9-r1.ebuild:
Stable for HPPA (bug #274260).
28 May 2009; Samuli Suominen <ssuominen@gentoo.org> cdrkit-1.1.9.ebuild,
cdrkit-1.1.9-r1.ebuild:
Remove PROVIDE for old style virtual.
24 May 2009; Peter Alfredsen <loki_val@gentoo.org> cdrkit-1.1.9-r1.ebuild,
+files/cdrkit-1.1.9-glibc-2.10.patch:
Fix build with glibc-2.10, bug 270372. Thanks to Curtis Magyar
<curtm4n@gmail.com> for getting us the patch from Paldo linux and to
Jonathan Adamczewski <jadamcze@utas.edu.au> for reporting.
*cdrkit-1.1.9-r1 (07 May 2009)
07 May 2009; Samuli Suominen <ssuominen@gentoo.org> -cdrkit-1.1.6.ebuild,
-cdrkit-1.1.8.ebuild, +cdrkit-1.1.9-r1.ebuild:
Convert to cmake-utils wrt #267776, thanks to Tomáš Chvátal.
15 Feb 2009; Brent Baude <ranger@gentoo.org> cdrkit-1.1.9.ebuild:
stable ppc, bug 256106
14 Feb 2009; Raúl Porcel <armin76@gentoo.org> cdrkit-1.1.9.ebuild:
ia64/s390/sparc stable wrt #256106
06 Feb 2009; Jeroen Roovers <jer@gentoo.org> cdrkit-1.1.9.ebuild:
Stable for HPPA (bug #256106).
26 Jan 2009; Brent Baude <ranger@gentoo.org> cdrkit-1.1.9.ebuild:
stable ppc64, bug 256106
25 Jan 2009; Markus Meier <maekke@gentoo.org> cdrkit-1.1.9.ebuild:
amd64/x86 stable, bug #256106
*cdrkit-1.1.9 (02 Nov 2008)
02 Nov 2008; Peter Alfredsen <loki_val@gentoo.org> +cdrkit-1.1.9.ebuild:
Bump.
24 Jul 2008; Doug Goldstein <cardoe@gentoo.org> metadata.xml:
add GLEP 56 USE flag desc from use.local.desc
21 Jul 2008; Jeroen Roovers <jer@gentoo.org> cdrkit-1.1.8.ebuild:
Stable for HPPA (bug #230956).
13 Jul 2008; Joseph Jezak <josejx@gentoo.org> cdrkit-1.1.8.ebuild:
Marked ppc stable for bug #230956.
10 Jul 2008; Brent Baude <ranger@gentoo.org> cdrkit-1.1.8.ebuild:
stable ppc64, bug 230956
10 Jul 2008; Raúl Porcel <armin76@gentoo.org> cdrkit-1.1.8.ebuild:
ia64/sparc/x86 stable wrt #230956
07 Jul 2008; Santiago M. Mola <coldwind@gentoo.org> cdrkit-1.1.8.ebuild:
amd64 stable wrt bug #230956
*cdrkit-1.1.8 (04 Jun 2008)
04 Jun 2008; Steve Dibb <beandog@gentoo.org> +cdrkit-1.1.8.ebuild:
Version bump, bug 224337
*cdrkit-1.1.7.1 (18 Apr 2008)
18 Apr 2008; Steve Dibb <beandog@gentoo.org> +cdrkit-1.1.7.1.ebuild:
Version bump, bug 215409
07 Nov 2007; Raúl Porcel <armin76@gentoo.org> cdrkit-1.1.6.ebuild:
Add ~alpha, thanks to Tobias Klausmann for testing
04 Nov 2007; Lars Weiler <pylon@gentoo.org>
-files/cdrkit-readom-clone.patch, -cdrkit-1.1.2.ebuild,
-cdrkit-1.1.4.ebuild, -cdrkit-1.1.5.1.ebuild:
Clean out old versions.
24 Aug 2007; Roy Marples <uberlord@gentoo.org> cdrkit-1.1.6.ebuild:
Fix broken depend
24 Aug 2007; <metalgod@gentoo.org> cdrkit-1.1.6.ebuild:
Add libcap dependency. Closes Bug #189482.
10 Jul 2007; Jeroen Roovers <jer@gentoo.org> cdrkit-1.1.6.ebuild:
Stable for HPPA (bug #184425).
08 Jul 2007; Christoph Mende <angelos@gentoo.org> cdrkit-1.1.6.ebuild:
Stable on amd64 wrt bug #184425
07 Jul 2007; Raúl Porcel <armin76@gentoo.org> cdrkit-1.1.6.ebuild:
ia64 stable wrt #184425
07 Jul 2007; Christian Faulhammer <opfer@gentoo.org> cdrkit-1.1.6.ebuild:
stable x86, bug 184425
06 Jul 2007; Markus Rothe <corsair@gentoo.org> cdrkit-1.1.6.ebuild:
Stable on ppc64; bug #184425
06 Jul 2007; Lars Weiler <pylon@gentoo.org> cdrkit-1.1.6.ebuild:
Stable on ppc; bug #184425.
06 Jul 2007; Gustavo Zacarias <gustavoz@gentoo.org> cdrkit-1.1.6.ebuild:
Stable on sparc wrt #184425
*cdrkit-1.1.6 (07 May 2007)
07 May 2007; Lars Weiler <pylon@gentoo.org> +cdrkit-1.1.6.ebuild:
Version bump.
*cdrkit-1.1.5.1 (21 Apr 2007)
21 Apr 2007; Lars Weiler <pylon@gentoo.org> -cdrkit-1.0.ebuild,
+cdrkit-1.1.5.1.ebuild:
Version bump.
16 Apr 2007; Raúl Porcel <armin76@gentoo.org> cdrkit-1.1.2.ebuild:
ia64 stable wrt bug 170482
11 Apr 2007; Jeroen Roovers <jer@gentoo.org> cdrkit-1.1.4.ebuild:
Marked ~hppa (bug #146631).
11 Apr 2007; Jeroen Roovers <jer@gentoo.org> cdrkit-1.1.2.ebuild:
Stable for HPPA (bug #146631).
10 Apr 2007; Lars Weiler <pylon@gentoo.org>
+files/cdrkit-readom-clone.patch, cdrkit-1.1.4.ebuild:
Added patch for uclibc. The patch is already included upstream and fixed in
the upcoming cdrkit-1.1.5.
*cdrkit-1.1.4 (01 Apr 2007)
01 Apr 2007; Lars Weiler <pylon@gentoo.org> +cdrkit-1.1.4.ebuild:
Version bump. Fixed cmake-call for building cross-targets; bug #172225.
17 Mar 2007; Steve Dibb <beandog@gentoo.org> cdrkit-1.1.2.ebuild:
amd64 stable, bug 170482
16 Mar 2007; Lars Weiler <pylon@gentoo.org> cdrkit-1.0.ebuild,
cdrkit-1.1.2.ebuild:
Removed the usage of in the ebuild; see gentoo-dev-mailing-list.
16 Mar 2007; Lars Weiler <pylon@gentoo.org> -cdrkit-1.0_pre5.ebuild,
-cdrkit-1.1.0.ebuild, -cdrkit-1.1.1.ebuild:
Remove old or unneeded versions.
15 Mar 2007; Markus Rothe <corsair@gentoo.org> cdrkit-1.1.2.ebuild:
Stable on ppc64; bug #170482
12 Mar 2007; Gustavo Zacarias <gustavoz@gentoo.org> cdrkit-1.1.2.ebuild:
Stable on sparc wrt #170482
12 Mar 2007; Christian Faulhammer <opfer@gentoo.org> cdrkit-1.1.2.ebuild:
stable x86, bug 170482
11 Mar 2007; Lars Weiler <pylon@gentoo.org> cdrkit-1.1.2.ebuild:
Stable on ppc; bug #170482.
12 Feb 2007; Bryan Østergaard <kloeri@gentoo.org> cdrkit-1.0.ebuild:
Stable on IA64, bug 158780.
*cdrkit-1.1.2 (18 Jan 2007)
18 Jan 2007; Lars Weiler <pylon@gentoo.org> +cdrkit-1.1.2.ebuild:
Version bump.
14 Jan 2007; Olivier Crête <tester@gentoo.org> cdrkit-1.0.ebuild:
Stable on amd64 wrt bug #158780
*cdrkit-1.1.1 (04 Jan 2007)
04 Jan 2007; Lars Weiler <pylon@gentoo.org> +cdrkit-1.1.1.ebuild:
Version bump.
30 Dec 2006; Christian Faulhammer <opfer@gentoo.org> cdrkit-1.0.ebuild:
stable on x86, bug #158780
22 Dec 2006; Gustavo Zacarias <gustavoz@gentoo.org> cdrkit-1.0.ebuild:
Stable on sparc wrt #158780
22 Dec 2006; Markus Rothe <corsair@gentoo.org> cdrkit-1.0.ebuild:
Stable on ppc64; bug #158780
22 Dec 2006; Lars Weiler <pylon@gentoo.org> cdrkit-1.0.ebuild:
Stable on ppc; bug #158780.
03 Dec 2006; Diego Pettenò <flameeyes@gentoo.org> cdrkit-1.1.0.ebuild:
Add ~x86-fbsd keyword.
*cdrkit-1.1.0 (03 Dec 2006)
03 Dec 2006; Lars Weiler <pylon@gentoo.org> +cdrkit-1.1.0.ebuild:
Version bump. Renamed applications are provided with symlinks. Added support
for non-linux systems (FreeBSD, Darwin). netscsid (former rscsi) might work,
but testing is not possible.
*cdrkit-1.0 (23 Nov 2006)
23 Nov 2006; Lars Weiler <pylon@gentoo.org> -cdrkit-1.0_pre4.ebuild,
-cdrkit-1.0_pre4-r1.ebuild, +cdrkit-1.0.ebuild:
Version bump to final 1.0. Changed DESCRIPTION, HOMEPAGE, and SRC_URI.
Removed old versions.
13 Nov 2006; Gustavo Zacarias <gustavoz@gentoo.org>
cdrkit-1.0_pre4.ebuild, cdrkit-1.0_pre4-r1.ebuild:
Rolling back to ~sparc wrt #146631
*cdrkit-1.0_pre5 (11 Nov 2006)
11 Nov 2006; Lars Weiler <pylon@gentoo.org> -cdrkit-1.0_pre3.ebuild,
+cdrkit-1.0_pre5.ebuild:
Version bump. Also fixed the installation of docs.
*cdrkit-1.0_pre4-r1 (31 Oct 2006)
31 Oct 2006; Lars Weiler <pylon@gentoo.org> +cdrkit-1.0_pre4-r1.ebuild:
scsilib-headers were not installed in the previous versions. And as
everybody wants them, I increased the revision.
26 Sep 2006; Jason Wever <weeve@gentoo.org> cdrkit-1.0_pre4.ebuild:
Added ~sparc keyword wrt bug #146631.
24 Sep 2006; Lars Weiler <pylon@gentoo.org> cdrkit-1.0_pre4.ebuild:
Adding a sample wodim config into /etc/default/wodim.
12 Sep 2006; Stephanie Lockwood-Childs <wormo@gentoo.org>
cdrkit-1.0_pre4.ebuild:
mark ~ppc (Bug #146631)
07 Sep 2006; Tim Yamin <plasmaroo@gentoo.org> cdrkit-1.0_pre3.ebuild,
cdrkit-1.0_pre4.ebuild:
Keyword ~ia64. Also add sys-libs/libcap to DEPEND. Bug #146631.
07 Sep 2006; Markus Rothe <corsair@gentoo.org> cdrkit-1.0_pre3.ebuild,
cdrkit-1.0_pre4.ebuild:
Added ~ppc64; bug #146631
*cdrkit-1.0_pre4 (07 Sep 2006)
07 Sep 2006; Luis Medinas <metalgod@gentoo.org> +cdrkit-1.0_pre4.ebuild:
Version Bump. Added a symlink to cdrecord so it can be used by all frontends
and add virtual to cdrtools.
05 Sep 2006; Luis Medinas <metalgod@gentoo.org> ChangeLog:
add a blocker for app-cdr/cdrtools.
*cdrkit-1.0_pre3 (05 Sep 2006)
05 Sep 2006; Luis Medinas <metalgod@gentoo.org> +metadata.xml,
+cdrkit-1.0_pre3.ebuild:
Initial import of cdrkit the fork of the latest complete free cdrtools sources.

View File

@ -0,0 +1,17 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
AUX cdrkit-1.1.11-cmakewarn.patch 346 SHA256 34f010470f28607b7c2bdbdf4c5539bfa59609ff7821cf663cffb49a85165828 SHA512 cf50ecaf4bfb834e407207327d7adcf7bf99426f881e7e590d46adb8e983639ecb67822346ce49f2bef5ac71998c772384e03078b2ef138183929c4e8d88feaa WHIRLPOOL 4aa20b075db2e49891f4c09bffaa06289f7ff396b69cf8163cec18c53ae139d126dcbf00e751dba6ce17fa345cfe6e2e9fcea1202a036949b05690ff5c9a5155
AUX cdrkit-1.1.11-paranoiacdda.patch 16499 SHA256 57a86644f3276dd361acd109ccaa3be1e8878999691d3c91ac55137f3e0a82fe SHA512 5d70ff553dbc103a3bb2203950366f7be554fa2e92ec4f02f68e1cb70d19e453e42855612e1ffa387cf7ac2edcaedcbea40df44d8eced63be1580837ffa224a0 WHIRLPOOL f3557b0ffa17752c649411db7257110429ef24316b3f0931f8724f735008aec80124c6539dd529d07dfb6e437aaa1d531ac20c699cd544ee804ae4a083aa61f4
DIST cdrkit_1.1.11.orig.tar.gz 1445133 SHA256 d1c030756ecc182defee9fe885638c1785d35a2c2a297b4604c0e0dcc78e47da SHA512 e5afcd2cb68d39aeff680a0d5b0a7877f94cf6de111b3cb7388261c665fbd3209ce98a20a01911875af7d6b832a156801b1fa46a4481f7c8ba60b22eac0a5b05 WHIRLPOOL e836af6a8786e38965e7238fddef3b4746234a2d96afaa18b5a23baa36c13506f78c1ec50d97b4bc7374daf5db78e9b7775184ec16f8513c10dc3b9b18a2d395
EBUILD cdrkit-1.1.11-r1.ebuild 1669 SHA256 4c7037a14efad4e4e101d5c63c9f9b530dc02a2f964c3ca179daa4c1e4f4ab03 SHA512 179f10bcd25f2c67a6249798fd6624f893ca934f799cda35b9f359d5723818e0b2c9dbf38324de74fda7b30c30708102f410a094518658c42c65720ab3d8090e WHIRLPOOL bc6b7cd229df0084add96f5b28e7e44bd9c7719e9038e7196f8c67ed1f0952caf7e49d2d8e5e60fbaad59654092d3ce69d5ba786c2f5db32950e5fbf605330f3
EBUILD cdrkit-1.1.11.ebuild 1574 SHA256 4084c45daf7af9409905a22aee480d46d736ff2f2ba4cf5169d5bacd48049c77 SHA512 a6e4019ea11d4558eb77e871d0bb88a29c35fb47296409465a4629531188d2f14c6965b4329dd74c0cedb746cc3365f4f94696878265f5c9d09dae623e09681e WHIRLPOOL cc1b70533113fa4bf26fd04af89252a6e5affc1536299c4e0b7726811acc5be410000914d883d8f031ff1074c0adb3c9f52c512049bacbdc73dd0d2284ff8975
MISC ChangeLog 11763 SHA256 4a17e6a6b3e9e0de25fda3b951778763c7cf8f89a3c81d83b3662ca01dbca8c0 SHA512 6bf2c5350599d49d7d717e38735e848ebd28529d1c9baccab0bc4924dbc55d3be994376a9cf51907f27d57df95991d769adf04ca360184b71a2a389c7f3a4a4d WHIRLPOOL 84015346ea01214231754311c211a3e86c9c4e07cf9506448369d7803a9f7b1accca4df008d941766bb0b90b7af1289a2ac43be2ad67ae2a43d72eac7939ee53
MISC metadata.xml 247 SHA256 4d18b2a7e3f3237d29a2ea874c71c66abcda946f15bb7e15fa7cfc1d33731a24 SHA512 e44c538732e2825d46ea1e2d11314f6ae28228c8a69065bb4c25d80892984385b2807658c49c65d47c0fb52d44b5460eff8863fb0fcc9171da8ea1f68fe559e3 WHIRLPOOL 3349274d448313c17151d7131c9838a8bae74af9bb7e590fe65cf1ab0f115d93d0fff46b9f5f79eca5c0640d9cf5aa9c24137a3e89f035904d7e9b86a6eeb59e
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
iEYEAREIAAYFAlEnuywACgkQ/ejvha5XGaNeggCg7iYXdQYnRRt0ekwVSJf+dn/9
AyMAoNpdAFQ69tGCk7P/scI0OQLTfOBx
=9ncv
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,65 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-cdr/cdrkit/cdrkit-1.1.11-r1.ebuild,v 1.3 2013/02/22 18:38:34 zmedico Exp $
EAPI=4
inherit cmake-utils eutils
DESCRIPTION="A set of tools for CD/DVD reading and recording, including cdrecord"
HOMEPAGE="http://cdrkit.org"
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}.orig.tar.gz"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd ~arm-linux ~x86-linux"
IUSE="debug hfs unicode"
RDEPEND="app-arch/bzip2
!app-cdr/cdrtools
media-sound/cdparanoia
sys-apps/file
sys-libs/zlib
unicode? ( virtual/libiconv )
kernel_linux? ( sys-libs/libcap )"
DEPEND="${RDEPEND}
hfs? ( sys-apps/file )"
src_prepare() {
epatch \
"${FILESDIR}"/${P}-paranoiacdda.patch \
"${FILESDIR}"/${P}-cmakewarn.patch
echo '.so wodim.1' > ${T}/cdrecord.1
echo '.so genisoimage.1' > ${T}/mkisofs.1
echo '.so icedax.1' > ${T}/cdda2wav.1
echo '.so readom.1' > ${T}/readcd.1
}
src_install() {
cmake-utils_src_install
dosym wodim /usr/bin/cdrecord
dosym genisoimage /usr/bin/mkisofs
dosym icedax /usr/bin/cdda2wav
dosym readom /usr/bin/readcd
dodoc ABOUT Changelog FAQ FORK TODO doc/{PORTABILITY,WHY}
local x
for x in genisoimage plattforms wodim icedax; do
docinto ${x}
dodoc doc/${x}/*
done
insinto /etc
newins wodim/wodim.dfl wodim.conf
newins netscsid/netscsid.dfl netscsid.conf
insinto /usr/include/scsilib
doins include/*.h
insinto /usr/include/scsilib/usal
doins include/usal/*.h
dosym usal /usr/include/scsilib/scg
doman "${T}"/*.1
}

View File

@ -0,0 +1,60 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-cdr/cdrkit/cdrkit-1.1.11.ebuild,v 1.10 2012/03/12 10:49:08 ssuominen Exp $
EAPI=3
inherit cmake-utils
DESCRIPTION="A set of tools for CD/DVD reading and recording, including cdrecord"
HOMEPAGE="http://cdrkit.org"
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}.orig.tar.gz"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 s390 sparc x86 ~x86-fbsd"
IUSE="debug hfs unicode"
RDEPEND="app-arch/bzip2
!app-cdr/cdrtools
sys-apps/file
sys-libs/zlib
unicode? ( virtual/libiconv )
kernel_linux? ( sys-libs/libcap )"
DEPEND="${RDEPEND}
hfs? ( sys-apps/file )"
src_prepare() {
echo '.so wodim.1' > ${T}/cdrecord.1
echo '.so genisoimage.1' > ${T}/mkisofs.1
echo '.so icedax.1' > ${T}/cdda2wav.1
echo '.so readom.1' > ${T}/readcd.1
}
src_install() {
cmake-utils_src_install
dosym wodim /usr/bin/cdrecord || die
dosym genisoimage /usr/bin/mkisofs || die
dosym icedax /usr/bin/cdda2wav || die
dosym readom /usr/bin/readcd || die
dodoc ABOUT Changelog FAQ FORK TODO doc/{PORTABILITY,WHY}
local x
for x in genisoimage plattforms wodim icedax; do
docinto ${x}
dodoc doc/${x}/*
done
insinto /etc
newins wodim/wodim.dfl wodim.conf || die
newins netscsid/netscsid.dfl netscsid.conf || die
insinto /usr/include/scsilib
doins include/*.h || die
insinto /usr/include/scsilib/usal
doins include/usal/*.h || die
dosym usal /usr/include/scsilib/scg || die
doman "${T}"/*.1
}

View File

@ -0,0 +1,10 @@
http://pkgs.fedoraproject.org/cgit/cdrkit.git/tree/cdrkit-1.1.11-cmakewarn.patch
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -1,3 +1,5 @@
+cmake_minimum_required(VERSION 2.8)
+cmake_policy(SET CMP0015 OLD)
PROJECT (cdrkit C)
SUBDIRS(include genisoimage wodim libedc libhfs_iso icedax libusal librols libunls readom netscsid 3rd-party/dirsplit)

View File

@ -0,0 +1,554 @@
http://bugs.gentoo.org/206939
http://pkgs.fedoraproject.org/cgit/cdrkit.git/tree/cdrkit-1.1.11-paranoiacdda.patch modified because
we install headers to $includedir instead of $includedir/cdda
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -1,3 +1,3 @@
PROJECT (cdrkit C)
-SUBDIRS(include genisoimage wodim libedc libhfs_iso libparanoia icedax libusal librols libunls readom netscsid 3rd-party/dirsplit)
+SUBDIRS(include genisoimage wodim libedc libhfs_iso icedax libusal librols libunls readom netscsid 3rd-party/dirsplit)
--- icedax/CMakeLists.txt
+++ icedax/CMakeLists.txt
@@ -1,8 +1,9 @@
PROJECT (icedax C)
-INCLUDE_DIRECTORIES(../include ../wodim ../libparanoia ${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/include)
+INCLUDE_DIRECTORIES(../include ../wodim ${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/include)
include(../include/AddScgBits.cmake)
include(../include/AddSchilyBits.cmake)
include(../include/AddNetworkBits.cmake)
+INCLUDE (CheckLibraryExists)
FIND_FILE (HAVE_SYS_SOUNDCARD_H sys/soundcard.h)
IF(HAVE_SYS_SOUNDCARD_H)
@@ -18,12 +19,20 @@ IF(HAVE_LIBOSSAUDIO)
LIST(APPEND EXTRA_LIBS "ossaudio")
ENDIF(HAVE_LIBOSSAUDIO)
-LIST(APPEND EXTRA_LIBS paranoia)
+CHECK_INCLUDE_FILES(cdda_interface.h HAVE_CDDA_INTERFACE_H)
+CHECK_LIBRARY_EXISTS (cdda_paranoia paranoia_init "" HAVE_LIBPARANOIA)
+IF(HAVE_CDDA_INTERFACE_H AND HAVE_LIBPARANOIA)
+ LIST(APPEND EXTRA_LIBS cdda_paranoia cdda_interface)
+ELSE(HAVE_CDDA_INTERFACE_H AND HAVE_LIBPARANOIA)
+ MESSAGE(FATAL_ERROR "You need cdparanoia library installed")
+ENDIF(HAVE_CDDA_INTERFACE_H AND HAVE_LIBPARANOIA)
+
+LIST(APPEND EXTRA_LIBS)
IF (WIN32)
LIST(APPEND EXTRA_LIBS winmm)
ENDIF (WIN32)
-LINK_DIRECTORIES(../librols ../libusal ../libparanoia)
+LINK_DIRECTORIES(../librols ../libusal)
ADD_EXECUTABLE (icedax aifc.c aiff.c base64.c icedax.c interface.c ioctl.c raw.c resample.c ringbuff.c scsi_cmds.c semshm.c setuid.c sha_func.c sndconfig.c sun.c toc.c wav.c)
TARGET_LINK_LIBRARIES(icedax wodimstuff ${EXTRA_LIBS})
SET_TARGET_PROPERTIES(icedax PROPERTIES SKIP_BUILD_RPATH TRUE)
--- icedax/global.h
+++ icedax/global.h
@@ -17,7 +17,8 @@
#include "md5.h"
#endif
#ifdef USE_PARANOIA
-#include "cdda_paranoia.h"
+#include <cdda_interface.h>
+#include <cdda_paranoia.h>
#endif
typedef struct index_list
@@ -102,10 +103,10 @@ typedef struct global
struct paranoia_parms_t
{
- Ucbit disable_paranoia:1;
- Ucbit disable_extra_paranoia:1;
- Ucbit disable_scratch_detect:1;
- Ucbit disable_scratch_repair:1;
+ char disable_paranoia:1;
+ char disable_extra_paranoia:1;
+ char disable_scratch_detect:1;
+ char disable_scratch_repair:1;
int retries;
int overlap;
int mindynoverlap;
--- icedax/icedax.c
+++ icedax/icedax.c
@@ -120,6 +120,10 @@
#ifdef USE_LAME
#include "mp3.h" /* mp3 file handling */
#endif
+#ifdef USE_PARANOIA
+#include <cdda_interface.h>
+#include <cdda_paranoia.h>
+#endif
#include "interface.h" /* low level cdrom interfacing */
#include "icedax.h"
#include "resample.h"
@@ -128,9 +132,6 @@
#include "ringbuff.h"
#include "global.h"
#include "exitcodes.h"
-#ifdef USE_PARANOIA
-#include "cdda_paranoia.h"
-#endif
#include "defaults.h"
static void RestrictPlaybackRate(long newrate);
@@ -800,7 +801,7 @@ static void init_globals()
global.useroverlap = -1; /* amount of overlapping sectors user override */
global.need_hostorder = 0; /* processing needs samples in host endianess */
global.in_lendian = -1; /* input endianess from SetupSCSI() */
- global.outputendianess = NONE; /* user specified output endianess */
+ global.outputendianess = NONE_EN; /* user specified output endianess */
global.findminmax = 0; /* flag find extrem amplitudes */
#ifdef HAVE_LIMITS_H
global.maxamp[0] = INT_MIN; /* maximum amplitude */
@@ -2418,7 +2419,7 @@ Rate Divider Rate Divider
if (bulk == -1) bulk = 0;
global.need_big_endian = global.audio_out->need_big_endian;
- if (global.outputendianess != NONE)
+ if (global.outputendianess != NONE_EN)
global.need_big_endian = global.outputendianess == BIG;
if (global.no_file) global.fname_base[0] = '\0';
@@ -2602,7 +2603,7 @@ Rate Divider Rate Divider
fputs( ", soundcard", stderr );
#endif
#if defined USE_PARANOIA
- fputs( ", libparanoia", stderr );
+ fputs( ", libcdda_paranoia", stderr );
#endif
fputs( " support\n", stderr );
}
@@ -2892,8 +2893,28 @@ Rate Divider Rate Divider
#ifdef USE_PARANOIA
if (global.paranoia_selected) {
long paranoia_mode;
+ cdrom_drive *tmpdrive;
+ usal_close(get_scsi_p());
- global.cdp = paranoia_init(get_scsi_p(), global.nsectors);
+ tmpdrive = cdda_identify(global.dev_name, 0, NULL);
+ if (!tmpdrive)
+ {
+ fputs("Can't identify disc\n", stderr);
+ return 1;
+ }
+
+ if(global.nsectors)
+ {
+ tmpdrive->nsectors = global.nsectors;
+ tmpdrive->bigbuff = global.nsectors * CD_FRAMESIZE_RAW;
+ }
+ if (cdda_open(tmpdrive) != 0)
+ {
+ fputs("Can't open disc\n", stderr);
+ cdda_close(tmpdrive);
+ return 1;
+ }
+ global.cdp = paranoia_init(tmpdrive);
if (global.paranoia_parms.overlap >= 0) {
int overlap = global.paranoia_parms.overlap;
@@ -2902,17 +2923,7 @@ Rate Divider Rate Divider
overlap = global.nsectors - 1;
paranoia_overlapset(global.cdp, overlap);
}
- /*
- * Default to a minimum of dynamic overlapping == 0.5 sectors.
- * If we don't do this, we get the default from libparanoia
- * which is approx. 0.1.
- */
- if (global.paranoia_parms.mindynoverlap < 0)
- paranoia_dynoverlapset(global.cdp, CD_FRAMEWORDS/2, -1);
- paranoia_dynoverlapset(global.cdp,
- global.paranoia_parms.mindynoverlap * CD_FRAMEWORDS,
- global.paranoia_parms.maxdynoverlap * CD_FRAMEWORDS);
-
+
paranoia_mode = PARANOIA_MODE_FULL ^ PARANOIA_MODE_NEVERSKIP;
if (global.paranoia_parms.disable_paranoia) {
--- icedax/icedax.h
+++ icedax/icedax.h
@@ -41,7 +41,7 @@
/* Endianess */
#define GUESS (-2)
-#define NONE (-1)
+#define NONE_EN (-1)
#define LITTLE 0
#define BIG 1
--- icedax/interface.c
+++ icedax/interface.c
@@ -116,7 +116,7 @@ int (*Play_at)(SCSI *usalp, unsigned in
int (*StopPlay)(SCSI *usalp);
void (*trash_cache)(UINT4 *p, unsigned lSector, unsigned SectorBurstVal);
-#if defined USE_PARANOIA
+#if 0 //defined USE_PARANOIA
long cdda_read(void *d, void *buffer, long beginsector, long sectors);
long cdda_read(void *d, void *buffer, long beginsector, long sectors)
--- icedax/toc.c
+++ icedax/toc.c
@@ -379,8 +379,7 @@ static void emit_cddb_form(char *fname_b
static void emit_cdindex_form(char *fname_baseval);
#endif
-
-typedef struct TOC { /* structure of table of contents (cdrom) */
+typedef struct TOC_t { /* structure of table of contents (cdrom) */
unsigned char reserved1;
unsigned char bFlags;
unsigned char bTrack;
@@ -391,8 +390,7 @@ typedef struct TOC { /* structure of tab
int frms;
unsigned char ISRC[16];
int SCMS;
-} TOC;
-
+} TOC_t;
/* Flags contains two fields:
bits 7-4 (ADR)
@@ -432,7 +430,7 @@ struct iterator {
int index;
int startindex;
void (*reset)(struct iterator *this);
- struct TOC *(*getNextTrack)(struct iterator *this);
+ struct TOC_t *(*getNextTrack)(struct iterator *this);
int (*hasNextTrack)(struct iterator *this);
};
@@ -518,7 +516,7 @@ unsigned FixupTOC(unsigned no_tracks)
InitIterator(&i, 1);
while (i.hasNextTrack(&i)) {
- struct TOC *p = i.getNextTrack(&i);
+ struct TOC_t *p = i.getNextTrack(&i);
if (IS__AUDIO(p)) count_audio_tracks++;
}
@@ -733,7 +731,7 @@ static void emit_cddb_form(char *fname_b
fprintf( cddb_form, "# Track frame offsets:\n#\n");
while (i.hasNextTrack(&i)) {
- struct TOC *p = i.getNextTrack(&i);
+ struct TOC_t *p = i.getNextTrack(&i);
if (GETTRACK(p) == CDROM_LEADOUT) break;
fprintf( cddb_form,
"# %lu\n", 150 + Get_AudioStartSector(GETTRACK(p)));
@@ -765,7 +763,7 @@ static void emit_cddb_form(char *fname_b
i.reset(&i);
while (i.hasNextTrack(&i)) {
- struct TOC *p = i.getNextTrack(&i);
+ struct TOC_t *p = i.getNextTrack(&i);
int ii;
ii = GETTRACK(p);
@@ -788,7 +786,7 @@ static void emit_cddb_form(char *fname_b
i.reset(&i);
while (i.hasNextTrack(&i)) {
- struct TOC *p = i.getNextTrack(&i);
+ struct TOC_t *p = i.getNextTrack(&i);
int ii;
ii = GETTRACK(p);
@@ -1495,7 +1493,7 @@ static int IsSingleArtist(void)
InitIterator(&i, 1);
while (i.hasNextTrack(&i)) {
- struct TOC *p = i.getNextTrack(&i);
+ struct TOC_t *p = i.getNextTrack(&i);
int ii;
if (IS__DATA(p) || GETTRACK(p) == CDROM_LEADOUT) continue;
@@ -1681,7 +1679,7 @@ static void emit_cdindex_form(char *fnam
global.creator ? ascii2html(global.creator) : "");
while (i.hasNextTrack(&i)) {
- struct TOC *p = i.getNextTrack(&i);
+ struct TOC_t *p = i.getNextTrack(&i);
int ii = GETTRACK(p);
if (ii == CDROM_LEADOUT) break;
@@ -1703,7 +1701,7 @@ static void emit_cdindex_form(char *fnam
fprintf( cdindex_form, " <MultipleArtistCD>\n");
while (i.hasNextTrack(&i)) {
- struct TOC *p = i.getNextTrack(&i);
+ struct TOC_t *p = i.getNextTrack(&i);
int ii = GETTRACK(p);
if (ii == CDROM_LEADOUT) break;
@@ -1942,9 +1940,9 @@ static void DisplayToc_with_gui(unsigned
if ((global.verbose & (SHOW_TOC | SHOW_STARTPOSITIONS | SHOW_SUMMARY | SHOW_TITLES)) != 0
&& i.hasNextTrack(&i)) {
- TOC *o = i.getNextTrack(&i);
+ TOC_t *o = i.getNextTrack(&i);
while (i.hasNextTrack(&i)) {
- TOC *p = i.getNextTrack(&i);
+ TOC_t *p = i.getNextTrack(&i);
int from;
from = GETTRACK(o);
@@ -2072,9 +2070,9 @@ static void DisplayToc_no_gui(unsigned l
count_audio_trks = 0;
if (i.hasNextTrack(&i)) {
- TOC *o = i.getNextTrack(&i);
+ TOC_t *o = i.getNextTrack(&i);
while (i.hasNextTrack(&i)) {
- TOC *p = i.getNextTrack(&i);
+ TOC_t *p = i.getNextTrack(&i);
int from;
from = GETTRACK(o);
@@ -2131,10 +2129,10 @@ static void DisplayToc_no_gui(unsigned l
i.reset(&i);
if ((global.verbose & SHOW_TOC) != 0 &&
i.hasNextTrack(&i)) {
- TOC *o = i.getNextTrack(&i);
+ TOC_t *o = i.getNextTrack(&i);
for (; i.hasNextTrack(&i);) {
- TOC *p = i.getNextTrack(&i);
+ TOC_t *p = i.getNextTrack(&i);
if ( GETTRACK(o) <= MAXTRK ) {
unsigned char brace1, brace2;
@@ -2189,9 +2187,9 @@ static void DisplayToc_no_gui(unsigned l
ii = 0;
i.reset(&i);
if (i.hasNextTrack(&i)) {
- TOC *o = i.getNextTrack(&i);
+ TOC_t *o = i.getNextTrack(&i);
for ( ; i.hasNextTrack(&i);) {
- TOC *p = i.getNextTrack(&i);
+ TOC_t *p = i.getNextTrack(&i);
fprintf ( stderr,
" %2u.(%8u)",
GETTRACK(o),
@@ -2248,7 +2246,7 @@ static void DisplayToc_no_gui(unsigned l
i.reset(&i);
for ( ; i.hasNextTrack(&i);) {
- TOC *p = i.getNextTrack(&i);
+ TOC_t *p = i.getNextTrack(&i);
int jj = GETTRACK(p);
if ( global.tracktitle[jj] != NULL ) {
@@ -2260,7 +2258,7 @@ static void DisplayToc_no_gui(unsigned l
i.reset(&i);
for ( ; i.hasNextTrack(&i); ) {
- TOC *p = i.getNextTrack(&i);
+ TOC_t *p = i.getNextTrack(&i);
int jj;
if (IS__DATA(p))
@@ -2720,7 +2718,7 @@ void Read_MCN_ISRC(void)
InitIterator(&i, 1);
while (i.hasNextTrack(&i)) {
- struct TOC *p = i.getNextTrack(&i);
+ struct TOC_t *p = i.getNextTrack(&i);
unsigned ii = GETTRACK(p);
if (ii == CDROM_LEADOUT) break;
@@ -3155,7 +3153,7 @@ unsigned ScanIndices(unsigned track, uns
while (i.hasNextTrack(&i)) {
- struct TOC *p = i.getNextTrack(&i);
+ struct TOC_t *p = i.getNextTrack(&i);
unsigned ii = GETTRACK(p);
if ( ii < starttrack || IS__DATA(p) )
@@ -3322,7 +3320,7 @@ unsigned char *Get_MCN(void)
}
-static TOC g_toc [MAXTRK+1]; /* hidden track + 100 regular tracks */
+static TOC_t g_toc [MAXTRK+1]; /* hidden track + 100 regular tracks */
/*#define IS_AUDIO(i) (!(g_toc[i].bFlags & 0x40))*/
@@ -3397,10 +3395,10 @@ static int patch_cd_extra(unsigned track
static int restrict_tracks_illleadout(void)
{
- struct TOC *o = &g_toc[cdtracks+1];
+ struct TOC_t *o = &g_toc[cdtracks+1];
int i;
for (i = cdtracks; i >= 0; i--) {
- struct TOC *p = &g_toc[i];
+ struct TOC_t *p = &g_toc[i];
if (GETSTART(o) > GETSTART(p)) break;
}
patch_cd_extra(i+1, GETSTART(o));
@@ -3523,7 +3521,7 @@ static void it_reset(struct iterator *th
static int it_hasNextTrack(struct iterator *this);
-static struct TOC *it_getNextTrack(struct iterator *this);
+static struct TOC_t *it_getNextTrack(struct iterator *this);
static int it_hasNextTrack(struct iterator *this)
{
@@ -3532,7 +3530,7 @@ static int it_hasNextTrack(struct iterat
-static struct TOC *it_getNextTrack(struct iterator *this)
+static struct TOC_t *it_getNextTrack(struct iterator *this)
{
/* if ( (*this->hasNextTrack)(this) == 0 ) return NULL; */
if ( this->index > (int)cdtracks+1 ) return NULL;
@@ -3583,7 +3581,7 @@ long Get_AudioStartSector(unsigned long
if (p_track == cdtracks + 1) p_track = CDROM_LEADOUT;
while (i.hasNextTrack(&i)) {
- TOC *p = i.getNextTrack(&i);
+ TOC_t *p = i.getNextTrack(&i);
if (GETTRACK(p) == p_track) {
if (IS__DATA(p)) {
@@ -3613,7 +3611,7 @@ long Get_StartSector(unsigned long p_tra
if (p_track == cdtracks + 1) p_track = CDROM_LEADOUT;
while (i.hasNextTrack(&i)) {
- TOC *p = i.getNextTrack(&i);
+ TOC_t *p = i.getNextTrack(&i);
if (GETTRACK(p) == p_track) {
return GETSTART(p);
@@ -3637,7 +3635,7 @@ long Get_EndSector(unsigned long p_track
if (p_track == cdtracks + 1) p_track = CDROM_LEADOUT;
while (i.hasNextTrack(&i)) {
- TOC *p = i.getNextTrack(&i);
+ TOC_t *p = i.getNextTrack(&i);
if (GETTRACK(p) == p_track) {
p = i.getNextTrack(&i);
if (p == NULL) {
@@ -3669,7 +3667,7 @@ long FirstAudioTrack(void)
else i.reset(&i);
while (i.hasNextTrack(&i)) {
- TOC *p = i.getNextTrack(&i);
+ TOC_t *p = i.getNextTrack(&i);
unsigned ii = GETTRACK(p);
if (ii == CDROM_LEADOUT) break;
@@ -3687,7 +3685,7 @@ long FirstDataTrack(void)
else i.reset(&i);
while (i.hasNextTrack(&i)) {
- TOC *p = i.getNextTrack(&i);
+ TOC_t *p = i.getNextTrack(&i);
if (IS__DATA(p)) {
return GETTRACK(p);
}
@@ -3708,7 +3706,7 @@ long LastAudioTrack(void)
else i.reset(&i);
while (i.hasNextTrack(&i)) {
- TOC *p = i.getNextTrack(&i);
+ TOC_t *p = i.getNextTrack(&i);
if (IS__AUDIO(p) && (GETTRACK(p) != CDROM_LEADOUT)) {
j = GETTRACK(p);
}
@@ -3730,7 +3728,7 @@ long Get_LastSectorOnCd(unsigned long p_
if (p_track == cdtracks + 1) p_track = CDROM_LEADOUT;
while (i.hasNextTrack(&i)) {
- TOC *p = i.getNextTrack(&i);
+ TOC_t *p = i.getNextTrack(&i);
if (GETTRACK(p) < p_track)
continue;
@@ -3749,9 +3747,9 @@ int Get_Track(unsigned long sector)
else i.reset(&i);
if (i.hasNextTrack(&i)) {
- TOC *o = i.getNextTrack(&i);
+ TOC_t *o = i.getNextTrack(&i);
while (i.hasNextTrack(&i)) {
- TOC *p = i.getNextTrack(&i);
+ TOC_t *p = i.getNextTrack(&i);
if ((GETSTART(o) <= sector) && (GETSTART(p) > sector)) {
if (IS__DATA(o)) {
return -1;
@@ -3772,7 +3770,7 @@ int CheckTrackrange(unsigned long from,
else i.reset(&i);
while (i.hasNextTrack(&i)) {
- TOC *p = i.getNextTrack(&i);
+ TOC_t *p = i.getNextTrack(&i);
if (GETTRACK(p) < from)
continue;
@@ -3788,54 +3786,3 @@ int CheckTrackrange(unsigned long from,
return 0;
}
-#ifdef USE_PARANOIA
-long cdda_disc_firstsector(void *d);
-
-long cdda_disc_firstsector(void *d)
-{
- return Get_StartSector(FirstAudioTrack());
-}
-
-int cdda_tracks(void *d);
-
-int cdda_tracks(void *d)
-{
- return LastAudioTrack() - FirstAudioTrack() +1;
-}
-
-int cdda_track_audiop(void *d, int track);
-
-int cdda_track_audiop(void *d, int track)
-{
- return Get_Datatrack(track) == 0;
-}
-
-long cdda_track_firstsector(void *d, int track);
-
-long cdda_track_firstsector(void *d, int track)
-{
- return Get_AudioStartSector(track);
-}
-
-long cdda_track_lastsector(void *d, int track);
-
-long cdda_track_lastsector(void *d, int track)
-{
- return Get_EndSector(track);
-}
-
-long cdda_disc_lastsector(void *d);
-
-long cdda_disc_lastsector(void *d)
-{
- return Get_LastSectorOnCd(cdtracks) - 1;
-}
-
-int cdda_sector_gettrack(void *d,long sector);
-
-int cdda_sector_gettrack(void *d, long sector)
-{
- return Get_Track(sector);
-}
-
-#endif

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>media-optical</herd>
<use>
<flag name='hfs'>Provide building of HFS (Apple) CD-images</flag>
</use>
</pkgmetadata>

View File

@ -0,0 +1,244 @@
# ChangeLog for app-crypt/mhash
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/mhash/ChangeLog,v 1.66 2012/12/26 19:51:08 jer Exp $
26 Dec 2012; Jeroen Roovers <jer@gentoo.org> mhash-0.9.9.9-r1.ebuild:
Stable for HPPA (bug #287397).
23 Dec 2012; Fabian Groffen <grobian@gentoo.org> mhash-0.9.9.9-r1.ebuild:
Marked ~x64-solaris
23 Dec 2012; Fabian Groffen <grobian@gentoo.org> mhash-0.9.9.9-r1.ebuild:
Marked ~sparc64-solaris
04 May 2012; Alexis Ballier <aballier@gentoo.org> mhash-0.9.9.9-r1.ebuild:
keyword ~amd64-fbsd
01 Apr 2012; Raúl Porcel <armin76@gentoo.org> mhash-0.9.9.9-r1.ebuild:
arm/ia64/m68k/s390/sh/sparc stable wrt #287397
13 Mar 2012; Samuli Suominen <ssuominen@gentoo.org> mhash-0.9.9.9-r1.ebuild:
ppc64 stable wrt #287397
04 Mar 2012; Tobias Klausmann <klausman@gentoo.org> mhash-0.9.9.9-r1.ebuild:
Stable on alpha, bug #287397
22 Feb 2012; Brent Baude <ranger@gentoo.org> mhash-0.9.9.9-r1.ebuild:
Marking mhash-0.9.9.9-r1 ppc for bug 287397
29 Jul 2011; Samuli Suominen <ssuominen@gentoo.org> mhash-0.9.9.9.ebuild:
USE="static-libs" and remove unnecessary libtool archive. Missing
dev-lang/perl DEPEND for pod2html.
06 Feb 2011; Mart Raudsepp <leio@gentoo.org> mhash-0.9.9.ebuild:
Drop to ~mips
01 Apr 2010; Jonathan Callen <abcd@gentoo.org> mhash-0.9.9.9.ebuild:
Add prefix keywords
*mhash-0.9.9.9 (12 Apr 2009)
12 Apr 2009; Robin H. Johnson <robbat2@gentoo.org>
+files/mhash-0.9.9-autotools-namespace-stomping.patch,
+files/mhash-0.9.9-fix-mem-leak.patch,
+files/mhash-0.9.9-fix-snefru-segfault.patch,
+files/mhash-0.9.9-fix-whirlpool-segfault.patch, +mhash-0.9.9.9.ebuild:
Version bump. Bug #221093: Fix autotools defines. Bug #256800: obsolete
dodoc txt. Bug #255131: segfault in snerfu and whirlpool. Bug #255006:
memory leak.
08 Jun 2008; Javier Villavicencio <the_paya@gentoo.org>
mhash-0.9.9-r1.ebuild:
Keyworded ~x86-fbsd.
03 Feb 2008; Robin H. Johnson <robbat2@gentoo.org>
-files/mhash-0.9.3-mhash_free.patch, -mhash-0.9.1.ebuild,
-mhash-0.9.2.ebuild, -mhash-0.9.3.ebuild, -mhash-0.9.3-r1.ebuild,
-mhash-0.9.8.1.ebuild:
Clean up old ebuilds.
29 Oct 2007; Raúl Porcel <armin76@gentoo.org> mhash-0.9.9-r1.ebuild:
alpha/ia64/x86 stable
26 Oct 2007; Jeroen Roovers <jer@gentoo.org> mhash-0.9.9-r1.ebuild:
Stable for HPPA too.
25 Aug 2007; Steve Dibb <beandog@gentoo.org> mhash-0.9.9-r1.ebuild:
amd64 stable
13 Aug 2007; Tobias Scherbaum <dertobi123@gentoo.org>
mhash-0.9.9-r1.ebuild:
ppc. stable
29 Jul 2007; Tom Gall <tgall@gentoo> mhash-0.9.9-r1.ebuild:
stable on ppc64
*mhash-0.9.9-r1 (25 Jul 2007)
25 Jul 2007; Gustavo Zacarias <gustavoz@gentoo.org>
+files/mhash-0.9.9-mutils-align.patch, +mhash-0.9.9-r1.ebuild:
New rev with alignment fixes and sparc stable wrt #181563
14 Jun 2007; Christoph Mende <angelos@gentoo.org> mhash-0.9.9.ebuild:
Stable on amd64 wrt bug 181563
11 Jun 2007; Markus Rothe <corsair@gentoo.org> mhash-0.9.9.ebuild:
Stable on ppc64; bug #181563
11 Jun 2007; nixnut <nixnut@gentoo.org> mhash-0.9.9.ebuild:
Stable on ppc wrt bug 181563
11 Jun 2007; Raúl Porcel <armin76@gentoo.org> mhash-0.9.9.ebuild:
alpha/ia64/x86 stable wrt #181563
11 Jun 2007; Fabian Groffen <grobian@gentoo.org> mhash-0.9.8.1.ebuild,
mhash-0.9.9.ebuild:
Dropped ppc-macos keyword, see you in prefix
10 Jun 2007; Jeroen Roovers <jer@gentoo.org> mhash-0.9.9.ebuild:
Stable for HPPA (bug #181563).
10 Jun 2007; Joshua Kinard <kumba@gentoo.org> mhash-0.9.9.ebuild:
Stable on mips, per #181563.
*mhash-0.9.9 (01 May 2007)
01 May 2007; Robin H. Johnson <robbat2@gentoo.org> +mhash-0.9.9.ebuild:
Version bump.
*mhash-0.9.8.1 (28 Mar 2007)
28 Mar 2007; Robin H. Johnson <robbat2@gentoo.org> +mhash-0.9.8.1.ebuild:
Bug #155138, version bump, now that it is finally big-endian safe again.
18 Mar 2007; Fabian Groffen <grobian@gentoo.org> mhash-0.9.1.ebuild,
mhash-0.9.2.ebuild, mhash-0.9.3.ebuild, mhash-0.9.3-r1.ebuild:
Dropped ppc-macos, see you in prefix
11 Jan 2007; Mike Frysinger <vapier@gentoo.org> mhash-0.9.1.ebuild,
mhash-0.9.2.ebuild, mhash-0.9.3.ebuild, mhash-0.9.3-r1.ebuild:
Remove pointless call to prepalldocs.
19 Oct 2006; Roy Marples <uberlord@gentoo.org> mhash-0.9.2.ebuild,
mhash-0.9.3.ebuild, mhash-0.9.3-r1.ebuild:
Added ~sparc-fbsd keyword.
23 Apr 2006; Diego Pettenò <flameeyes@gentoo.org> mhash-0.9.2.ebuild,
mhash-0.9.3-r1.ebuild:
Keyword the right one.
22 Apr 2006; Diego Pettenò <flameeyes@gentoo.org> mhash-0.9.3-r1.ebuild:
Add ~x86-fbsd keyword.
08 Jan 2006; Luca Longinotti <chtekk@gentoo.org> mhash-0.9.2.ebuild,
mhash-0.9.3-r1.ebuild:
Fix bug #117310.
*mhash-0.9.3-r1 (27 Dec 2005)
27 Dec 2005; Robin H. Johnson <robbat2@gentoo.org>
+files/mhash-0.9.3-mhash_free.patch, +mhash-0.9.3-r1.ebuild:
Bug #116769 - upstream accidently dropped a symbol. Note that 0.9.3* is
package.masked for the moment due to another bug as well.
*mhash-0.9.3 (26 Dec 2005)
26 Dec 2005; Robin H. Johnson <robbat2@gentoo.org> +mhash-0.9.3.ebuild:
Version bump.
19 Feb 2005; Hardave Riar <hardave@gentoo.org> mhash-0.9.1.ebuild:
Stable on mips
*mhash-0.9.2 (14 Feb 2005)
14 Feb 2005; Robin H. Johnson <robbat2@gentoo.org> +mhash-0.9.2.ebuild:
Bug #79346, version bump.
30 Nov 2004; Robin H. Johnson <robbat2@gentoo.org> mhash-0.9.1.ebuild:
Bug #72011, DESTDIR.
03 Nov 2004; Bret Curtis <psi29a@gentoo.org> mhash-0.9.1.ebuild:
added to ~mips for testing
24 Sep 2004; Tom Gall <tgall@gentoo.org> mhash-0.9.1.ebuild:
added ppc64 to make up for whoever deleted mhash-0.8.18-r1.ebuild
21 Sep 2004; kito <kito@gentoo.org> mhash-0.9.1.ebuild:
added ~ppc-macos keyword. Closes bug #63880
18 Aug 2004; Tom Gall <otgall@gentoo.rg> mhash-0.8.18-r1.ebuild:
stable on ppc64
19 Jul 2004; Robin H. Johnson <robbat2@gentoo.org> metadata.xml:
add metadata.xml
*mhash-0.9.1 (23 May 2004)
23 May 2004; Robin H. Johnson <robbat2@gentoo.org> mhash-0.9.1.ebuild:
bug #49962, version bump.
15 Apr 2004; Michael Sterrett <mr_bones_@gentoo.org> mhash-0.8.16.ebuild,
mhash-0.8.18.ebuild, mhash-0.8.9.ebuild:
clean older versions
01 Apr 2004; <randy@gentoo.org> mhash-0.8.18-r1.ebuild:
Adding s390 Keywords
10 Jan 2004; <agriffis@gentoo.org> mhash-0.8.18-r1.ebuild:
stable on ia64
19 Aug 2003; Tavis Ormandy <taviso@gentoo.org> mhash-0.8.18-r1.ebuild:
marking alpha
18 Jun 2003; <msterret@gentoo.org> mhash-0.8.18-r1.ebuild:
call dohtml after prepalldocs to avoid gzip of html
*mhash-0.8.18-r1 (01 May 2003)
01 May 2003; Robin Johnson <robbat2@gentoo.org> mhash-0.8.18-r1.ebuild:
version bump due to fix required for undocumented upstream change in
configure defaults (--[enable/disable]-stable.
*mhash-0.8.18 (24 Apr 2003)
24 Apr 2003; Robin Johnson <robbat2@gentoo.org> mhash-0.8.18.ebuild:
updated to latest version
improved installed docs
*mhash-0.8.16 (14 Jun 2002)
06 Feb 2003; Will Woods <wwoods@gentoo.org> :
added ~alpha keyword (tested by peter@icebear.net)
06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
25 Feb 2003; Guy Martin <gmsoft@gentoo.org> mhash-0.8.16.ebuild :
Added hppa to keywords.
18 Oct 2002; Daniel Ahlberg <aliz@gentoo.org> mhash-0.8.16.ebuild :
Updated to mirror://sourceforge in SRC_URI.
13 Aug 2002; Pieter Van den Abeele <pvdabeel@gentoo.org> mhash-0.8.16.ebuild :
added ppc keyword
14 Jun 2002; Gabriele Giorgetti <stroke@gentoo.org> mhash-0.8.16.ebuild :
New version. Changed the SRC_URI location to a working sf.net mirror.
*mhash-0.8.9 (1 Feb 2002)
27 Mar 2002; Seemant Kulleen <seemant@gentoo.org> mhash-0.8.9.ebuild :
Ungzipped HTML docs.
*mhash-0.8.9 (1 Feb 2002)
1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog :
Added initial ChangeLog which should be updated whenever the package is
updated in any way. This changelog is targetted to users. This means that the
comments should well explained and written in clean English. The details about
writing correct changelogs are explained in the skel.ChangeLog file which you
can find in the root directory of the portage repository.

View File

@ -0,0 +1,25 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
AUX mhash-0.9.9-autotools-namespace-stomping.patch 3087 SHA256 42dba3baa4c1fe43104b026c3ad4903e6ba2ee043268336a3e84a7b66cb8fa0e SHA512 f32bcbf244aa38755b99c0bb1b328974a9dc6b927bf56073061821827f7b2017c98eb042d11f52d0befb654c58db6540fe1bec0ce7d5f980bfd26914ac49b596 WHIRLPOOL ba70f44cc758c9bf963fd8b874d6d6a1a753fc721588bc76c904eb6899adc7512827b35f3b1ed551bb142f9b3b1ebac718b5c906cde7c2aba53fb98f84c7d7d6
AUX mhash-0.9.9-fix-mem-leak.patch 1016 SHA256 87cd9ce4cda5f1fd18f629595f8d468b3600586207bf2b4c37c7091382cfb3c0 SHA512 2255a24f1053ef657750196fbf3e07cb68fc630db5d07356e048a4470a99b2eeeb932a7ecc344211b08bb705a176083f7f36bf0cf245ae684d8cc76b37dcbac0 WHIRLPOOL 3b01647ee05265a6785886dcbddfd6adfd86919a7636509feacddae28475db356701dd199a6fa6392a09a65c9d36ef133092b3f73418c83ed8022b686f4ffb41
AUX mhash-0.9.9-fix-snefru-segfault.patch 1005 SHA256 f35b6aed2c48fcf7cc43c40475786d0d583b0fd38cf3fa470f6c7d139d51864f SHA512 20f23f4d3ba20b61942e09915fa3e355f679f3e9747fec888d1c576c0e7144611b432cf005184938b86d080d8e626bc31af6ea2877762ec3e3205563b5cbfb09 WHIRLPOOL 0d70787f7e7950c82837d875f547d0bc7bbd4a4321da18649f7e9f506be25dd58c92267d5ee5694435154f35fa3bad20cc21aaaaaf0113e8621e33df1fcecbeb
AUX mhash-0.9.9-fix-whirlpool-segfault.patch 1011 SHA256 cbf742203022b6a0ab64dd927c084ccfdc07da31ee5a180371b102dccf177795 SHA512 4132174e3b1bf08a296fb36a1bc516eedc79d59c5bd5f17e32ddcf70ad243e24bc733fecafe9bbc3a776c573022496ab2593a0201d3576ebf94402588a4f4889 WHIRLPOOL cdf6596a2c5a641ac948a57e31fc1bba9ef9165465c5d8991ace196a8253c6e928f48c6e82956565b1fdd2d4efda1d5f13269acefc89138225e67385fd5f4916
AUX mhash-0.9.9-mutils-align.patch 2650 SHA256 df3e872dd7cf42db77b9857619cd1c00710d1396c76c08b7e79ca7b53d54d123 SHA512 5482630fd8652a78a2c8f4b24829e77014d1c0ceed36f2fb5248ba2d03d9978ff7459a2cea15600c652118fe303a4cec1aea89f80c47319a81ed2890baf6ab4c WHIRLPOOL dae0f766b28e02db8a620b4be40bee648c2682682bf5e38f3f6005ea3976a0620baa6bc557c48ae649ca9c6f278683bafb71293c19fc62279e499e89ac54dfea
AUX mhash-0.9.9.9-align.patch 3037 SHA256 cef76a48a440d428d529746afec665ae9cb78f27d8303886f8b0ea3b12077125 SHA512 ce52d1caf3f9dc5bcc388aefacebb93fd422f905ab82f4d7aa6b66ac4ecfcbd32d576778cf3c0ad34f48461a016a08f2cc9ea7063fcb1f29b5188dea04f1ae03 WHIRLPOOL fdd3ed7caeb213b0eff3c82e2aab1a2ad943f3884f16bda7915c7696398acfe2ef1996d23bee721aba291a6d0c00274d6bbd5027a4e65831a0e31949d8cd453d
AUX mhash-0.9.9.9-alignment.patch 579 SHA256 f64d52ebe5018a9d850ef33afe94c4488f695bb1948dfe6e57697f1ff4d75d06 SHA512 6272d5e346067861235b8c5cbb5f4ec1bbb1cd80910ea913860e09ed34661df02ed3d4ed9fa55e870d7e22827fad84cc56bb701195908acca435643018fe81d3 WHIRLPOOL 3b123c494991cfa8374550afb2a8a07a303622e715dc13c8d2c1360fdeb4b7443f9bf7b1a5235f8dfd3ffe5e40a8aaf6985c2ac9e931a939c2a733fdaf2cea07
AUX mhash-0.9.9.9-force64bit-tiger.patch 537 SHA256 708b048c79270330eb072118b5fdb3338900da9ddc0b6bf4ac3260c7d02593e0 SHA512 7ca2118569ad28107672f081fa4d06758bc78da48612ba31d6655e91ebf4928055b1643a012d60538b915b05d906adf23a8aeb3d7b9f5d8c12eaf1058b9f5454 WHIRLPOOL a2c40f9c6f455027ed336200d00afde7b559ed22bf9bed2824eff131c023fc701c1dae23ecc3be723cec435e5316a469db3e23c83cb1f14c276643d705639f7f
AUX mhash-0.9.9.9-remove_premature_free.patch 464 SHA256 b750eef6fb406eb73e2ea46ac6d173587e8a75bdeba75bdb57f572e596844e53 SHA512 f8f9814c39890f14e760c6600998b628db27ca52efd864be123b646425be1edd106179840d8720c36948cfe509d2b320fd98c2aee0b3fcc7ae1fac8ccdba792e WHIRLPOOL 62ac0710bb716d0217f77726e8e5a47cd667d57ecc6112dbf17a5e3f89deca509d1db956ad79c7c207b9ebd2c9d2b5096e8ec1638584123efc41c4fbbaf9428e
DIST mhash-0.9.9.9.tar.gz 931437 SHA256 3dcad09a63b6f1f634e64168dd398e9feb9925560f9b671ce52283a79604d13e SHA512 82ad8b8e9b0463c5a14f5c0e572badc42c4697bac5505443b144287b3f8510b1410721b4277f092a0d6045c4342e997831011cdfcbfa8f1dae6edd5d9e3cefee WHIRLPOOL d1a77b1ccb172af9ee4c7769b6f1d1f53f3b7cb1d87f7aad0c5fb64ae40302f21134a1cd05447dd766bc4408ae2dbb014db77d68a052a57131c955d3ca6453c2
DIST mhash-0.9.9.tar.gz 919622 SHA256 a61d4f30f3377afd41e316e53f1d6a9a829f34d20add0e4bb29752cb01435c77 SHA512 3f32cdb6428d1941c7dce3d2bd2a516fd66b4f1bd595c5d429f592e4e45c2a12247bd93bcb2208637e8d8e7f284f1a730caad262c0c9f4bbd0dc2f8604cd98db WHIRLPOOL 70b8667d160cb686b41a87588043a3a5b2ffd0a662f7bc7f9fd8bb45526dd266f11557b1934cdeda651c4b219b068ed98908a8212e94abfa79930785e3691872
EBUILD mhash-0.9.9-r1.ebuild 1096 SHA256 e24a50fafda9cc138d3013954e1349c2910375750a5cb5796b6c51149f12005e SHA512 5a314e078217cfb38071beecc6c854bd6d67ce15f04dfb95a3cc2316c5ad85425021300fb09271f01d3ba13c2ea2344ad778c1a0fe3e64091dd5873f5f746836 WHIRLPOOL 196b24bc8ad89f66e7807cd272c26279e5fea3899a581bcda0174932b885a9f550d18dfebbf42059574ec115da928b8ab308c1c751cdfad9ac2900300ccdc86c
EBUILD mhash-0.9.9.9-r1.ebuild 1409 SHA256 504de1d54bb7540b8a3da1219e1b232e1d7161fb713beb0d34c7ecd04ae0146f SHA512 6bf906872dfe7c5c010a3725de62c9dbcb6658d7997262bbbb2568a1705f0998c051c8f1731ab776f2023d76d267767923dad67b991412082ce8fe005874ded2 WHIRLPOOL 416f17718a4eca9b1f6db0a1bcaede153888e95e12071abf3b5f8cdbbcc46d7353996b3349671be47bfb68453cb86f1df08e3c5cc4c254681b80a61935b6abc2
MISC ChangeLog 8297 SHA256 5462b38cf9968695609397499bfdbf1f7f19345ae9d2c991bb581e85a88581c6 SHA512 1f8f0e733b5265f3ec86bf504f843185e0e58cb5c5d627f43bfde3e0485fadcb83b74a268b281372279f8380989c79e867d4f974dec86b49fa182ba5371cf4d8 WHIRLPOOL 0c37bad868dba95688497d0e9de94ae5e93f9bb672176cf2e56a91ced1d48bbc943e8542fe03b431404047acff48104139a838ebef8e5c38747f21d21b65a029
MISC metadata.xml 254 SHA256 01e5e65407b8647d4a3ba7fc968e271368b319b1b34a2df8fa891c70099a3e63 SHA512 1e5e169b9f7bbc60a3b0e19a0f21d108b6d5cdea4ab299817c8d157370f8a6a876c901aa94e4c8ef817f91fe53fe4cf029d72931d5fdb15b91b8119dc3d78e55 WHIRLPOOL acd26f78ca257d987fda8fbec98f3a9df754b8470d36fcf137b219760e9cfb5b95656fa104847c8e3cdb5b1f284ad97f3d6924ef8343c763e83f942abbeb9f23
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
iEYEAREIAAYFAlDbVS0ACgkQVWmRsqeSphOGJQCeKDTVoPcytC0k1ozOuiPksDbK
UM4An2ut7DoVHBovngvZeeEeu618OqkB
=gi6I
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,96 @@
Per debian 473204: http://bugs.debian.org/473204, mhash exports #defines that
are customarily autotools-private. This results in warnings when other packages
attempt to use mhash's headers.
Gentoo-Bug: 221093
Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=221093
Patch-URL: http://bugs.gentoo.org/attachment.cgi?id=152625&action=view
Signed-off-by: Peter Alfredson <loki_val@gentoo.org>
diff -NrU5 mhash-0.9.9.orig/configure.in mhash-0.9.9/configure.in
--- mhash-0.9.9.orig/configure.in 2008-05-09 16:17:52.000000000 +0200
+++ mhash-0.9.9/configure.in 2008-05-09 16:18:20.000000000 +0200
@@ -4,10 +4,11 @@
AC_CANONICAL_TARGET
AC_CONFIG_SRCDIR([lib/mhash.c])
AM_INIT_AUTOMAKE
AC_DEFINE([MHASH_VERSION], PROGRAM_VERSION, "MHash Version")
+AC_CONFIG_HEADER([include/mutils/config.h])
AC_CONFIG_HEADER([include/mutils/mhash_config.h])
dnl Check system.
diff -NrU5 mhash-0.9.9.orig/include/mutils/config.h.in mhash-0.9.9/include/mutils/config.h.in
--- mhash-0.9.9.orig/include/mutils/config.h.in 1970-01-01 01:00:00.000000000 +0100
+++ mhash-0.9.9/include/mutils/config.h.in 2008-05-09 16:18:20.000000000 +0200
@@ -0,0 +1,22 @@
+/* Name of package */
+#undef PACKAGE
+
+/* Define to the address where bug reports for this package should be sent. */
+#undef PACKAGE_BUGREPORT
+
+/* Define to the full name of this package. */
+#undef PACKAGE_NAME
+
+/* Define to the full name and version of this package. */
+#undef PACKAGE_STRING
+
+/* Define to the one symbol short name of this package. */
+#undef PACKAGE_TARNAME
+
+/* Define to the version of this package. */
+#undef PACKAGE_VERSION
+
+/* Version number of package */
+#undef VERSION
+
+
diff -NrU5 mhash-0.9.9.orig/include/mutils/mhash_config.h.in mhash-0.9.9/include/mutils/mhash_config.h.in
--- mhash-0.9.9.orig/include/mutils/mhash_config.h.in 2008-05-09 16:17:52.000000000 +0200
+++ mhash-0.9.9/include/mutils/mhash_config.h.in 2008-05-09 16:19:17.000000000 +0200
@@ -179,28 +179,10 @@
#undef MHASH_VERSION
/* Define to 1 if your C compiler doesn't accept -c and -o together. */
#undef NO_MINUS_C_MINUS_O
-/* Name of package */
-#undef PACKAGE
-
-/* Define to the address where bug reports for this package should be sent. */
-#undef PACKAGE_BUGREPORT
-
-/* Define to the full name of this package. */
-#undef PACKAGE_NAME
-
-/* Define to the full name and version of this package. */
-#undef PACKAGE_STRING
-
-/* Define to the one symbol short name of this package. */
-#undef PACKAGE_TARNAME
-
-/* Define to the version of this package. */
-#undef PACKAGE_VERSION
-
/* Define to 1 if the C compiler supports function prototypes. */
#undef PROTOTYPES
/* The size of `unsigned char', as computed by sizeof. */
#undef SIZEOF_UNSIGNED_CHAR
@@ -221,13 +203,10 @@
#undef STDC_HEADERS
/* dmalloc */
#undef USE_DMALLOC
-/* Version number of package */
-#undef VERSION
-
/* Define if using the dmalloc debugging malloc package */
#undef WITH_DMALLOC
/* Define to 1 if your processor stores words with the most significant byte
first (like Motorola and SPARC, unlike Intel and VAX). */

View File

@ -0,0 +1,27 @@
The package app-crypt/mhash-0.9.9 as well as app-crypt/mhash-0.9.9-r1 are
affected by a bug which causes memory to be leaked during
mhash_restore_state_mem.
In this function/patch, ret->state is allocated towards the beginning and later
on replaced with a new allocated area without freeing the old. The patch fixes
it.
Patch already submitted upstream, but depending on speed, this may be faster to
patch in a new patchset.
Gentoo-Bug: 255006
Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=255006
Patch-URL: http://bugs.gentoo.org/attachment.cgi?id=178560
Signed-off-by: Thomas Harning <harningt@gmail.com>
--- mhash-0.9.9/lib/mhash.c 2007-02-21 01:18:46.000000000 -0500
+++ mhash-0.9.9-new/lib/mhash.c 2009-01-15 01:57:53.000000000 -0500
@@ -719,6 +719,8 @@
mutils_memcpy( &ret->state_size, &mem[pos], sizeof(ret->state_size));
pos += sizeof( ret->state_size);
+ if (ret->state)
+ mutils_free(ret->state);
ret->state = mutils_malloc(ret->state_size);
if (ret->state==NULL)
goto freeall;

View File

@ -0,0 +1,27 @@
The package app-crypt/mhash-0.9.9 as well as app-crypt/mhash-0.9.9-r1 are
affected by a bug which causes a NULL ptr dereference in whirlpool/snefru
digest-completion functionality.
In this patch, whirlpool and snefru's code is updated to bail if 'digest' is
NULL. The code portion aborted is only responsible for writing data to the
digest, so this appears to be correct behavior.
Patch already submitted upstream, but depending on speed, this may be faster to
patch in a new patchset.
Gentoo-Bug: 255131
Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=255131
Patch-URL: http://bugs.gentoo.org/attachment.cgi?id=178666&action=view
Signed-off-by: Thomas Harning <harningt@gmail.com>
--- mhash-0.9.9/lib/snefru.c 2009-01-16 00:16:04.000000000 -0500
+++ mhash-0.9.9-new/lib/snefru.c 2009-01-16 00:16:21.000000000 -0500
@@ -859,6 +859,8 @@
{
mutils_word32 i;
+ if(!digest) return;
+
for (i = 0; i < len; i++, digest += 4)
{
*(mutils_word32 *)digest = mutils_bend2sys32(ctx->hash[i]);

View File

@ -0,0 +1,27 @@
The package app-crypt/mhash-0.9.9 as well as app-crypt/mhash-0.9.9-r1 are
affected by a bug which causes a NULL ptr dereference in whirlpool/snefru
digest-completion functionality.
In this patch, whirlpool and snefru's code is updated to bail if 'digest' is
NULL. The code portion aborted is only responsible for writing data to the
digest, so this appears to be correct behavior.
Patch already submitted upstream, but depending on speed, this may be faster to
patch in a new patchset.
Gentoo-Bug: 255131
Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=255131
Patch-URL: http://bugs.gentoo.org/attachment.cgi?id=178667&action=view
Signed-off-by: Thomas Harning <harningt@gmail.com>
--- mhash-0.9.9/lib/whirlpool.c 2006-01-08 03:14:47.000000000 -0500
+++ mhash-0.9.9-new/lib/whirlpool.c 2009-01-16 00:17:34.000000000 -0500
@@ -970,6 +970,8 @@
mutils_word8 * digest)
{
mutils_word32 i;
+
+ if(!digest) return;
/*
* return the completed message digest:
*/

View File

@ -0,0 +1,118 @@
diff -ur mhash-0.9.9.orig/lib/stdfns.c mhash-0.9.9/lib/stdfns.c
--- mhash-0.9.9.orig/lib/stdfns.c Wed Apr 4 21:18:42 2007
+++ mhash-0.9.9/lib/stdfns.c Mon May 28 16:08:38 2007
@@ -152,12 +152,23 @@
}
}
+static void
+mutils_memset8(void *s, __const mutils_word8 c, __const mutils_word32 n)
+{
+ mutils_word8 *stmp = s;
+ mutils_word32 i;
+
+ for (i = 0; i < n; i++, stmp++)
+ {
+ *stmp = c;
+ }
+}
+
WIN32DLL_DEFINE
void
mutils_memset(void *s, __const mutils_word8 c, __const mutils_word32 n)
{
- mutils_word8 *stmp;
- mutils_word32 *ltmp = (mutils_word32 *) s;
+ mutils_word32 *ltmp;
mutils_word32 lump;
mutils_word32 i;
mutils_word32 words;
@@ -168,10 +179,22 @@
return;
}
+ if (n < 16)
+ {
+ return mutils_memset8(s, c, n);
+ }
+
+ /* unaligned portion at beginning */
+ remainder = (-(mutils_word32)s) & 0x3;
+ mutils_memset8(s, c, remainder);
+
+ /* aligned words in the middle */
+ ltmp = (mutils_word32 *) (s + remainder);
+
lump = (c << 24) + (c << 16) + (c << 8) + c;
- words = n >> 2;
- remainder = n - (words << 2);
+ words = (n - remainder) >> 2;
+ remainder = n - remainder - (words << 2);
for (i = 0; i < words; i++, ltmp++)
{
@@ -178,12 +201,8 @@
*ltmp = lump;
}
- stmp = (mutils_word8 *) ltmp;
-
- for (i = 0; i < remainder; i++, stmp++)
- {
- *stmp = c;
- }
+ /* unaligned portion at end */
+ return mutils_memset8(ltmp, c, remainder);
}
static void
@@ -275,6 +294,9 @@
mutils_word32 *buffer;
mutils_word32 *ptrIn;
mutils_word32 *ptrOut;
+ mutils_word8 *ptr8In;
+ mutils_word8 *ptr8Out;
+ mutils_word8 tmp8;
mutils_word32 count = n * 4;
if (destructive == MUTILS_FALSE)
@@ -295,10 +317,36 @@
* data on a little-endian machine.
*/
- for (loop = 0, ptrIn = x, ptrOut = buffer; loop < n; loop++, ptrOut++, ptrIn++)
+ if ((mutils_word32)x & 0x3)
{
- *ptrOut = mutils_lend32(*ptrIn);
+ ptr8In = (mutils_word8 *) x;
+ ptr8Out = (mutils_word8 *) buffer;
+ for (loop = 0; loop < n; loop++)
+ {
+#ifdef WORDS_BIGENDIAN
+ tmp8 = ptr8In[0];
+ ptr8Out[0] = ptr8In[3];
+ ptr8Out[3] = tmp8;
+ tmp8 = ptr8In[1];
+ ptr8Out[1] = ptr8In[2];
+ ptr8Out[2] = tmp8;
+#else
+ ptr8Out[0] = ptr8In[0];
+ ptr8Out[1] = ptr8In[1];
+ ptr8Out[2] = ptr8In[2];
+ ptr8Out[3] = ptr8In[3];
+#endif
+ ptr8Out += 4;
+ ptr8In += 4;
+ }
}
+ else
+ {
+ for (loop = 0, ptrIn = x, ptrOut = buffer; loop < n; loop++, ptrOut++, ptrIn++)
+ {
+ *ptrOut = mutils_lend32(*ptrIn);
+ }
+ }
return(buffer);
}

View File

@ -0,0 +1,119 @@
diff -up mhash-0.9.9.9/lib/stdfns.c.BAD mhash-0.9.9.9/lib/stdfns.c
--- mhash-0.9.9.9/lib/stdfns.c.BAD 2009-07-02 16:38:43.217029623 -0400
+++ mhash-0.9.9.9/lib/stdfns.c 2009-07-02 16:41:58.647120391 -0400
@@ -152,6 +152,18 @@ mutils_bzero(void *s, __const mutils_wor
}
}
+static void
+mutils_memset8(void *s, __const mutils_word8 c, __const mutils_word32 n)
+{
+ mutils_word8 *stmp = s;
+ mutils_word32 i;
+
+ for (i = 0; i < n; i++, stmp++)
+ {
+ *stmp = c;
+ }
+}
+
WIN32DLL_DEFINE
void
mutils_memset(void *s, __const mutils_word8 c, __const mutils_word32 n)
@@ -160,8 +172,7 @@ mutils_memset(void *s, __const mutils_wo
/* Sparc needs 8-bit alignment - just use standard memset */
memset(s, (int) c, (size_t) n);
#else
- mutils_word8 *stmp;
- mutils_word32 *ltmp = (mutils_word32 *) s;
+ mutils_word32 *ltmp;
mutils_word32 lump;
mutils_word32 i;
mutils_word32 words;
@@ -172,22 +183,30 @@ mutils_memset(void *s, __const mutils_wo
return;
}
+ if (n < 16)
+ {
+ return mutils_memset8(s, c, n);
+ }
+
+ /* unaligned portion at beginning */
+ remainder = (-(mutils_word32)s) & 0x3;
+ mutils_memset8(s, c, remainder);
+
+ /* aligned words in the middle */
+ ltmp = (mutils_word32 *) (s + remainder);
+
lump = (c << 24) + (c << 16) + (c << 8) + c;
- words = n >> 2;
- remainder = n - (words << 2);
+ words = (n - remainder) >> 2;
+ remainder = n - remainder - (words << 2);
for (i = 0; i < words; i++, ltmp++)
{
*ltmp = lump;
}
- stmp = (mutils_word8 *) ltmp;
-
- for (i = 0; i < remainder; i++, stmp++)
- {
- *stmp = c;
- }
+ /* unaligned portion at end */
+ return mutils_memset8(ltmp, c, remainder);
#endif
}
@@ -281,6 +300,9 @@ mutils_word32nswap(mutils_word32 *x, mut
mutils_word32 *buffer;
mutils_word32 *ptrIn;
mutils_word32 *ptrOut;
+ mutils_word8 *ptr8In;
+ mutils_word8 *ptr8Out;
+ mutils_word8 tmp8;
mutils_word32 count = n * 4;
if (destructive == MUTILS_FALSE)
@@ -301,9 +323,35 @@ mutils_word32nswap(mutils_word32 *x, mut
* data on a little-endian machine.
*/
- for (loop = 0, ptrIn = x, ptrOut = buffer; loop < n; loop++, ptrOut++, ptrIn++)
+ if ((mutils_word32)x & 0x3)
+ {
+ ptr8In = (mutils_word8 *) x;
+ ptr8Out = (mutils_word8 *) buffer;
+ for (loop = 0; loop < n; loop++)
+ {
+#ifdef WORDS_BIGENDIAN
+ tmp8 = ptr8In[0];
+ ptr8Out[0] = ptr8In[3];
+ ptr8Out[3] = tmp8;
+ tmp8 = ptr8In[1];
+ ptr8Out[1] = ptr8In[2];
+ ptr8Out[2] = tmp8;
+#else
+ ptr8Out[0] = ptr8In[0];
+ ptr8Out[1] = ptr8In[1];
+ ptr8Out[2] = ptr8In[2];
+ ptr8Out[3] = ptr8In[3];
+#endif
+ ptr8Out += 4;
+ ptr8In += 4;
+ }
+ }
+ else
{
- *ptrOut = mutils_lend32(*ptrIn);
+ for (loop = 0, ptrIn = x, ptrOut = buffer; loop < n; loop++, ptrOut++, ptrIn++)
+ {
+ *ptrOut = mutils_lend32(*ptrIn);
+ }
}
return(buffer);

View File

@ -0,0 +1,16 @@
diff -up mhash-0.9.9.9/lib/stdfns.c.BAD mhash-0.9.9.9/lib/stdfns.c
--- mhash-0.9.9.9/lib/stdfns.c.BAD 2009-07-21 12:05:40.139461097 -0400
+++ mhash-0.9.9.9/lib/stdfns.c 2009-07-21 12:06:52.151190927 -0400
@@ -378,6 +378,12 @@ mutils_memmove(void *dest, __const void
bigptr1 = (mutils_word32 *) dest;
bigptr2 = (mutils_word32 *) src;
+ /* copy byte-by-byte for small and/or unaligned copies */
+ if ((n < 16) || ((mutils_word32)dest & 0x3) || ((mutils_word32)src & 0x3))
+ {
+ return mutils_memcpy8(dest, src, n);
+ }
+
words = n >> 2;
remainder = n - (words << 2);

View File

@ -0,0 +1,14 @@
diff -up mhash-0.9.9.9/lib/tiger.c.BAD mhash-0.9.9.9/lib/tiger.c
--- mhash-0.9.9.9/lib/tiger.c.BAD 2009-07-02 16:42:47.683029940 -0400
+++ mhash-0.9.9.9/lib/tiger.c 2009-07-02 16:43:46.085049317 -0400
@@ -252,7 +252,9 @@ void tiger_update(struct tiger_ctx *ctx,
void tiger_final(struct tiger_ctx *ctx)
{
register mutils_word64 i, j;
- mutils_word8 temp[TIGER_DATASIZE];
+ /* Force 64-bit alignment */
+ mutils_word64 temp_64bit[TIGER_DATASIZE/8];
+ mutils_word8 *temp = temp_64bit;
i = ctx->index;
#if defined(WORDS_BIGENDIAN)

View File

@ -0,0 +1,12 @@
diff -ru mhash-0.9.9.9.orig/src/keygen_test.c mhash-0.9.9.9/src/keygen_test.c
--- mhash-0.9.9.9.orig/src/keygen_test.c 2007-02-21 07:39:08.000000000 +0100
+++ mhash-0.9.9.9/src/keygen_test.c 2009-12-04 01:29:16.000000000 +0100
@@ -121,8 +121,6 @@
mhash_keygen_ext(KEYGEN_S2K_SALTED, data, key, keysize, password, passlen);
- mutils_memset(tmp, 0, keysize * 2);
-
tmp = mutils_asciify(key, keysize);
result = mutils_strcmp((mutils_word8 *) KEY2, tmp);

View File

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

View File

@ -0,0 +1,40 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/mhash/mhash-0.9.9-r1.ebuild,v 1.8 2008/06/08 21:38:23 the_paya Exp $
inherit eutils
DESCRIPTION="library providing a uniform interface to a large number of hash algorithms"
HOMEPAGE="http://mhash.sourceforge.net/"
SRC_URI="mirror://sourceforge/mhash/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
IUSE=""
DEPEND=""
RDEPEND=""
src_unpack() {
# Fix for issues in bug #181563
unpack ${A} && cd "${S}"
epatch "${FILESDIR}/${P}-mutils-align.patch"
}
src_compile() {
econf \
--enable-static \
--enable-shared || die
emake || die "make failure"
cd doc && emake mhash.html || die "failed to build html"
}
src_install() {
dodir /usr/{bin,include,lib}
make install DESTDIR="${D}" || die "install failure"
dodoc AUTHORS INSTALL NEWS README TODO THANKS ChangeLog
dodoc doc/*.txt doc/skid* doc/*.c
dohtml doc/mhash.html || die "dohtml failed"
}

View File

@ -0,0 +1,46 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/mhash/mhash-0.9.9.9-r1.ebuild,v 1.9 2012/12/26 19:51:08 jer Exp $
EAPI=4
inherit eutils
DESCRIPTION="library providing a uniform interface to a large number of hash algorithms"
HOMEPAGE="http://mhash.sourceforge.net/"
SRC_URI="mirror://sourceforge/mhash/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="static-libs"
RDEPEND=""
DEPEND="dev-lang/perl" # pod2html
src_prepare() {
epatch \
"${FILESDIR}"/${PN}-0.9.9-fix-{mem-leak,snefru-segfault,whirlpool-segfault}.patch \
"${FILESDIR}"/${PN}-0.9.9-autotools-namespace-stomping.patch \
"${FILESDIR}"/${P}-remove_premature_free.patch \
"${FILESDIR}"/${P}-force64bit-tiger.patch \
"${FILESDIR}"/${P}-align.patch \
"${FILESDIR}"/${P}-alignment.patch
}
src_configure() {
econf $(use_enable static-libs static)
}
src_compile() {
default
emake -C doc mhash.html
}
src_install() {
default
use static-libs || rm -f "${ED}"usr/lib*/libmhash.la
dodoc AUTHORS ChangeLog NEWS README THANKS TODO \
doc/{example.c,skid2-authentication}
dohtml doc/mhash.html
}

View File

@ -0,0 +1,83 @@
# ChangeLog for app-crypt/shash
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/shash/ChangeLog,v 1.25 2012/05/04 11:10:25 aballier Exp $
04 May 2012; Alexis Ballier <aballier@gentoo.org> shash-0.2.6-r1.ebuild:
keyword ~amd64-fbsd
06 Feb 2011; Mart Raudsepp <leio@gentoo.org> shash-0.2.6-r1.ebuild:
Drop to ~mips
01 Jan 2010; Christian Faulhammer <fauli@gentoo.org>
shash-0.2.6-r1.ebuild:
Transfer Prefix keywords
07 Jun 2008; Sven Wegener <swegener@gentoo.org>
+files/shash-0.2.6-binary-files.patch, shash-0.2.6-r1.ebuild:
Add patch to fix -c with binary files, bug #182417.
04 Feb 2008; Fabian Groffen <grobian@gentoo.org> shash-0.2.6-r1.ebuild:
Dropped ppc-macos keyword, see you in prefix
22 Oct 2006; Diego Pettenò <flameeyes@gentoo.org> shash-0.2.6-r1.ebuild:
Add ~x86-fbsd keyword.
19 Oct 2006; Roy Marples <uberlord@gentoo.org> shash-0.2.6-r1.ebuild:
Added ~sparc-fbsd keyword.
13 Oct 2006; Sven Wegener <swegener@gentoo.org>
files/shash.bash-completion, shash-0.2.6-r1.ebuild:
Touchup bash completion support.
29 Sep 2006; Daniel Drake <dsd@gentoo.org> shash-0.2.6-r1.ebuild:
Fix RDEPEND
21 May 2006; Markus Rothe <corsair@gentoo.org> shash-0.2.6-r1.ebuild:
Stable on ppc64
19 Jan 2006; Gustavo Zacarias <gustavoz@gentoo.org> shash-0.2.6-r1.ebuild:
Stable on sparc
21 Dec 2005; Markus Rothe <corsair@gentoo.org> shash-0.2.6-r1.ebuild:
Added ~ppc64; bug #116186
20 Dec 2005; Gustavo Zacarias <gustavoz@gentoo.org> shash-0.2.6-r1.ebuild:
Keyworded ~sparc wrt #116186
20 Sep 2005; Fabian Groffen <grobian@gentoo.org> shash-0.2.6-r1.ebuild:
Marking ~ppc-macos (bug #106613)
15 Nov 2004; Sven Wegener <swegener@gentoo.org> shash-0.2.6-r1.ebuild:
Added missing inherit eutils for epatch which was dropped accidently.
Thanks to Daniel Webert <rockoo@rockoo.homelinux.org> in bug #71224.
06 Nov 2004; Sven Wegener <swegener@gentoo.org> shash-0.2.6-r1.ebuild,
-shash-0.2.6.ebuild:
Marked stable on x86. Removed old ebuild.
17 Oct 2004; David Holm <dholm@gentoo.org> shash-0.2.6-r1.ebuild:
Added to ~ppc.
*shash-0.2.6-r1 (27 Sep 2004)
27 Sep 2004; Sven Wegener <swegener@gentoo.org>
+files/shash.bash-completion, +shash-0.2.6-r1.ebuild:
Revision bump. Added support for bash-completion. Thanks to James Rowe
<jnrowe@ukfsn.org> in bug #64493.
24 Sep 2004; Sven Wegener <swegener@gentoo.org>
+files/0.2.6-manpage-fixes.patch, shash-0.2.6.ebuild:
Added a patch that corrects some manpage errors. Closes bug #64491.
15 Jul 2004; Sven Wegener <swegener@gentoo.org> metadata.xml:
Taking over primary maintainership.
07 Jun 2004; Daniel Black <dragonheart@gentoo.org> +metadata.xml,
shash-0.2.6.ebuild:
Added DEPENDS. marked stable
*shash-0.2.6 (20 Jan 2004)
20 Jan 2004; Robin H. Johnson <robbat2@gentoo.org> shash-0.2.6.ebuild:
initial commit, ebuild by Sven Wegener <sven.wegener@stealer.net>, bug #38108

View File

@ -0,0 +1,7 @@
AUX 0.2.6-manpage-fixes.patch 1451 SHA256 12619eaba8cfd99917658139306fb8c0ff087f10ce05bd285aa3c8e66f88e317 SHA512 10dbcfa52a7df57ef68dc58f21e1b2931adf0479697e13f99c56ccfbbd1c79188751d1ce7e2b160261170a678a4130a71a6b531820aa59e4ddbd131d5d9cb551 WHIRLPOOL 11b4d1aaf6feae4dd00d7abfbe704fcb8ba665d0de46de724098fa57b60960060c6df7661c9e3735c9ccd5865ab6c66cad3527395fec4279822e114dc59ab92d
AUX shash-0.2.6-binary-files.patch 898 SHA256 e06660afe1afb338bf4f209d39ac33c412ecc6fb22feec684c0a7b5fd80f46a6 SHA512 47f299097b8a9907ccfe2f877c42ab8f76f02546211643573796b378d67dd7941518341f8fd07e646c1aa11a665ddbca6ae113a4d58f6995007d9b5aec171d8b WHIRLPOOL 0bbe198601dd7b1ce55719936d8670975505b9b31baa68f0663d25c9988026587b8bc1dcfb18d188b598298715f57716c334b875ac6ff5075ff3a79dc121e7f9
AUX shash.bash-completion 993 SHA256 5f3d0bb5a202ba3365c81945ec2f0318893f1f372f11c8b4d7bc524888d8d228 SHA512 6b646fc5de7bc8279d49541f7375f6212e314fef3c9bc2a992d38e0b78031d9476ae396bdd527f39380bdb0342c8d27e46e4a01e3c1f5877c3fbd8ad49346393 WHIRLPOOL 5e693b82a794a482365797d1f72adca00015a5302b6b12da0ab91dd06bc15357eee9942766c000278af6b5574f3f5f564cba1d37189b0c0571615f796912286c
DIST shash-0.2.6.tar.gz 105641 SHA256 6abf13eb1c3b4b6ef0f07e5425d10ed2abaad1d08c327647feb3506e76ced9dc SHA512 340a59bd16b3e5069a076b56f8fe24d2306a6ddd5e6ad564c5e17a992d8e279a7109ba39bd5caa8438a0e85b4f94cb0878228f7aefe38221ff6efa80df64086b WHIRLPOOL 8b809f5fddc98def54907fee8af424937c747f341dd0eaa6fd0c1057858c4dce7d117dfbc729cdd951c53e68a363d3339e9db4e2de1677620bbb9a94a810e8a5
EBUILD shash-0.2.6-r1.ebuild 1132 SHA256 de0bbe1e34fdbdfcbe20ae64c754131ec441bac5bfbb736b1c4c1e0656085bb9 SHA512 abab36a0b801170c1eee08582167af93502e0eb7ac10d50772ceab27d42027a9da5fc7622cb86efa0cdfeecf33476acac377927a5e6c86119ef77fb93e74668a WHIRLPOOL 99fe7d97008e0d7ebf3d1b7022ed82650498795478dfda914c977354aec801a1f43364cc0383edcbb9da44c5812951e476f239f89551c5263e52cce78e536ecd
MISC ChangeLog 2999 SHA256 c1bd4c5b454a8d2dc70f53d1e7e614970405d73e75aeacab5b421a30043a7438 SHA512 f2fe710715274c8405465c0726d963c034db46ef0279bd8441544981fef26770bf45cbf119a98563692f766de860935bedddd69153d5ec8a0c48c87428a9cbc1 WHIRLPOOL 15a2ab9ec1c325fee7171f1527cb3929607a667c5ad10f7a87b87bb13493b4ba4260775abe1a585ee4c5993e29361ff98a7f7d300c39c78d1406278ccc23dff9
MISC metadata.xml 423 SHA256 c700cda1fdc97248759b263259be6f558ebaaca339417f227bce282e1bfaf0f0 SHA512 24491d06bd39df6f4ad1d85a121f2a62b65db3a1b12db01ad9f390c752a8663483828dbd467d6eea8f8d585c2acd621c91d4a6c75b073cf9ae57fe72c0bb3b92 WHIRLPOOL f59da151f4f0f459f69004df56da565079a31ed08b2833fea10cd66a431a4cf0f45a5664622751ba8d801c45c900a498d34876c5fcb270f8ff53cf6a01a5ad42

View File

@ -0,0 +1,30 @@
diff -pruN shash-0.2.6/doc/shash.1 shash-0.2.6-r1/doc/shash.1
--- shash-0.2.6/doc/shash.1 2004-09-18 09:51:04.004647112 +0100
+++ shash-0.2.6-r1/doc/shash.1 2004-09-18 09:57:26.062565480 +0100
@@ -31,7 +31,7 @@ Because of this shash also supports HMAC
a mechanism for message authentication using cryptographic hash functions.
So shash can use a key with a hash algorithm to produce hashes that can only
be verified with the key. This way you can securely check (i.e. you are sure
-that nobody can modify the mac, without beeing detected)
+that nobody can modify the mac, without being detected)
if files in a filesystem were altered.
If the list of files and digests, that shash produces, is stored as
@@ -72,7 +72,7 @@ Suppress some not critical warnings.
.TP
.B \-b
Use binary mode. In unix environment, only difference between this and
-the normal mode is an asterix preceding the filename in the output.
+the normal mode is an asterisk preceding the filename in the output.
.TP
.B \-c
Check the checksum of all files listed in
@@ -94,7 +94,7 @@ Enter the keyword via the command line.
keyword instead of prompting for it. Keep in mind that someone
may see the command you are executing and so your key.
.TP
-.B \-c --config FILE
+.B \-i --config FILE
Use the specified configuration file. The default is .shashrc
in your home directory. The format of the configuration
file is the same as the parameters. An example file is:

View File

@ -0,0 +1,34 @@
--- shash-0.2.6/src/shash.c
+++ shash-0.2.6/src/shash.c
@@ -631,11 +631,11 @@
if (nosalt == FALSE && hmac == 1) {
if (sscanf
- (linebuf, "%s %s %s\n", hexbuffer, buffer,
- buffer2) < 2) {
+ (linebuf, "%s %s *%s\n", hexbuffer, buffer,
+ buffer2) != 3) {
if (sscanf
- (linebuf, "%s %s *%s\n", hexbuffer,
- buffer, buffer2) < 2)
+ (linebuf, "%s %s %s\n", hexbuffer,
+ buffer, buffer2) != 3)
continue;
}
@@ -648,11 +648,11 @@
key = pass2key(algorithm, keymode_buffer, &keylen, password, plen);
} else {
- if (sscanf(linebuf, "%s %s\n", buffer, buffer2) ==
- 0) {
+ if (sscanf(linebuf, "%s *%s\n", buffer, buffer2) !=
+ 2) {
if (sscanf
- (linebuf, "%s *%s\n", buffer,
- buffer2) == 0)
+ (linebuf, "%s %s\n", buffer,
+ buffer2) != 2)
continue;
}

View File

@ -0,0 +1,40 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/shash/files/shash.bash-completion,v 1.2 2006/10/13 15:00:13 swegener Exp $
#
# shash(1) completion.
have shash &&
_shash() {
local cur prev
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
prev=${COMP_WORDS[COMP_CWORD-1]}
case "${prev}" in
-c|--config)
_filedir
return 0 ;;
-o|--keymode)
COMPREPLY=( $( compgen -W "$( shash --listkeygen | tail -n +2 )" \
-- ${cur} ) )
return ;;
-a|--algorithm)
COMPREPLY=( $( compgen -W "$( shash --list )" \
-- ${cur} ) )
return ;;
*)
;;
esac
COMPREPLY=( $( compgen -W '-V -q -m -d -c -b -t -o -i -a -l -k -h -v \
-L \
--verbose --quiet --nosalt --time --hmac --doublecheck \
--check --binary --text --keymode --config --algorithm \
--list --key --listkeygen --help --version --license' \
-- ${cur} ) )
_filedir
return 0
} &&
complete -F _shash ${filenames} shash

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>swegener@gentoo.org</email>
<name>Sven Wegener</name>
<description>primary maintainer</description>
</maintainer>
<longdescription>shash is a command-line interface for libmhash and is used to generate or check digests or MACs of files.</longdescription>
</pkgmetadata>

View File

@ -0,0 +1,36 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/shash/shash-0.2.6-r1.ebuild,v 1.24 2012/05/04 11:10:25 aballier Exp $
inherit bash-completion eutils
DESCRIPTION="Generate or check digests or MACs of files"
HOMEPAGE="http://mcrypt.hellug.gr/shash/"
SRC_URI="ftp://mcrypt.hellug.gr/pub/mcrypt/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="static"
DEPEND=">=app-crypt/mhash-0.8.18-r1"
RDEPEND="${DEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PV}-manpage-fixes.patch
epatch "${FILESDIR}"/${P}-binary-files.patch
}
src_compile() {
econf $(use_enable static static-link) || die "econf failed"
emake || die "emake failed"
}
src_install() {
make install DESTDIR="${D}" || die "install failed"
dodoc AUTHORS ChangeLog INSTALL NEWS doc/sample.shashrc doc/FORMAT
dobashcompletion "${FILESDIR}"/shash.bash-completion ${PN}
}

View File

@ -0,0 +1,127 @@
# ChangeLog for app-misc/zisofs-tools
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/zisofs-tools/ChangeLog,v 1.35 2013/02/18 21:57:11 zmedico Exp $
18 Feb 2013; Zac Medico <zmedico@gentoo.org> zisofs-tools-1.0.8.ebuild:
Add ~arm-linux keyword.
19 Oct 2010; Mart Raudsepp <leio@gentoo.org> zisofs-tools-1.0.6.ebuild:
Drop to ~mips
01 Jan 2010; Christian Faulhammer <fauli@gentoo.org>
zisofs-tools-1.0.8.ebuild:
Transfer Prefix keywords
*zisofs-tools-1.0.8 (31 Oct 2008)
31 Oct 2008; Daniel Drake <dsd@gentoo.org> +zisofs-tools-1.0.8.ebuild:
Version bump, thanks to Arfrever Frehtes Taifersar Arahesis in bug #190737
03 Feb 2008; Fabian Groffen <grobian@gentoo.org>
zisofs-tools-1.0.6.ebuild:
Dropped ppc-macos keyword, see you in prefix
06 Nov 2007; Raúl Porcel <armin76@gentoo.org> zisofs-tools-1.0.6.ebuild:
alpha stable
25 Aug 2007; Steve Dibb <beandog@gentoo.org> zisofs-tools-1.0.6.ebuild:
amd64 stable
13 May 2007; Joshua Kinard <kumba@gentoo.org> zisofs-tools-1.0.6.ebuild:
Stable on mips.
12 May 2007; Daniel Drake <dsd@gentoo.org> metadata.xml:
Move from kernel to kernel-misc herd
15 Apr 2007; Markus Rothe <corsair@gentoo.org> zisofs-tools-1.0.6.ebuild:
Stable on ppc64
11 Apr 2007; Jeroen Roovers <jer@gentoo.org> zisofs-tools-1.0.6.ebuild:
Stable for HPPA too.
06 Apr 2007; Tobias Scherbaum <dertobi123@gentoo.org>
zisofs-tools-1.0.6.ebuild:
ppc stable
12 Mar 2007; Raúl Porcel <armin76@gentoo.org> zisofs-tools-1.0.6.ebuild:
x86 stable
23 Jan 2007; Gustavo Zacarias <gustavoz@gentoo.org>
zisofs-tools-1.0.6.ebuild:
Stable on sparc
25 Nov 2006; Charlie Shepherd <masterdriverz@gentoo.org> metadata.xml:
Kernel's got this one...
19 Jul 2005; Kito <kito@gentoo.org> zisofs-tools-1.0.6.ebuild:
~ppc-macos keyword
02 Jan 2005; Ciaran McCreesh <ciaranm@gentoo.org> :
Change encoding to UTF-8 for GLEP 31 compliance
*zisofs-tools-1.0.6 (27 Oct 2004)
27 Oct 2004; Mike Frysinger <vapier@gentoo.org>
+zisofs-tools-1.0.6.ebuild:
Version bump for Joseph Cheek.
05 Oct 2004; Pieter Van den Abeele <pvdabeel@gentoo.org>
zisofs-tools-1.0.3.ebuild, zisofs-tools-1.0.4.ebuild:
Masked zisofs-tools-1.0.4.ebuild stable for ppc
05 Oct 2004; Pieter Van den Abeele <pvdabeel@gentoo.org>
zisofs-tools-1.0.3.ebuild:
Masked zisofs-tools-1.0.3.ebuild stable for ppc
18 Jul 2004; Tom Gall <tgall@gentoo.org> zisofs-tools-1.0.4-r1.ebuild:
marked stable for ppc64 livecd use, bug #57487
16 Jul 2004; Guy Martin <gmsoft@gentoo.org> zisofs-tools-1.0.4-r1.ebuild:
Marked stable on hppa.
20 Jun 2004; <pyrania@gentoo.org> zisofs-tools-1.0.3.ebuild,
zisofs-tools-1.0.4.ebuild:
Added IUSE.
04 May 2004; Bryan Østergaard <kloeri@gentoo.org> zisofs-tools-1.0.3.ebuild,
zisofs-tools-1.0.4-r1.ebuild, zisofs-tools-1.0.4.ebuild:
Stable on alpha.
25 Apr 2004; Aron Griffis <agriffis@gentoo.org> zisofs-tools-1.0.3.ebuild,
zisofs-tools-1.0.4.ebuild:
Add die following econf for bug 48950
17 Apr 2004; Bryan Østergaard <kloeri@gentoo.org>
zisofs-tools-1.0.4-r1.ebuild:
Add ~alpha to keywords.
05 Feb 2004; <gustavoz@gentoo.org> zisofs-tools-1.0.4-r1.ebuild:
marked stable on sparc
23 Jan 2004; <gustavoz@gentoo.org> zisofs-tools-1.0.4-r1.ebuild:
keyworded ~sparc for catalyst
25 May 2003; Martin Holzer <mholzer@gentoo.org> zisofs-tools-1.0.3.ebuild,
zisofs-tools-1.0.4-r1.ebuild, zisofs-tools-1.0.4.ebuild:
now uses mirror://kernel
*zisofs-tools-1.0.4-r1 (15 Jan 2003)
15 Jan 2003; Mike Frysinger <vapier@gentoo.org> :
Added static support #13796 sascha-gentoo-bugzilla@silbe.org (Sascha Silbe).
*zisofs-tools-1.0.4 (17 Nov 2002)
08 Dec 2002; Pieter Van den Abeele <pvdabeel@gentoo.org> :
Added ppc keyword - used this for ppc livecd
17 Nov 2002; Mike Frysinger <vapier@gentoo.org> :
Version bump
*zisofs-tools-1.0.3 (06 May 2002)
08 Dec 2002; Pieter Van den Abeele <pvdabeel@gentoo.org> :
Added ppc keyword - used this for ppc livecd
06 June 2002; Donny Davies <woodchip@gentoo.org> :
Freshly baked port.

View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
DIST zisofs-tools-1.0.6.tar.bz2 53138 SHA256 a7d80141be2b52df99423cc617ad9dab8e81b1c79ca437789bbb1a9433524e3e SHA512 7928c40bd421853adde1da874a574ccaaa2b9ac3cb6d0fe241763bb64f66717dd83991f92bad093a1044e35f72f84643568af4a4999cfe62b85777df24fc0b96 WHIRLPOOL eb3a0ed0394bba3a2dc4f51aba0a2071b4f69db997f46f577550afbe296dbbede564641cc29d5b8d032ab8e1cc9ea90abbc3f43aa33984d564def8aadfd3eddf
DIST zisofs-tools-1.0.8.tar.bz2 52968 SHA256 ae4e53e4914934d41660248fb59d3c8761f1f1fd180d5ec993c17ddb3afd04f3 SHA512 2c50bb73428c065e02e95def81950e1f64aff3cec0a4d74ee91ddbf4c15b81a423d8a128a4abc2e11aeb866b9d5f67f55019f7ae884c9e1a8b013ed3133db50d WHIRLPOOL 05b59ba8423be7ac1f257ce6106f32be00cc62ffd2891c8f620e65b5eda28611aefd073f3832088bfcb42309d92e0b8866ed219b273b9d9431af928e032a061f
EBUILD zisofs-tools-1.0.6.ebuild 730 SHA256 44161728360055f329e510b4d1e799f14d7c2688a9feb0f9475f40d45352a576 SHA512 71744d28e1faccfd35375e90f8378205c9a6cd53bebc5ed9ce397de9834d27f63789937a2c042bb2036f3e62fae2eb61c833f1fcc926d010ff056e78520716ab WHIRLPOOL 861314e6c429cecdb168eaa37e3c859183ec46bf309572fe3e752a1f9547a76061007f4daf6e06e95f4c63d98b4117c1ca7e0a559a543cb8cc4f0e828d993225
EBUILD zisofs-tools-1.0.8.ebuild 789 SHA256 eb3e5112656a45485fc8d21a3d284518829e19d7c4c66579e8dc8547c0fade4b SHA512 0d8e712a103acd048d5fd1c4d907b17051803faa725d138ae3b53595d42300ce0dfda0471bba6430ea2b304a1793883dabeccc39788d1afba50646c6ba450676 WHIRLPOOL 1363653312fba625e50d168714ea8b4b5e42c244dd7fd061e1772bd8d275ddf93560bd636f69cb27db2fdfaefd97534ad37e302944ce9e21c7ab02b10f191cee
MISC ChangeLog 4149 SHA256 e848890b2cdbf160f86503e34927ac093d308b9580222ec8e8caa0417a9443b3 SHA512 14d8d33831bb963d164d2aa7becc94f92d8f2cf651ff3ea29117ec562622b0ee758631e21110223785e315928c6a56bdacc2640ccc69910fe46f41ff74f633b3 WHIRLPOOL fd4d616bd872f31e260637c6c377ee831a70db65b1793587cffd554bcf0b58557933d5ae2d6e8de974c107e4f987cef3a04e21e53e9b8d74422438ac710585df
MISC metadata.xml 164 SHA256 3b1b59f5a5a6e3a377f6124aa855936c20e9b883f7bbbef0210fdef022da34f3 SHA512 84cc2f3f5b3ece35f020ba9a4b29f5ea9082ee201bc21b5a386c5f8a44a685967a27e2af96e3f6addc19ee0b6ee80e116f2afab770ec4e57b994f97c3d1161ea WHIRLPOOL 9b0f6952edfd4458f8d8f2186f89ae04ecc2b8de5eb819626c8da501dbac0ab3bcf8606b10a896582b2c5ab9de015f174ca4962f98fd4772759046213767e13e
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
iEYEAREIAAYFAlEio7gACgkQ/ejvha5XGaMdLACghJmo2MsFzVw6YLeR336ThbN3
GNYAn09hpeHYBuSsjUn+xnf35GVpWrpQ
=Iair
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>kernel-misc</herd>
</pkgmetadata>

View File

@ -0,0 +1,27 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/zisofs-tools/zisofs-tools-1.0.6.ebuild,v 1.16 2010/10/19 06:22:55 leio Exp $
inherit flag-o-matic
DESCRIPTION="User utilities for zisofs"
HOMEPAGE="http://www.kernel.org/pub/linux/utils/fs/zisofs/"
SRC_URI="mirror://kernel/linux/utils/fs/zisofs/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
IUSE="static"
DEPEND=">=sys-libs/zlib-1.1.4"
src_compile() {
use static && append-ldflags -static
econf || die
emake || die
}
src_install() {
emake INSTALLROOT="${D}" install || die
dodoc CHANGES INSTALL README
}

View File

@ -0,0 +1,27 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/zisofs-tools/zisofs-tools-1.0.8.ebuild,v 1.3 2013/02/18 21:57:11 zmedico Exp $
inherit flag-o-matic
DESCRIPTION="User utilities for zisofs"
HOMEPAGE="http://www.kernel.org/pub/linux/utils/fs/zisofs/"
SRC_URI="mirror://kernel/linux/utils/fs/zisofs/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos"
IUSE="static"
DEPEND=">=sys-libs/zlib-1.1.4"
src_compile() {
use static && append-ldflags -static
econf || die
emake || die
}
src_install() {
emake INSTALLROOT="${D}" install || die
dodoc CHANGES INSTALL README
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,28 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
DIST catalyst-2.0.11.tar.bz2 909191 SHA256 6fed91ac834179f676905f6fa544fb642b18b95ec1c89420432ef05fb9fde7da SHA512 935d42f72bc5e181ef0eff4862e414a52914b7ac82d6e75c2d80c1a4d055b428da2c2d255c35cf851bcb729aca1a9c8ee0301923433d4c7fedb03bc1f06d5ca3 WHIRLPOOL e91a01b2d0f17e2d7c371d05362a658e7ddc7142982ae84efb71db9327e933227651d6efaeb8c86b0d5305e350632a2adac0ff81fed888588fe6078cb049ab7b
DIST catalyst-2.0.12.1.tar.bz2 908119 SHA256 91bc71a0140da9977fda4969a137a25ed04c3dd6fa2c038404806b7f562eda62 SHA512 1f448b4c849567d5097246f0c6e140e25781b0c3f093bec8c616cf83d2ad86af5dbebfaf4bafd1e240db41c3213e0f3ea9da77a22b1ee73480a0d1c39d6d0a8f WHIRLPOOL 9c2c3f491611c0cb99694aabb24af1f2b45576e6c5f056335fb5f028a93e9d91e1beba652bf7aaf3a93f54a1abb6bdb827624659845dfb01f8ea4bee6868e48e
DIST catalyst-2.0.12.2.tar.bz2 907893 SHA256 411d531b6de8c8c1bc9fa9502af3a4882e94e9db8b911bb48e4a0fcfc1efe7e8 SHA512 12349f6249363a94a72a71d05b2fe6ee13593b5ea67e1cb9a054c5ece896ff68f89d1af6341b98238ba6a6510e2737f81dcc2606649c10681235315663ab04ae WHIRLPOOL 1769a78f615c8e0eec2167dd9d6ab873e24801ecb5e4634037898933c6f5a1dbb189d967a628be6f8811f6769eadc91c5003ddbb6bd58eb05efbbd5110f740c7
DIST catalyst-2.0.12.tar.bz2 907241 SHA256 ef7cf9d8559f1cf94aabd67c5c3c1b99316e0534a4483a67a02b2db2cf6617a0 SHA512 77993afcaf2eec08e0c831c3d68e3578aab9a7f9805f00c67dd8f8db722e2eb59164373d42ebbf2396e02188d8508a327555a4b55490a150e706a8d3381f8177 WHIRLPOOL 4f713610b5929e5e724ca376f755b023fbb79260d1c7610962d875dc0ff7d1d72808849838bc06dfa38664ae5caa186ab2b8bb903389a238162d1acf190e0b4e
EBUILD catalyst-2.0.11.ebuild 3426 SHA256 05cd804d7837cbb31f1ebce9d79f7ab20b861da1d05ed991c5fdca278a9b8942 SHA512 26578853ffa00ec28c478d6e76da6d699e96563f6c62dc95a32a13d2ea655cbc578c28948cb5aebfea3a98a6391b173d10701a075b591aaf8d6d3c94cc6f9b4d WHIRLPOOL 5a3670e5a312f5141aa447fac19a50f573e8ce240fb06951ce4b0f1567b5928547b6bdcd1b5996e534d1f76e4343a4fec86e144ec43c79e48c19daea216d3034
EBUILD catalyst-2.0.12.1.ebuild 3441 SHA256 cbe9ee7f167ea2bc3f5a4f90a47355755490213b486ced1a1ca00ec16b194be8 SHA512 25a2596d4c32529858d76f31c5a5aa38d58974207b989585767ffc515381c2601f9dc3e2f3752daf1730c140c6aa0edf3044d83ed344eca7f05dd3a16c2ee17e WHIRLPOOL caad9bb5ae8d59c60ab8369f3624cd21dff8aba015fcc6188be7e2f37cc51a56d5c85320d1a0feb5b8972aeea7c91e8fd633d032aab35ea2b7a509f068fc8966
EBUILD catalyst-2.0.12.2.ebuild 3736 SHA256 bda9c0d131c90dde2b24b5693962f416218b2c967a1c5b02329774edc16a2a82 SHA512 19f5082202b564a1620265f72b62cf1efa1820f507466fb1373f3bf68cb2023b66e1dff8b1a72a075865c34495f8385d870dbf3d3f3f2c6d2e08a09c8b022316 WHIRLPOOL f7ed38f756c31b636cfd3ad47bf0befc129373859c02d0caf50cb827dd1b8c78e5f3293f1896964581622d4a55f0559094046aa2ba6f59ae6d1f64e65f7afde0
EBUILD catalyst-2.0.12.ebuild 3439 SHA256 f124207b5d99ab7c719e72469c6c7a6a5f1c2e40ad8fa30b7fe284b324cdb828 SHA512 f970ec1d7fb140594a831c285c4bf69e16608adbff2a47e4e16f27b480825fec11941e79ef722c4bdb725df31e77a88b27ba1c38901a313ba558351cc787739a WHIRLPOOL d8f871a0901da4eaa5ecab088f341c0db21a5241536384774d7afad7e6e809373d88e54b59176b0f904e51355e861c21cf515517702d2fc1100c55e997be5cf8
EBUILD catalyst-2.9999.ebuild 1209 SHA256 2eb2859679e692eba0a4fce2acab02e4444e9e1fd32abda6d095234c845ba681 SHA512 d67f3a216666ad2595fecb7e9638732b43d8116972c7e565958b1cd848bbf42b1c44a8fbc50a6749aa41a6702e745834f2712234dd62bc0359ae558d8dff361c WHIRLPOOL b9ef2c75e2917a397c8aa087ea2523081b8ee2b6b74c194d973d7011ca126420d5db8d1211602e20499fef51182ee0e3a26562e0978bfe7a44d62a8ee0ae7d1a
EBUILD catalyst-9999.ebuild 3523 SHA256 9f09f75bf57ad52b8bf486de913ee87db02b9e116cb1556f1d0776a321933381 SHA512 dcb70e60ebf28ad4ecfd56cc209d795ec02ba90408b79a52e2e2a499b4c98f3fa6526559f3a0ab38812ea4288009e79b3a7639e040435c1c0dd1b45144ebe6ce WHIRLPOOL dcec0a0be2f23357fe2158d1138217617c233de9b564131366d808843dd65a64b42aef021bab8c988ccfe880cecf4881a975cfdcca02080823dc33add8a811e0
MISC ChangeLog 56703 SHA256 cac564422e3e39c26ecdb78397d2f12e64709d6733dac585c6455ebbcb12012c SHA512 97f1c8abe5ec0e0ae1679708e81c60a7ca2b304da82096be9e724e5552174ec77169968e4d2417d05e1bf5d04a81b466c8ec58893aa6839e2bfc6b84aa283fff WHIRLPOOL 5f94cbffccf0a44a321c0d48260c937925abe73480c8147e054f187d232d71059a26ac8be06d8bd70cc3fa38458b2ae561140f029dd8341e1d46c38fe1c623da
MISC metadata.xml 302 SHA256 52c8f4e22cff9920c9a11b04ee574b28cd6fbf71a8212259d9d19122e0ddf955 SHA512 bd15682c5b17cde8b9b0ffe4559839eb2419b070659c388a21f3bba6b94d4a3861cbb76328c996c107e5fde9e4e4fd09e1f54d99e6d76df1ef25f1f52e557a2a WHIRLPOOL 5951e4d293d63763c8d1b922b6e7a88b3b8c3db0a3db5cae5bd4457920a8e14c338ff202d5d074e1893facddc8a04b83d83cefd6bd13d65029364d905f2c1450
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
iQF8BAEBCABmBQJRvdKRXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4Njg4RkQxQ0M3MUMxQzA0RUFFQTQyMzcy
MjE0RDkwQTAxNEYxN0NCAAoJECIU2QoBTxfL2QYH/16UgHdJdQivaiay2oN0XicE
0Tz3qFKzqxylHUHZ+s6UGX94YIBMbl50eIcYWzlVNS6+anjQvZ8+SihCDtcmsnF/
dDqwjp8me/YsQRfKLs1avof7EykRx2g9HxfBima0OcCIBqcIFXFlWw2Xxer23phG
Ri288E45KTZmxzg8/bMKLC5u+9hPC+h07Oy54pJVIlL4kLOsa2VbxAiu5Jhh2B1u
qBC/1TnNyftm6T3OMX+GWKU3ajMSjcvkGB1fT3Vj00IQMNWgFdKz3LpS3/dposJs
VgAqZot14w3kXqssLqwljsv8hdo5fRvbm5rlkS8iwMZc2Gy8LNKaeRNttYhTogs=
=BGZa
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,107 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/catalyst/catalyst-2.0.11.ebuild,v 1.2 2012/09/25 06:12:02 jmbsvicetto Exp $
# catalyst-9999 -> latest Git
# catalyst-2.9999 -> catalyst_2 branch from Git
# catalyst-3.9999 -> catalyst_3 branch from Git
# catalyst-VER -> normal catalyst release
EAPI=3
PYTHON_DEPEND="2"
if [[ ${PV} == *9999* ]]; then
EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/catalyst.git"
inherit git-2
SRC_URI=""
S="${WORKDIR}/${PN}"
KEYWORDS=""
case ${PV} in
2.9999) EGIT_BRANCH="catalyst_2" ;;
3.9999) EGIT_BRANCH="catalyst_3" ;;
esac
else
SRC_URI="mirror://gentoo/${P}.tar.bz2
http://dev.gentoo.org/~jmbsvicetto/distfiles/${P}.tar.bz2"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
fi
inherit eutils multilib python
DESCRIPTION="release metatool used for creating releases based on Gentoo Linux"
HOMEPAGE="http://www.gentoo.org/proj/en/releng/catalyst/"
LICENSE="GPL-2"
SLOT="0"
RESTRICT=""
IUSE="ccache kernel_linux"
DEPEND="app-text/asciidoc"
RDEPEND="app-crypt/shash
virtual/cdrtools
ccache? ( dev-util/ccache )
ia64? ( sys-fs/dosfstools )
kernel_linux? ( app-misc/zisofs-tools >=sys-fs/squashfs-tools-2.1 )"
pkg_setup() {
if use ccache ; then
einfo "Enabling ccache support for catalyst."
else
ewarn "By default, ccache support for catalyst is disabled."
ewarn "If this is not what you intended,"
ewarn "then you should add ccache to your USE."
fi
echo
einfo "The template spec files are now installed by default. You can find"
einfo "them under /usr/share/doc/${PF}/examples"
einfo "and they are considered to be the authorative source of information"
einfo "on catalyst."
echo
if [[ ${PV} == *9999* ]]; then
ewarn "The ${EGIT_BRANCH:-master} branch (what you get with this ${PV} ebuild) contains"
ewarn "work-in-progress code. Be aware that it's likely that it will not"
ewarn "be in a working state at any given point. Please do not file bugs"
ewarn "until you have posted on the gentoo-catalyst mailing list and we"
ewarn "have asked you to do so."
fi
python_set_active_version 2
}
src_prepare() {
python_convert_shebangs 2 catalyst modules/catalyst_lock.py
}
src_install() {
insinto /usr/$(get_libdir)/${PN}
exeinto /usr/$(get_libdir)/${PN}
doexe catalyst || die "copying catalyst"
if [[ ${PV} == 3.9999* ]]; then
doins -r modules files || die "copying files"
else
doins -r arch modules livecd || die "copying files"
fi
for x in targets/*; do
exeinto /usr/$(get_libdir)/${PN}/$x
doexe $x/* || die "copying ${x}"
done
make_wrapper catalyst /usr/$(get_libdir)/${PN}/catalyst
insinto /etc/catalyst
doins files/catalyst.conf files/catalystrc || die "copying configuration"
insinto /usr/share/doc/${PF}/examples
doins examples/* || die
dodoc README ChangeLog AUTHORS
doman files/catalyst.1
# Here is where we actually enable ccache
use ccache && \
dosed 's:options="autoresume kern:options="autoresume ccache kern:' \
/etc/catalyst/catalyst.conf
dosed "s:/usr/lib/catalyst:/usr/$(get_libdir)/catalyst:" \
/etc/catalyst/catalyst.conf
}
pkg_postinst() {
einfo "You can find more information about catalyst by checking out the"
einfo "catalyst project page at:"
einfo "http://www.gentoo.org/proj/en/releng/catalyst/index.xml"
echo
}

View File

@ -0,0 +1,108 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/catalyst/catalyst-2.0.12.1.ebuild,v 1.2 2012/11/02 16:06:10 zerochaos Exp $
# catalyst-9999 -> latest Git
# catalyst-2.9999 -> catalyst_2 branch from Git
# catalyst-3.9999 -> catalyst_3 branch from Git
# catalyst-VER -> normal catalyst release
EAPI=3
PYTHON_DEPEND="2"
if [[ ${PV} == *9999* ]]; then
EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/catalyst.git"
inherit git-2
SRC_URI=""
S="${WORKDIR}/${PN}"
KEYWORDS=""
case ${PV} in
2.9999) EGIT_BRANCH="catalyst_2" ;;
3.9999) EGIT_BRANCH="catalyst_3" ;;
esac
else
SRC_URI="mirror://gentoo/${P}.tar.bz2
http://dev.gentoo.org/~zerochaos/distfiles/${P}.tar.bz2"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
fi
inherit eutils multilib python
DESCRIPTION="release metatool used for creating releases based on Gentoo Linux"
HOMEPAGE="http://www.gentoo.org/proj/en/releng/catalyst/"
LICENSE="GPL-2"
SLOT="0"
RESTRICT=""
IUSE="ccache kernel_linux"
DEPEND="app-text/asciidoc"
RDEPEND="app-arch/lbzip2
app-crypt/shash
virtual/cdrtools
ccache? ( dev-util/ccache )
ia64? ( sys-fs/dosfstools )
kernel_linux? ( app-misc/zisofs-tools >=sys-fs/squashfs-tools-2.1 )"
pkg_setup() {
if use ccache ; then
einfo "Enabling ccache support for catalyst."
else
ewarn "By default, ccache support for catalyst is disabled."
ewarn "If this is not what you intended,"
ewarn "then you should add ccache to your USE."
fi
echo
einfo "The template spec files are now installed by default. You can find"
einfo "them under /usr/share/doc/${PF}/examples"
einfo "and they are considered to be the authorative source of information"
einfo "on catalyst."
echo
if [[ ${PV} == *9999* ]]; then
ewarn "The ${EGIT_BRANCH:-master} branch (what you get with this ${PV} ebuild) contains"
ewarn "work-in-progress code. Be aware that it's likely that it will not"
ewarn "be in a working state at any given point. Please do not file bugs"
ewarn "until you have posted on the gentoo-catalyst mailing list and we"
ewarn "have asked you to do so."
fi
python_set_active_version 2
}
src_prepare() {
python_convert_shebangs 2 catalyst modules/catalyst_lock.py
}
src_install() {
insinto /usr/$(get_libdir)/${PN}
exeinto /usr/$(get_libdir)/${PN}
doexe catalyst || die "copying catalyst"
if [[ ${PV} == 3.9999* ]]; then
doins -r modules files || die "copying files"
else
doins -r arch modules livecd || die "copying files"
fi
for x in targets/*; do
exeinto /usr/$(get_libdir)/${PN}/$x
doexe $x/* || die "copying ${x}"
done
make_wrapper catalyst /usr/$(get_libdir)/${PN}/catalyst
insinto /etc/catalyst
doins files/catalyst.conf files/catalystrc || die "copying configuration"
insinto /usr/share/doc/${PF}/examples
doins examples/* || die
dodoc README ChangeLog AUTHORS
doman files/catalyst.1
# Here is where we actually enable ccache
use ccache && \
dosed 's:options="autoresume kern:options="autoresume ccache kern:' \
/etc/catalyst/catalyst.conf
dosed "s:/usr/lib/catalyst:/usr/$(get_libdir)/catalyst:" \
/etc/catalyst/catalyst.conf
}
pkg_postinst() {
einfo "You can find more information about catalyst by checking out the"
einfo "catalyst project page at:"
einfo "http://www.gentoo.org/proj/en/releng/catalyst/index.xml"
echo
}

View File

@ -0,0 +1,112 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/catalyst/catalyst-2.0.12.2.ebuild,v 1.3 2013/01/31 15:01:43 jer Exp $
# catalyst-9999 -> latest Git
# catalyst-2.9999 -> catalyst_2 branch from Git
# catalyst-3.9999 -> catalyst_3 branch from Git
# catalyst-VER -> normal catalyst release
EAPI=3
PYTHON_DEPEND="2"
if [[ ${PV} == *9999* ]]; then
EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/catalyst.git"
inherit git-2
SRC_URI=""
S="${WORKDIR}/${PN}"
KEYWORDS=""
case ${PV} in
2.9999) EGIT_BRANCH="catalyst_2" ;;
3.9999) EGIT_BRANCH="catalyst_3" ;;
esac
else
SRC_URI="mirror://gentoo/${P}.tar.bz2
http://dev.gentoo.org/~zerochaos/distfiles/${P}.tar.bz2"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
fi
inherit eutils multilib python
DESCRIPTION="release metatool used for creating releases based on Gentoo Linux"
HOMEPAGE="http://www.gentoo.org/proj/en/releng/catalyst/"
LICENSE="GPL-2"
SLOT="0"
RESTRICT=""
IUSE="ccache kernel_linux"
DEPEND="app-text/asciidoc"
RDEPEND="app-arch/lbzip2
app-crypt/shash
virtual/cdrtools
ccache? ( dev-util/ccache )
ia64? ( sys-fs/dosfstools )
kernel_linux? ( app-misc/zisofs-tools >=sys-fs/squashfs-tools-2.1 )"
pkg_setup() {
if use ccache ; then
einfo "Enabling ccache support for catalyst."
else
ewarn "By default, ccache support for catalyst is disabled."
ewarn "If this is not what you intended,"
ewarn "then you should add ccache to your USE."
fi
echo
einfo "The template spec files are now installed by default. You can find"
einfo "them under /usr/share/doc/${PF}/examples"
einfo "and they are considered to be the authorative source of information"
einfo "on catalyst."
echo
if [[ ${PV} == *9999* ]]; then
ewarn "The ${EGIT_BRANCH:-master} branch (what you get with this ${PV} ebuild) contains"
ewarn "work-in-progress code. Be aware that it's likely that it will not"
ewarn "be in a working state at any given point. Please do not file bugs"
ewarn "until you have posted on the gentoo-catalyst mailing list and we"
ewarn "have asked you to do so."
fi
python_set_active_version 2
}
src_prepare() {
python_convert_shebangs 2 catalyst modules/catalyst_lock.py
}
src_install() {
insinto /usr/$(get_libdir)/${PN}
exeinto /usr/$(get_libdir)/${PN}
doexe catalyst || die "copying catalyst"
if [[ ${PV} == 3.9999* ]]; then
doins -r modules files || die "copying files"
else
doins -r arch modules livecd || die "copying files"
fi
for x in targets/*; do
exeinto /usr/$(get_libdir)/${PN}/$x
doexe $x/* || die "copying ${x}"
done
make_wrapper catalyst /usr/$(get_libdir)/${PN}/catalyst
insinto /etc/catalyst
doins files/catalyst.conf files/catalystrc || die "copying configuration"
insinto /usr/share/doc/${PF}/examples
doins examples/* || die
dodoc README ChangeLog AUTHORS
doman files/catalyst.1 files/catalyst-spec.5
# Here is where we actually enable ccache
use ccache && \
dosed 's:options="autoresume kern:options="autoresume ccache kern:' \
/etc/catalyst/catalyst.conf
dosed "s:/usr/lib/catalyst:/usr/$(get_libdir)/catalyst:" \
/etc/catalyst/catalyst.conf
}
pkg_postinst() {
einfo "You can find more information about catalyst by checking out the"
einfo "catalyst project page at:"
einfo "http://www.gentoo.org/proj/en/releng/catalyst/index.xml"
echo
elog "update_seed syntax has changed to make it more flexible."
elog "This is an optional setting supported by stage1 that runs an emerge"
elog "command on the seed stage before starting the stage1 build. (example:"
elog "'--update dev-libs/mpfr dev-libs/mpc dev-libs/gmp')"
}

View File

@ -0,0 +1,108 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/catalyst/catalyst-2.0.12.ebuild,v 1.2 2012/11/02 16:06:10 zerochaos Exp $
# catalyst-9999 -> latest Git
# catalyst-2.9999 -> catalyst_2 branch from Git
# catalyst-3.9999 -> catalyst_3 branch from Git
# catalyst-VER -> normal catalyst release
EAPI=3
PYTHON_DEPEND="2"
if [[ ${PV} == *9999* ]]; then
EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/catalyst.git"
inherit git-2
SRC_URI=""
S="${WORKDIR}/${PN}"
KEYWORDS=""
case ${PV} in
2.9999) EGIT_BRANCH="catalyst_2" ;;
3.9999) EGIT_BRANCH="catalyst_3" ;;
esac
else
SRC_URI="mirror://gentoo/${P}.tar.bz2
http://dev.gentoo.org/~zerochaos/distfiles/${P}.tar.bz2"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
fi
inherit eutils multilib python
DESCRIPTION="release metatool used for creating releases based on Gentoo Linux"
HOMEPAGE="http://www.gentoo.org/proj/en/releng/catalyst/"
LICENSE="GPL-2"
SLOT="0"
RESTRICT=""
IUSE="ccache kernel_linux"
DEPEND="app-text/asciidoc"
RDEPEND="app-arch/lbzip2
app-crypt/shash
virtual/cdrtools
ccache? ( dev-util/ccache )
ia64? ( sys-fs/dosfstools )
kernel_linux? ( app-misc/zisofs-tools >=sys-fs/squashfs-tools-2.1 )"
pkg_setup() {
if use ccache ; then
einfo "Enabling ccache support for catalyst."
else
ewarn "By default, ccache support for catalyst is disabled."
ewarn "If this is not what you intended,"
ewarn "then you should add ccache to your USE."
fi
echo
einfo "The template spec files are now installed by default. You can find"
einfo "them under /usr/share/doc/${PF}/examples"
einfo "and they are considered to be the authorative source of information"
einfo "on catalyst."
echo
if [[ ${PV} == *9999* ]]; then
ewarn "The ${EGIT_BRANCH:-master} branch (what you get with this ${PV} ebuild) contains"
ewarn "work-in-progress code. Be aware that it's likely that it will not"
ewarn "be in a working state at any given point. Please do not file bugs"
ewarn "until you have posted on the gentoo-catalyst mailing list and we"
ewarn "have asked you to do so."
fi
python_set_active_version 2
}
src_prepare() {
python_convert_shebangs 2 catalyst modules/catalyst_lock.py
}
src_install() {
insinto /usr/$(get_libdir)/${PN}
exeinto /usr/$(get_libdir)/${PN}
doexe catalyst || die "copying catalyst"
if [[ ${PV} == 3.9999* ]]; then
doins -r modules files || die "copying files"
else
doins -r arch modules livecd || die "copying files"
fi
for x in targets/*; do
exeinto /usr/$(get_libdir)/${PN}/$x
doexe $x/* || die "copying ${x}"
done
make_wrapper catalyst /usr/$(get_libdir)/${PN}/catalyst
insinto /etc/catalyst
doins files/catalyst.conf files/catalystrc || die "copying configuration"
insinto /usr/share/doc/${PF}/examples
doins examples/* || die
dodoc README ChangeLog AUTHORS
doman files/catalyst.1
# Here is where we actually enable ccache
use ccache && \
dosed 's:options="autoresume kern:options="autoresume ccache kern:' \
/etc/catalyst/catalyst.conf
dosed "s:/usr/lib/catalyst:/usr/$(get_libdir)/catalyst:" \
/etc/catalyst/catalyst.conf
}
pkg_postinst() {
einfo "You can find more information about catalyst by checking out the"
einfo "catalyst project page at:"
einfo "http://www.gentoo.org/proj/en/releng/catalyst/index.xml"
echo
}

View File

@ -0,0 +1,50 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/catalyst/catalyst-2.9999.ebuild,v 1.11 2013/06/16 14:58:39 dolsen Exp $
EAPI="5"
PYTHON_COMPAT=( python{2_6,2_7} )
inherit distutils-r1 git-2
DESCRIPTION="Release metatool used for creating releases based on Gentoo Linux."
HOMEPAGE="http://www.gentoo.org/proj/en/releng/catalyst/"
EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/catalyst.git"
EGIT_MASTER="master"
EGIT_BRANCH="3.0"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
IUSE="ccache doc kernel_linux"
KEYWORDS=""
DEPEND="app-text/asciidoc
>=dev-python/snakeoil-0.5.2"
RDEPEND="app-arch/lbzip2
app-crypt/shash
virtual/cdrtools
ccache? ( dev-util/ccache )
ia64? ( sys-fs/dosfstools )
kernel_linux? ( app-misc/zisofs-tools >=sys-fs/squashfs-tools-2.1 )"
python_prepare_all() {
python_export_best
echo VERSION="${PV}" "${PYTHON}" setup.py set_version
VERSION="${PV}" "${PYTHON}" setup.py set_version
}
python_compile_all() {
# build the man pages and docs
emake
}
python_install_all(){
distutils-r1_python_install_all
if use doc; then
dodoc files/HOWTO.html files/docbook-xsl.css
fi
}

View File

@ -0,0 +1,110 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/catalyst/catalyst-9999.ebuild,v 1.28 2013/04/13 07:04:57 mattst88 Exp $
# catalyst-9999 -> latest Git
# catalyst-2.9999 -> catalyst_2 branch from Git
# catalyst-3.9999 -> catalyst_3 branch from Git
# catalyst-VER -> normal catalyst release
EAPI=3
PYTHON_DEPEND="2"
if [[ ${PV} == *9999* ]]; then
EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/catalyst.git"
inherit git-2
SRC_URI=""
S="${WORKDIR}/${PN}"
KEYWORDS=""
case ${PV} in
2.9999) EGIT_BRANCH="catalyst_2" ;;
3.9999) EGIT_BRANCH="catalyst_3" ;;
esac
else
SRC_URI="mirror://gentoo/${P}.tar.bz2
http://dev.gentoo.org/~jmbsvicetto/distfiles/${P}.tar.bz2"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
fi
inherit eutils multilib python
DESCRIPTION="release metatool used for creating releases based on Gentoo Linux"
HOMEPAGE="http://www.gentoo.org/proj/en/releng/catalyst/"
LICENSE="GPL-2"
SLOT="0"
RESTRICT=""
IUSE="ccache kernel_linux"
DEPEND="app-text/asciidoc"
RDEPEND="app-arch/lbzip2
app-crypt/shash
virtual/cdrtools
x86? ( >=sys-boot/syslinux-3.72 )
amd64? ( >=sys-boot/syslinux-3.72 )
ccache? ( dev-util/ccache )
ia64? ( sys-fs/dosfstools )
kernel_linux? ( app-misc/zisofs-tools >=sys-fs/squashfs-tools-2.1 )"
pkg_setup() {
if use ccache ; then
einfo "Enabling ccache support for catalyst."
else
ewarn "By default, ccache support for catalyst is disabled."
ewarn "If this is not what you intended,"
ewarn "then you should add ccache to your USE."
fi
echo
einfo "The template spec files are now installed by default. You can find"
einfo "them under /usr/share/doc/${PF}/examples"
einfo "and they are considered to be the authorative source of information"
einfo "on catalyst."
echo
if [[ ${PV} == *9999* ]]; then
ewarn "The ${EGIT_BRANCH:-master} branch (what you get with this ${PV} ebuild) contains"
ewarn "work-in-progress code. Be aware that it's likely that it will not"
ewarn "be in a working state at any given point. Please do not file bugs"
ewarn "until you have posted on the gentoo-catalyst mailing list and we"
ewarn "have asked you to do so."
fi
python_set_active_version 2
}
src_prepare() {
python_convert_shebangs 2 catalyst modules/catalyst_lock.py
}
src_install() {
insinto /usr/$(get_libdir)/${PN}
exeinto /usr/$(get_libdir)/${PN}
doexe catalyst || die "copying catalyst"
if [[ ${PV} == 3.9999* ]]; then
doins -r modules files || die "copying files"
else
doins -r arch modules livecd || die "copying files"
fi
for x in targets/*; do
exeinto /usr/$(get_libdir)/${PN}/$x
doexe $x/* || die "copying ${x}"
done
make_wrapper catalyst /usr/$(get_libdir)/${PN}/catalyst
insinto /etc/catalyst
doins files/catalyst.conf files/catalystrc || die "copying configuration"
insinto /usr/share/doc/${PF}/examples
doins examples/* || die
dodoc README AUTHORS
doman files/catalyst.1 files/catalyst-spec.5
# Here is where we actually enable ccache
use ccache && \
dosed 's:options="autoresume kern:options="autoresume ccache kern:' \
/etc/catalyst/catalyst.conf
dosed "s:/usr/lib/catalyst:/usr/$(get_libdir)/catalyst:" \
/etc/catalyst/catalyst.conf
}
pkg_postinst() {
einfo "You can find more information about catalyst by checking out the"
einfo "catalyst project page at:"
einfo "http://www.gentoo.org/proj/en/releng/catalyst/index.xml"
echo
}

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>livecd</herd>
<maintainer>
<email>catalyst@gentoo.org</email>
</maintainer>
<use>
<flag name="ccache">Enables ccache support</flag>
</use>
</pkgmetadata>

View File

@ -0,0 +1,21 @@
# ChangeLog for virtual/cdrtools
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/virtual/cdrtools/ChangeLog,v 1.5 2013/02/19 02:56:00 zmedico Exp $
19 Feb 2013; Zac Medico <zmedico@gentoo.org> cdrtools-0.ebuild:
Add ~arm-linux keyword.
20 Sep 2012; Alexis Ballier <aballier@gentoo.org> cdrtools-0.ebuild:
keyword ~amd64-fbsd
11 Jan 2010; Ulrich Mueller <ulm@gentoo.org> cdrtools-0.ebuild:
Set empty HOMEPAGE.
15 Dec 2009; Jonathan Callen <abcd@gentoo.org> cdrtools-0.ebuild:
Add prefix keywords (~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux
~x86-linux ~sparc-solaris ~x86-solaris)
*cdrtools-0 (28 May 2009)
28 May 2009; Samuli Suominen <ssuominen@gentoo.org> +cdrtools-0.ebuild:
Initial commit.

View File

@ -0,0 +1,13 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
EBUILD cdrtools-0.ebuild 593 SHA256 b6d3284e027ba6aa8913549bf3ba41daccf3d64a3725d5b34b21eb1a708949ea SHA512 c7d9ef029ddbc36754fc985a3bad5c99594dc7e51ca6564f8bd34c498622c59741336f1bcdc3926f08976f1ba2ee7f1d7998ef3088dc27f554c9e09fb404b918 WHIRLPOOL c3fed99b901913c7685e938c3da88d9c10fefb0bcf909c699cb05b499f1ffc5d927b2711ca4b2252d97a8422988826f8ce3eb30cef6ec59e4e9eb46c8d700df2
MISC ChangeLog 786 SHA256 a266b283cdb505abef8cd5af3f6315af97a87cfd2f1feca4d511b22f797d7032 SHA512 26320390c54ae54209189cfda9c14ebd3d66b18c9154452aca821e2e088a73e074122a59b14550f7d5ffeb01c3d6c3653715cc989833e9ab63f29ca9e0840a22 WHIRLPOOL 4515402c42e270360c2ae7b61023e90fc2014a6d4469c7e1e47e5855f911bd0c45d0844733b0e48a6a9416640f2c4214a18eac314b8f5690fc1092c0789b0c8d
MISC metadata.xml 167 SHA256 e63e128685e2c6da2eacfda6e91e700c1eb6f62cc2172ab64eada2ae71431ef2 SHA512 23b89532b34ac7118832402c25d8afc189132e0da2182fcc5ce5e69ba2f0c170226599ae981be2bbc3fd8474baf707af58f6292b89221339aa8b4a2265ade0cd WHIRLPOOL d8505f9121d7531f43f9730eff208d89eec443f6612cfa288f2f6137e75ac40faf0e11a0e89f23111e3f16dda6178c406025cce3edd399f03d9bfd5a46c76e3b
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
iEYEAREIAAYFAlEi6cEACgkQ/ejvha5XGaOodQCg4EAztHejM7j2JY3QZs5Zx6b/
vBcAoMil4qcNKBG5jM0J/Cl1D/Rfr61k
=SsFD
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,15 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/virtual/cdrtools/cdrtools-0.ebuild,v 1.5 2013/02/19 02:56:00 zmedico Exp $
DESCRIPTION="Virtual for command-line recorders cdrtools and cdrkit"
HOMEPAGE=""
SRC_URI=""
LICENSE=""
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
IUSE=""
RDEPEND="|| ( app-cdr/cdrtools app-cdr/cdrkit )"
DEPEND=""

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>media-optical</herd>
</pkgmetadata>