Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/squashfs-tools/
Date: Thu, 14 Mar 2019 14:47:41
Message-Id: 1552574850.ca69e5aeffc594a0c34edf2de59d75fc719ce8f2.jer@gentoo
1 commit: ca69e5aeffc594a0c34edf2de59d75fc719ce8f2
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 14 14:46:59 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 14 14:47:30 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca69e5ae
7
8 Revert "sys-fs/squashfs-tools: drop vulnerable wrt bug #552484"
9
10 This reverts commit 9f732c236cf298e463539a60e94060d5903209f9.
11
12 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
13
14 sys-fs/squashfs-tools/Manifest | 2 ++
15 sys-fs/squashfs-tools/squashfs-tools-3.2_p2.ebuild | 39 ++++++++++++++++++++++
16 sys-fs/squashfs-tools/squashfs-tools-3.4.ebuild | 39 ++++++++++++++++++++++
17 3 files changed, 80 insertions(+)
18
19 diff --git a/sys-fs/squashfs-tools/Manifest b/sys-fs/squashfs-tools/Manifest
20 index 97b189ae5c9..bc3c4685807 100644
21 --- a/sys-fs/squashfs-tools/Manifest
22 +++ b/sys-fs/squashfs-tools/Manifest
23 @@ -2,4 +2,6 @@ DIST squashfs-tools_4.3-11.debian.tar.xz 27108 BLAKE2B 948a69f79fbec6af2467a5645
24 DIST squashfs-tools_4.3-3.debian.tar.xz 15252 BLAKE2B 5273eb8007192190786513f49be68eded38a7acae80d0c84067e8d239d53304a79be454cc4970af0d1c1eff6e58b75403201497dfd18d175f9d5aae5e0102834 SHA512 ab1a707e04e92697549f7e7c667c5da835d39d5e2cb791e47bf549b232e7173e6981c33a87cd373c4a7a4815e4af1b7294fe13e54422a5ccdcff90904bfc51ae
25 DIST squashfs-tools_4.3-6.debian.tar.xz 19060 BLAKE2B 4fc28fae1da2bd1bfbf774acd4f4b29e382760078efd16c655a9178633a58e1ab15fb0203a626dc6353df8ff6860f7da5f9369fd920cf773dd53f8b90cffe13c SHA512 e2f64cdcfe01696980a45d4d6ec50e82626cb3e25e8c98d63b68c9754f519171fcfc4586b4ef88104e28275e1daf94a23f5b7dd08d37fe6e8417b054954de1e7
26 DIST squashfs-tools_4.3-7.debian.tar.xz 19612 BLAKE2B 7894b6fa27e7e46aec82b680a1ce521c895436ccb1cafcfd3d95e09f56546e08539a7c152854ee14e9516e217339617d25e68c0cc1a4c41b3bdd689caeefa94a SHA512 88df37e0c13483c5591f925156628b3ae27279f56d2453f7f1f82558da1bc3338e23e9481d704b785a40846c6dedc6b0a0e1dd2ea70fe26ea2f1e855fd6d6fdf
27 +DIST squashfs3.2-r2.tar.gz 314764 BLAKE2B 55d2f38572263c4b1ec704ed7a07794400e904e260e316e399511851d35ab0f7e1834eba605e8739d1b8f6b5a56512570d36196d21743d05842e958b3d80e368 SHA512 983f1fa966c15fb4929eaaf2d88401aac72f6d04e8c5523bd46397bc28928ff13b638e0e96bc09650627449c37f6a654ffa727445f1e9ca13cdc9de4fc43012f
28 +DIST squashfs3.4.tar.gz 352660 BLAKE2B f48b1f0399d3fde75b8f625fa4130d04772ed9e6d8dc179e7105a7770a5bd211a7aa5c7d5d621efedc54707b37a622351efa65291c03cd84d049ec4a1094773a SHA512 5e126ea468271f54c62d473a04a355169514f2668b4dc0de4138a8ef2a6e633d373454e7b85c1c684b875d9dfc8afb17c05548dd5062d05f847ffef8e624d9fe
29 DIST squashfs4.3.tar.gz 182550 BLAKE2B f56ff33a505f7d60cced11224526bfce003bc06184ad7e8cb9cd08b14854164da8d2ecc64694d44085c46bcfa3aaa85939c97820415345053f7956af04066fdb SHA512 854ed7acc99920f24ecf11e0da807e5a2a162eeda55db971aba63a03f0da2c13b20ec0564a906c4b0e415bd8258b273a10208c7abc0704f2ceea773aa6148a79
30
31 diff --git a/sys-fs/squashfs-tools/squashfs-tools-3.2_p2.ebuild b/sys-fs/squashfs-tools/squashfs-tools-3.2_p2.ebuild
32 new file mode 100644
33 index 00000000000..33c9be8386e
34 --- /dev/null
35 +++ b/sys-fs/squashfs-tools/squashfs-tools-3.2_p2.ebuild
36 @@ -0,0 +1,39 @@
37 +# Copyright 1999-2015 Gentoo Foundation
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=5
41 +inherit toolchain-funcs
42 +
43 +MY_PV=${PV/_p/-r}
44 +DESCRIPTION="Tool for creating compressed filesystem type squashfs"
45 +HOMEPAGE="http://squashfs.sourceforge.net/"
46 +SRC_URI="mirror://sourceforge/squashfs/squashfs${MY_PV}.tar.gz"
47 +
48 +LICENSE="GPL-2"
49 +SLOT="3.0" # squashfs filesystem version
50 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
51 +
52 +RDEPEND="sys-libs/zlib"
53 +DEPEND="${RDEPEND}"
54 +
55 +S=${WORKDIR}/squashfs${MY_PV}/squashfs-tools
56 +
57 +src_prepare() {
58 + sed -i \
59 + -e 's:-O2:$(CFLAGS):' \
60 + -e '/-lz/s:$: $(LDFLAGS):' \
61 + Makefile || die
62 +
63 + echo "struct dir_info; `grep '^int dir_scan2' mksquashfs.c`;" >> global.h
64 +}
65 +
66 +src_compile() {
67 + emake CC="$(tc-getCC)"
68 +}
69 +
70 +src_install() {
71 + newbin mksquashfs mksquashfs-${SLOT}
72 + newbin unsquashfs unsquashfs-${SLOT}
73 + cd ..
74 + dodoc README ACKNOWLEDGEMENTS CHANGES PERFORMANCE.README README-3.2
75 +}
76
77 diff --git a/sys-fs/squashfs-tools/squashfs-tools-3.4.ebuild b/sys-fs/squashfs-tools/squashfs-tools-3.4.ebuild
78 new file mode 100644
79 index 00000000000..ef2cd80bfd2
80 --- /dev/null
81 +++ b/sys-fs/squashfs-tools/squashfs-tools-3.4.ebuild
82 @@ -0,0 +1,39 @@
83 +# Copyright 1999-2015 Gentoo Foundation
84 +# Distributed under the terms of the GNU General Public License v2
85 +
86 +EAPI=5
87 +inherit toolchain-funcs
88 +
89 +MY_PV=${PV/_p/-r}
90 +DESCRIPTION="Tool for creating compressed filesystem type squashfs"
91 +HOMEPAGE="http://squashfs.sourceforge.net/"
92 +SRC_URI="mirror://sourceforge/squashfs/squashfs${MY_PV}.tar.gz"
93 +
94 +LICENSE="GPL-2"
95 +SLOT="3.1" # squashfs filesystem version
96 +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
97 +
98 +RDEPEND="sys-libs/zlib"
99 +DEPEND="${RDEPEND}"
100 +
101 +S=${WORKDIR}/squashfs${MY_PV}/squashfs-tools
102 +
103 +src_prepare() {
104 + sed -i \
105 + -e 's:-O2:$(CFLAGS):' \
106 + -e '/-lz/s:$: $(LDFLAGS):' \
107 + Makefile || die
108 +
109 + sed -i -e 's:get_nprocs():sysconf(_SC_NPROCESSORS_ONLN):' *.c
110 +}
111 +
112 +src_compile() {
113 + emake CC="$(tc-getCC)"
114 +}
115 +
116 +src_install() {
117 + newbin mksquashfs mksquashfs-${SLOT}
118 + newbin unsquashfs unsquashfs-${SLOT}
119 + cd ..
120 + dodoc README ACKNOWLEDGEMENTS CHANGES PERFORMANCE.README README
121 +}