1 |
commit: 5c68894fca6f28e6d88e1f94d68040783f046212 |
2 |
Author: Julian Ospald <hasufell <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 20 13:02:03 2015 +0000 |
4 |
Commit: Julian Ospald <hasufell <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 20 13:02:03 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c68894f |
7 |
|
8 |
app-arch/libarchive: add libressl support |
9 |
|
10 |
app-arch/libarchive/libarchive-3.1.2-r2.ebuild | 93 ++++++++++++++++++++++++++ |
11 |
1 file changed, 93 insertions(+) |
12 |
|
13 |
diff --git a/app-arch/libarchive/libarchive-3.1.2-r2.ebuild b/app-arch/libarchive/libarchive-3.1.2-r2.ebuild |
14 |
new file mode 100644 |
15 |
index 0000000..01329bb |
16 |
--- /dev/null |
17 |
+++ b/app-arch/libarchive/libarchive-3.1.2-r2.ebuild |
18 |
@@ -0,0 +1,93 @@ |
19 |
+# Copyright 1999-2014 Gentoo Foundation |
20 |
+# Distributed under the terms of the GNU General Public License v2 |
21 |
+# $Id$ |
22 |
+ |
23 |
+EAPI=5 |
24 |
+inherit eutils libtool multilib toolchain-funcs |
25 |
+ |
26 |
+DESCRIPTION="BSD tar command" |
27 |
+HOMEPAGE="http://www.libarchive.org/" |
28 |
+SRC_URI="http://www.libarchive.org/downloads/${P}.tar.gz" |
29 |
+ |
30 |
+LICENSE="BSD BSD-2 BSD-4 public-domain" |
31 |
+SLOT="0/13" |
32 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
33 |
+IUSE="acl +bzip2 +e2fsprogs expat +iconv kernel_linux libressl +lzma lzo nettle static-libs xattr +zlib" |
34 |
+ |
35 |
+RDEPEND=" |
36 |
+ !libressl? ( dev-libs/openssl:0 ) |
37 |
+ libressl? ( dev-libs/libressl ) |
38 |
+ acl? ( virtual/acl ) |
39 |
+ bzip2? ( app-arch/bzip2 ) |
40 |
+ expat? ( dev-libs/expat ) |
41 |
+ !expat? ( dev-libs/libxml2 ) |
42 |
+ iconv? ( virtual/libiconv ) |
43 |
+ kernel_linux? ( |
44 |
+ xattr? ( sys-apps/attr ) |
45 |
+ ) |
46 |
+ lzma? ( app-arch/xz-utils ) |
47 |
+ lzo? ( >=dev-libs/lzo-2 ) |
48 |
+ nettle? ( dev-libs/nettle ) |
49 |
+ zlib? ( sys-libs/zlib )" |
50 |
+DEPEND="${RDEPEND} |
51 |
+ kernel_linux? ( |
52 |
+ virtual/os-headers |
53 |
+ e2fsprogs? ( sys-fs/e2fsprogs ) |
54 |
+ )" |
55 |
+ |
56 |
+DOCS="NEWS README" |
57 |
+ |
58 |
+src_prepare() { |
59 |
+ epatch "${FILESDIR}"/${P}-CVE-2013-0211.patch |
60 |
+ elibtoolize |
61 |
+} |
62 |
+ |
63 |
+src_configure() { |
64 |
+ export ac_cv_header_ext2fs_ext2_fs_h=$(usex e2fsprogs) #354923 |
65 |
+ |
66 |
+ # We disable lzmadec because we support the newer liblzma from xz-utils |
67 |
+ # and not liblzmadec with this version. |
68 |
+ econf \ |
69 |
+ $(use_enable static-libs static) \ |
70 |
+ --enable-bsdtar=$(tc-is-static-only && echo static || echo shared) \ |
71 |
+ --enable-bsdcpio=$(tc-is-static-only && echo static || echo shared) \ |
72 |
+ $(use_enable xattr) \ |
73 |
+ $(use_enable acl) \ |
74 |
+ $(use_with zlib) \ |
75 |
+ $(use_with bzip2 bz2lib) \ |
76 |
+ --without-lzmadec \ |
77 |
+ $(use_with iconv) \ |
78 |
+ $(use_with lzma) \ |
79 |
+ $(use_with lzo lzo2) \ |
80 |
+ $(use_with nettle) \ |
81 |
+ $(use_with !expat xml2) \ |
82 |
+ $(use_with expat) |
83 |
+} |
84 |
+ |
85 |
+src_test() { |
86 |
+ # Replace the default src_test so that it builds tests in parallel |
87 |
+ emake check |
88 |
+} |
89 |
+ |
90 |
+src_install() { |
91 |
+ default |
92 |
+ |
93 |
+ # Libs.private: should be used from libarchive.pc instead |
94 |
+ prune_libtool_files |
95 |
+ |
96 |
+ # Create tar symlink for FreeBSD |
97 |
+ if ! use prefix && [[ ${CHOST} == *-freebsd* ]]; then |
98 |
+ dosym bsdtar /usr/bin/tar |
99 |
+ echo '.so bsdtar.1' > "${T}"/tar.1 |
100 |
+ doman "${T}"/tar.1 |
101 |
+ # We may wish to switch to symlink bsdcpio to cpio too one day |
102 |
+ fi |
103 |
+} |
104 |
+ |
105 |
+pkg_preinst() { |
106 |
+ preserve_old_lib /usr/$(get_libdir)/${PN}$(get_libname 12) |
107 |
+} |
108 |
+ |
109 |
+pkg_postinst() { |
110 |
+ preserve_old_lib_notify /usr/$(get_libdir)/${PN}$(get_libname 12) |
111 |
+} |