mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 14:06:58 +02:00
app-arch/{gzip,libarchive,pigz,sharutils,unzip,xz-utils,zip}: import from portage
Just copying the ebuilds from portage/ so hopefully no functional changes. BUG=chromium-os:26016 TEST=`cbuildbot arm-generic-full` works TEST=build_packages+build_image for x86-alex boots Change-Id: Iadc0bdda902ca1226690638b06783d31755c1ba0 Reviewed-on: https://gerrit.chromium.org/gerrit/15498 Reviewed-by: David James <davidjames@chromium.org> Commit-Ready: Mike Frysinger <vapier@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
parent
71b7d0b4a5
commit
9642336aec
1
sdk_container/src/third_party/portage-stable/app-arch/gzip/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/app-arch/gzip/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
||||
DIST gzip-1.4.tar.gz 907411 RMD160 a74f782960387e3f05373acc258becb564eda82d SHA1 1d398dac6a7920a7de6e2685fe472a840eb2ce6e SHA256 d166cfd3da380da1bd535633e8890bfb5664f9e68870a611d1dc01a3e9f711ee
|
@ -0,0 +1,11 @@
|
||||
--- Makefile.in
|
||||
+++ Makefile.in
|
||||
@@ -926,7 +926,7 @@
|
||||
rm -f "$$dest" && \
|
||||
case $@ in \
|
||||
install-exec-hook) \
|
||||
- ln "$$source" "$$dest" || $(LN_S) "$$source" "$$dest";; \
|
||||
+ $(LN_S) "$$source" "$$dest";; \
|
||||
esac \
|
||||
) || exit; \
|
||||
done; \
|
48
sdk_container/src/third_party/portage-stable/app-arch/gzip/gzip-1.4.ebuild
vendored
Normal file
48
sdk_container/src/third_party/portage-stable/app-arch/gzip/gzip-1.4.ebuild
vendored
Normal file
@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-arch/gzip/gzip-1.4.ebuild,v 1.6 2010/02/11 19:19:32 armin76 Exp $
|
||||
|
||||
inherit eutils flag-o-matic
|
||||
|
||||
DESCRIPTION="Standard GNU compressor"
|
||||
HOMEPAGE="http://www.gnu.org/software/gzip/"
|
||||
SRC_URI="ftp://alpha.gnu.org/gnu/gzip/${P}.tar.gz
|
||||
mirror://gnu/gzip/${P}.tar.gz
|
||||
mirror://gentoo/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="nls pic static"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}
|
||||
nls? ( sys-devel/gettext )"
|
||||
PROVIDE="virtual/gzip"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
#epatch "${FILESDIR}"/${PN}-1.3.5-rsync.patch
|
||||
epatch "${FILESDIR}"/${PN}-1.3.8-install-symlinks.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
use static && append-flags -static
|
||||
# avoid text relocation in gzip
|
||||
use pic && export DEFS="NO_ASM"
|
||||
econf || die
|
||||
emake || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install DESTDIR="${D}" || die
|
||||
dodoc ChangeLog NEWS README THANKS TODO
|
||||
docinto txt
|
||||
dodoc algorithm.doc gzip.doc
|
||||
|
||||
# keep most things in /usr, just the fun stuff in /
|
||||
dodir /bin
|
||||
mv "${D}"/usr/bin/{gunzip,gzip,uncompress,zcat} "${D}"/bin/ || die
|
||||
sed -e 's:/usr::' -i "${D}"/bin/gunzip || die
|
||||
}
|
1
sdk_container/src/third_party/portage-stable/app-arch/libarchive/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/app-arch/libarchive/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
||||
DIST libarchive-2.8.1.tar.gz 1438009 RMD160 3028dfe7fd306d3246f61894587f4e26fd5cee73 SHA1 7054dacbc37af865e665065d92f7093bedc311f4 SHA256 bb15c5694c2d7909b235a88c8c4fc5f5beb01931db77981e815da2dfa564a1ca
|
@ -0,0 +1,66 @@
|
||||
commit 18311d1be81d93350a406b641d501e3ced5a2662
|
||||
Author: joerg.sonnenberger <joerg.sonnenberger@2e22974a-a639-11dd-bc7a-dd6b2ed99ab5>
|
||||
Date: Sun Feb 21 14:23:09 2010 +0000
|
||||
|
||||
Improve detection of SHA2 functions in OpenSSL to deal with ancient
|
||||
versions like in Mac OS X and FreeBSD 6.x. Fixes #65 and should fix #55.
|
||||
|
||||
|
||||
git-svn-id: http://libarchive.googlecode.com/svn/trunk@1940 2e22974a-a639-11dd-bc7a-dd6b2ed99ab5
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 45960ad..921ed87 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -281,30 +281,34 @@ if test "x$with_openssl" != "xno"; then
|
||||
AC_CHECK_HEADERS([openssl/sha.h])
|
||||
AC_SEARCH_LIBS([SHA1_Init], [crypto])
|
||||
fi
|
||||
- if test "$ac_cv_func_SHA256Init" != "yes" ||
|
||||
- test "$ac_cv_func_SHA384Init" != "yes" ||
|
||||
- test "$ac_cv_func_SHA512Init" != "yes"; then
|
||||
- if test "$ac_cv_func_SHA256_Init" != "yes" ||
|
||||
- test "$ac_cv_func_SHA384_Init" != "yes" ||
|
||||
- test "$ac_cv_func_SHA512_Init" != "yes"; then
|
||||
- AC_CHECK_HEADERS([openssl/sha.h])
|
||||
- # TODO: Does AC_SEARCH_LIBS support more than one function at once?
|
||||
- # This appears to always fail.
|
||||
- AC_SEARCH_LIBS([SHA256_Init SHA384_Init SHA512_Init], [crypto])
|
||||
-
|
||||
- # TODO: Actually test for these. Previously our C code did not
|
||||
- # test for these at all and just assumed availability. Now that
|
||||
- # the C code tests these macros we preserve previous behavior
|
||||
- # for the autotools build by hard-coding availability.
|
||||
- if test "$ac_cv_header_openssl_sha_h" = "yes"; then
|
||||
+
|
||||
+ AC_CHECK_HEADERS([openssl/sha.h])
|
||||
+ if test "$ac_cv_func_SHA256Init" != "yes" &&
|
||||
+ test "$ac_cv_func_SHA256_Init" != "yes"; then
|
||||
+ AC_SEARCH_LIBS([SHA256_Init], [crypto])
|
||||
+ if test "$ac_cv_func_SHA256_Init" = "yes" &&
|
||||
+ test "$ac_cv_header_openssl_sha_h" = "yes"; then
|
||||
AC_DEFINE(HAVE_OPENSSL_SHA256_INIT, 1,
|
||||
[Define to 1 if your openssl has the `SHA256_Init' function.])
|
||||
+ fi
|
||||
+ fi
|
||||
+ if test "$ac_cv_func_SHA384Init" != "yes" &&
|
||||
+ test "$ac_cv_func_SHA384_Init" != "yes"; then
|
||||
+ AC_SEARCH_LIBS([SHA384_Init], [crypto])
|
||||
+ if test "$ac_cv_func_SHA384_Init" = "yes" &&
|
||||
+ test "$ac_cv_header_openssl_sha_h" = "yes"; then
|
||||
AC_DEFINE(HAVE_OPENSSL_SHA384_INIT, 1,
|
||||
[Define to 1 if your openssl has the `SHA384_Init' function.])
|
||||
+ fi
|
||||
+ fi
|
||||
+ if test "$ac_cv_func_SHA512Init" != "yes" &&
|
||||
+ test "$ac_cv_func_SHA512_Init" != "yes"; then
|
||||
+ AC_SEARCH_LIBS([SHA512_Init], [crypto])
|
||||
+ if test "$ac_cv_func_SHA512_Init" = "yes" &&
|
||||
+ test "$ac_cv_header_openssl_sha_h" = "yes"; then
|
||||
AC_DEFINE(HAVE_OPENSSL_SHA512_INIT, 1,
|
||||
[Define to 1 if your openssl has the `SHA512_Init' function.])
|
||||
fi
|
||||
- fi
|
||||
fi
|
||||
fi
|
||||
|
92
sdk_container/src/third_party/portage-stable/app-arch/libarchive/libarchive-2.8.1.ebuild
vendored
Normal file
92
sdk_container/src/third_party/portage-stable/app-arch/libarchive/libarchive-2.8.1.ebuild
vendored
Normal file
@ -0,0 +1,92 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-arch/libarchive/libarchive-2.8.1.ebuild,v 1.1 2010/03/07 18:18:32 flameeyes Exp $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
inherit eutils libtool toolchain-funcs flag-o-matic autotools
|
||||
|
||||
DESCRIPTION="BSD tar command"
|
||||
HOMEPAGE="http://people.freebsd.org/~kientzle/libarchive"
|
||||
SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz
|
||||
http://people.freebsd.org/~kientzle/libarchive/src/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="static static-libs acl xattr kernel_linux +bzip2 +lzma +zlib"
|
||||
|
||||
COMPRESS_LIBS_DEPEND="lzma? ( app-arch/xz-utils )
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
zlib? ( sys-libs/zlib )"
|
||||
|
||||
RDEPEND="!dev-libs/libarchive
|
||||
dev-libs/openssl
|
||||
acl? ( virtual/acl )
|
||||
xattr? ( kernel_linux? ( sys-apps/attr ) )
|
||||
!static? ( ${COMPRESS_LIBS_DEPEND} )"
|
||||
DEPEND="${RDEPEND}
|
||||
${COMPRESS_LIBS_DEPEND}
|
||||
kernel_linux? ( sys-fs/e2fsprogs
|
||||
virtual/os-headers )"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${P}+openssl.patch"
|
||||
eautoreconf
|
||||
elibtoolize
|
||||
epunt_cxx
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
|
||||
if ! use static ; then
|
||||
myconf="--enable-bsdtar=shared --enable-bsdcpio=shared"
|
||||
fi
|
||||
|
||||
# force static libs for static binaries
|
||||
if use static && ! use static-libs; then
|
||||
myconf="${myconf} --enable-static"
|
||||
fi
|
||||
|
||||
# Check for need of this in 2.7.1 and later, on 2.7.0, -Werror was
|
||||
# added to the final release, but since it's done in the
|
||||
# Makefile.am we can just work it around this way.
|
||||
append-flags -Wno-error
|
||||
|
||||
# We disable lzmadec because we support the newer liblzma from xz-utils
|
||||
# and not liblzmadec with this version.
|
||||
econf --bindir=/bin \
|
||||
--enable-bsdtar --enable-bsdcpio \
|
||||
$(use_enable acl) $(use_enable xattr) \
|
||||
$(use_with zlib) \
|
||||
$(use_with bzip2 bz2lib) $(use_with lzma) \
|
||||
$(use_enable static-libs static) \
|
||||
--without-lzmadec \
|
||||
${myconf} \
|
||||
--disable-dependency-tracking || die "econf failed."
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Replace the default src_test so that it builds tests in parallel
|
||||
emake check || die "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "emake install failed."
|
||||
|
||||
# remove useless .a and .la files (only for non static compilation)
|
||||
use static-libs || find "${D}" \( -name '*.a' -or -name '*.la' \) -delete
|
||||
|
||||
# Create tar symlink for FreeBSD
|
||||
if [[ ${CHOST} == *-freebsd* ]]; then
|
||||
dosym bsdtar /bin/tar
|
||||
dosym bsdtar.1 /usr/share/man/man1/tar.1
|
||||
# We may wish to switch to symlink bsdcpio to cpio too one day
|
||||
fi
|
||||
|
||||
dodoc NEWS README
|
||||
dodir /$(get_libdir)
|
||||
mv "${D}"/usr/$(get_libdir)/*.so* "${D}"/$(get_libdir)
|
||||
gen_usr_ldscript libarchive.so
|
||||
}
|
1
sdk_container/src/third_party/portage-stable/app-arch/pigz/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/app-arch/pigz/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
||||
DIST pigz-2.1.6.tar.gz 52250 RMD160 715a90eefbb9d2f6dbd94ec7ee196a0ea7b32e7f SHA1 df05bdcc7b08246a3c1e6a2ab2edc7d0a45c0369 SHA256 2ff1ba812407848787fe6719fde4436cb7c490e6d8c6e721f4e4309caa5f3640
|
41
sdk_container/src/third_party/portage-stable/app-arch/pigz/pigz-2.1.6.ebuild
vendored
Normal file
41
sdk_container/src/third_party/portage-stable/app-arch/pigz/pigz-2.1.6.ebuild
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-arch/pigz/pigz-2.1.6.ebuild,v 1.1 2010/01/17 23:24:19 spatz Exp $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="A parallel implementation of gzip"
|
||||
HOMEPAGE="http://www.zlib.net/pigz/"
|
||||
SRC_URI="http://www.zlib.net/pigz/${P}.tar.gz"
|
||||
|
||||
LICENSE="PIGZ"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~sparc ~x86 ~amd64-linux ~sparc64-solaris"
|
||||
IUSE="symlink test"
|
||||
|
||||
RDEPEND="sys-libs/zlib"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( app-arch/ncompress )"
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e '/^CFLAGS=/ d' -e '4s/cc/$(CC) $(LDFLAGS)/' "${S}/Makefile" || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC
|
||||
emake || die "make failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ${PN} || die "Failed to install"
|
||||
dosym /usr/bin/${PN} /usr/bin/un${PN} || die
|
||||
dodoc README || die
|
||||
doman ${PN}.1 || die
|
||||
|
||||
if use symlink; then
|
||||
dosym /usr/bin/${PN} /usr/bin/gzip || die
|
||||
dosym /usr/bin/un${PN} /usr/bin/gunzip || die
|
||||
fi
|
||||
}
|
1
sdk_container/src/third_party/portage-stable/app-arch/sharutils/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/app-arch/sharutils/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
||||
DIST sharutils-4.7.tar.bz2 640932 RMD160 6ef271d21ea41003ff13d6aef241c6a4fd4dc296 SHA1 0b8c1d54fdcf97a93aba079d342d1873a8fc423b SHA256 2f29604c9bc4471fb35975c10074bb3585dea66ebc52b5560989a370f2e3f00e
|
@ -0,0 +1,26 @@
|
||||
--- sharutils-4.6.3.orig/lib/inttostr.h
|
||||
+++ sharutils-4.6.3/lib/inttostr.h
|
||||
@@ -26,6 +26,10 @@
|
||||
# include <inttypes.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_STDINT_H
|
||||
+# include <stdint.h>
|
||||
+#endif
|
||||
+
|
||||
#if HAVE_LIMITS_H
|
||||
# include <limits.h>
|
||||
#endif
|
||||
--- sharutils-4.6.3.orig/lib/system.h
|
||||
+++ sharutils-4.6.3/lib/system.h
|
||||
@@ -24,6 +24,10 @@
|
||||
# include <inttypes.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_STDINT_H
|
||||
+# include <stdint.h>
|
||||
+#endif
|
||||
+
|
||||
#ifndef HAVE_INTMAX_T
|
||||
#define HAVE_INTMAX_T
|
||||
typedef long intmax_t;
|
38
sdk_container/src/third_party/portage-stable/app-arch/sharutils/sharutils-4.7.ebuild
vendored
Normal file
38
sdk_container/src/third_party/portage-stable/app-arch/sharutils/sharutils-4.7.ebuild
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-arch/sharutils/sharutils-4.7.ebuild,v 1.10 2010/02/24 15:48:44 jer Exp $
|
||||
|
||||
inherit eutils
|
||||
|
||||
MY_P="${P/_/-}"
|
||||
DESCRIPTION="Tools to deal with shar archives"
|
||||
HOMEPAGE="http://www.gnu.org/software/sharutils/"
|
||||
SRC_URI="mirror://gnu/${PN}/REL-${PV}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="nls"
|
||||
|
||||
DEPEND="sys-apps/texinfo
|
||||
nls? ( >=sys-devel/gettext-0.10.35 )"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-4.6.3-interix.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
strip-linguas -u po
|
||||
econf $(use_enable nls)
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die
|
||||
dodoc AUTHORS ChangeLog NEWS README THANKS TODO
|
||||
}
|
1
sdk_container/src/third_party/portage-stable/app-arch/unzip/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/app-arch/unzip/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
||||
DIST unzip60.tar.gz 1376845 RMD160 48af66606e9472e45fbb94bc4e285da23d1b89ba SHA1 abf7de8a4018a983590ed6f5cbd990d4740f8a22 SHA256 036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37
|
13
sdk_container/src/third_party/portage-stable/app-arch/unzip/files/unzip-6.0-no-exec-stack.patch
vendored
Normal file
13
sdk_container/src/third_party/portage-stable/app-arch/unzip/files/unzip-6.0-no-exec-stack.patch
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
Make sure that the asm files don't incorrectly trigger an executable
|
||||
stack marking in the final shared library. That's bad, mmmkay.
|
||||
|
||||
--- unzip/crc_i386.S
|
||||
+++ unzip/crc_i386.S
|
||||
@@ -302,3 +302,7 @@
|
||||
#endif /* i386 || _i386 || _I386 || __i386 */
|
||||
|
||||
#endif /* !USE_ZLIB && !CRC_TABLE_ONLY */
|
||||
+
|
||||
+#if defined(__linux__) && defined(__ELF__)
|
||||
+.section .note.GNU-stack,"",%progbits
|
||||
+#endif
|
70
sdk_container/src/third_party/portage-stable/app-arch/unzip/unzip-6.0-r1.ebuild
vendored
Normal file
70
sdk_container/src/third_party/portage-stable/app-arch/unzip/unzip-6.0-r1.ebuild
vendored
Normal file
@ -0,0 +1,70 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-arch/unzip/unzip-6.0-r1.ebuild,v 1.10 2010/01/10 00:28:54 jer Exp $
|
||||
|
||||
inherit eutils toolchain-funcs flag-o-matic
|
||||
|
||||
MY_P="${PN}${PV/.}"
|
||||
|
||||
DESCRIPTION="unzipper for pkzip-compressed files"
|
||||
HOMEPAGE="http://www.info-zip.org/"
|
||||
SRC_URI="mirror://sourceforge/infozip/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Info-ZIP"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm hppa ~ia64 m68k ~ppc ppc64 s390 sh ~sparc x86"
|
||||
IUSE="bzip2 unicode"
|
||||
|
||||
DEPEND="bzip2? ( app-arch/bzip2 )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
epatch "${FILESDIR}"/${P}-no-exec-stack.patch
|
||||
sed -i \
|
||||
-e '/^CFLAGS/d' \
|
||||
-e '/CFLAGS/s:-O[0-9]\?:$(CFLAGS) $(CPPFLAGS):' \
|
||||
-e '/^STRIP/s:=.*:=true:' \
|
||||
-e "s:CC=gcc :CC=$(tc-getCC) :" \
|
||||
-e "s:LD=gcc :LD=$(tc-getCC) :" \
|
||||
-e "s:AS=gcc :AS=$(tc-getCC) :" \
|
||||
-e 's:LF2 = -s:LF2 = :' \
|
||||
-e 's:LF = :LF = $(LDFLAGS) :' \
|
||||
-e 's:SL = :SL = $(LDFLAGS) :' \
|
||||
-e 's:FL = :FL = $(LDFLAGS) :' \
|
||||
-e "/^#L_BZ2/s:^$(use bzip2 && echo .)::" \
|
||||
unix/Makefile \
|
||||
|| die "sed unix/Makefile failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local TARGET
|
||||
case ${CHOST} in
|
||||
i?86*-*linux*) TARGET=linux_asm ;;
|
||||
*linux*) TARGET=linux_noasm ;;
|
||||
i?86*-*bsd* | \
|
||||
i?86*-dragonfly*) TARGET=freebsd ;; # mislabelled bsd with x86 asm
|
||||
*bsd* | *dragonfly*) TARGET=bsd ;;
|
||||
*-darwin*) TARGET=macosx ;;
|
||||
*) die "Unknown target, you suck" ;;
|
||||
esac
|
||||
|
||||
[[ ${CHOST} == *linux* ]] && append-cppflags -DNO_LCHMOD
|
||||
use bzip2 && append-cppflags -DUSE_BZIP2
|
||||
use unicode && append-cppflags -DUNICODE_SUPPORT -DUNICODE_WCHAR -DUTF8_MAYBE_NATIVE
|
||||
append-cppflags -DLARGE_FILE_SUPPORT #281473
|
||||
|
||||
emake \
|
||||
-f unix/Makefile \
|
||||
${TARGET} || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin unzip funzip unzipsfx unix/zipgrep || die "dobin failed"
|
||||
dosym unzip /usr/bin/zipinfo || die
|
||||
doman man/*.1
|
||||
dodoc BUGS History* README ToDo WHERE
|
||||
}
|
1
sdk_container/src/third_party/portage-stable/app-arch/xz-utils/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/app-arch/xz-utils/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
||||
DIST xz-4.999.9beta.tar.gz 1037541 RMD160 1253ce01746c748c8549effa5041224044919c4e SHA1 9627de3997ddcdb02f8d327e84b2cf1941ecd230 SHA256 fa3901d1c034842da47fec1a24a9b5a5bd435f5ecfbb444c168512e2daddb86f
|
59
sdk_container/src/third_party/portage-stable/app-arch/xz-utils/xz-utils-4.999.9_beta.ebuild
vendored
Normal file
59
sdk_container/src/third_party/portage-stable/app-arch/xz-utils/xz-utils-4.999.9_beta.ebuild
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-arch/xz-utils/xz-utils-4.999.9_beta.ebuild,v 1.12 2010/03/04 20:16:45 armin76 Exp $
|
||||
|
||||
# Remember: we cannot leverage autotools in this ebuild in order
|
||||
# to avoid circular deps with autotools
|
||||
|
||||
EAPI="2"
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="git://ctrl.tukaani.org/xz.git"
|
||||
inherit git autotools
|
||||
SRC_URI=""
|
||||
EXTRA_DEPEND="sys-devel/gettext dev-util/cvs >=sys-devel/libtool-2" #272880 286068
|
||||
else
|
||||
MY_P="${PN/-utils}-${PV/_}"
|
||||
SRC_URI="http://tukaani.org/xz/${MY_P}.tar.gz"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 ~s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
EXTRA_DEPEND=
|
||||
fi
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="utils for managing LZMA compressed files"
|
||||
HOMEPAGE="http://tukaani.org/xz/"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
IUSE="nls static-libs +threads"
|
||||
|
||||
RDEPEND="!app-arch/lzma
|
||||
!app-arch/lzma-utils
|
||||
!<app-arch/p7zip-4.57"
|
||||
DEPEND="${RDEPEND}
|
||||
${EXTRA_DEPEND}"
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
src_prepare() {
|
||||
eautopoint
|
||||
eautoreconf
|
||||
}
|
||||
fi
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--enable-dynamic=yes \
|
||||
$(use_enable nls) \
|
||||
$(use_enable threads) \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install DESTDIR="${D}" || die
|
||||
rm "${D}"/usr/share/doc/xz/COPYING* || die
|
||||
mv "${D}"/usr/share/doc/{xz,${PF}} || die
|
||||
prepalldocs
|
||||
dodoc AUTHORS ChangeLog NEWS README THANKS
|
||||
}
|
1
sdk_container/src/third_party/portage-stable/app-arch/zip/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/app-arch/zip/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
||||
DIST zip30.zip 1287223 RMD160 88f34a3cc15ea153952289289f3d70f9a8a41f47 SHA1 4f244128ee8fa3fc07eedfee3d4ac634dcabd492 SHA256 7061ceac0407682b6dc54bb480347205f680f4e56cf34fe1423df2309f18968a
|
36
sdk_container/src/third_party/portage-stable/app-arch/zip/files/zip-3.0-build.patch
vendored
Normal file
36
sdk_container/src/third_party/portage-stable/app-arch/zip/files/zip-3.0-build.patch
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
respect build environment settings
|
||||
|
||||
--- zip/unix/configure
|
||||
+++ zip/unix/configure
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
CC=${1-cc}
|
||||
CFLAGS=${2-"-I. -DUNIX"}
|
||||
-LFLAGS1=''
|
||||
+LFLAGS1="${LDFLAGS}"
|
||||
LFLAGS2=''
|
||||
LN="ln -s"
|
||||
|
||||
@@ -118,7 +118,7 @@ _EOF_
|
||||
fi
|
||||
|
||||
# optimization flags
|
||||
-if test -n "${CFLAGS_OPT}"; then
|
||||
+if false; then
|
||||
CFLAGS="${CFLAGS} ${CFLAGS_OPT}"
|
||||
CFLAGS_BZ="${CFLAGS_BZ} ${CFLAGS_OPT}"
|
||||
fi
|
||||
@@ -220,13 +220,6 @@ fi
|
||||
echo Check for the C preprocessor
|
||||
# on SVR4, cc -E does not produce correct assembler files. Need /lib/cpp.
|
||||
CPP="${CC} -E"
|
||||
-# solaris as(1) needs -P, maybe others as well ?
|
||||
-[ -f /usr/ccs/lib/cpp ] && CPP="/usr/ccs/lib/cpp -P"
|
||||
-[ -f /usr/lib/cpp ] && CPP=/usr/lib/cpp
|
||||
-[ -f /lib/cpp ] && CPP=/lib/cpp
|
||||
-[ -f /usr/bin/cpp ] && CPP=/usr/bin/cpp
|
||||
-[ -f /xenix ] && CPP="${CC} -E"
|
||||
-[ -f /lynx.os ] && CPP="${CC} -E"
|
||||
|
||||
echo "#include <stdio.h>" > conftest.c
|
||||
$CPP conftest.c >/dev/null 2>/dev/null || CPP="${CC} -E"
|
22
sdk_container/src/third_party/portage-stable/app-arch/zip/files/zip-3.0-exec-stack.patch
vendored
Normal file
22
sdk_container/src/third_party/portage-stable/app-arch/zip/files/zip-3.0-exec-stack.patch
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
add proper GNU stack markings so we dont get the default: executable
|
||||
|
||||
--- zip-2.31/crc_i386.S
|
||||
+++ zip-2.31/crc_i386.S
|
||||
@@ -238,3 +238,7 @@
|
||||
#endif /* i386 || _i386 || _I386 || __i386 */
|
||||
|
||||
#endif /* !USE_ZLIB && !CRC_TABLE_ONLY */
|
||||
+
|
||||
+#if defined __ELF__ && defined __linux__
|
||||
+.section .note.GNU-stack,"",@progbits
|
||||
+#endif
|
||||
--- zip-2.31/match.S
|
||||
+++ zip-2.31/match.S
|
||||
@@ -405,3 +405,7 @@
|
||||
#endif /* i386 || _I386 || _i386 || __i386 */
|
||||
|
||||
#endif /* !USE_ZLIB */
|
||||
+
|
||||
+#if defined __ELF__ && defined __linux__
|
||||
+.section .note.GNU-stack,"",@progbits
|
||||
+#endif
|
57
sdk_container/src/third_party/portage-stable/app-arch/zip/files/zip-3.0-no-crypt.patch
vendored
Normal file
57
sdk_container/src/third_party/portage-stable/app-arch/zip/files/zip-3.0-no-crypt.patch
vendored
Normal file
@ -0,0 +1,57 @@
|
||||
fix building when NO_CRYPT is used
|
||||
|
||||
forward ported from zip-2.32
|
||||
|
||||
http://bugs.gentoo.org/238398
|
||||
|
||||
--- zip.c
|
||||
+++ zip.c
|
||||
@@ -3452,6 +3452,9 @@ char **argv; /* command line tokens */
|
||||
|
||||
/* Key not yet specified. If needed, get/verify it now. */
|
||||
if (key_needed) {
|
||||
+#if !CRYPT
|
||||
+ ZIPERR(ZE_PARMS, "encryption not supported");
|
||||
+#else /* CRYPT */
|
||||
if ((key = malloc(IZ_PWLEN+1)) == NULL) {
|
||||
ZIPERR(ZE_MEM, "was getting encryption password");
|
||||
}
|
||||
@@ -3478,6 +3481,7 @@ char **argv; /* command line tokens */
|
||||
if (r) {
|
||||
ZIPERR(ZE_PARMS, "password verification failed");
|
||||
}
|
||||
+#endif
|
||||
}
|
||||
if (key) {
|
||||
/* if -P "" could get here */
|
||||
--- zipcloak.c
|
||||
+++ zipcloak.c
|
||||
@@ -744,6 +744,28 @@ struct option_struct far options[] = {
|
||||
|
||||
int main OF((void));
|
||||
|
||||
+void zipmessage_nl(a, nl)
|
||||
+ZCONST char *a;
|
||||
+int nl;
|
||||
+{
|
||||
+}
|
||||
+
|
||||
+void zipmessage(a, b)
|
||||
+ZCONST char *a, *b;
|
||||
+{
|
||||
+}
|
||||
+
|
||||
+int set_filetype(out_path)
|
||||
+ char *out_path;
|
||||
+{
|
||||
+}
|
||||
+
|
||||
+int rename_split(temp_name, out_path)
|
||||
+ char *temp_name;
|
||||
+ char *out_path;
|
||||
+{
|
||||
+}
|
||||
+
|
||||
void zipwarn(msg1, msg2)
|
||||
ZCONST char *msg1, *msg2;
|
||||
{
|
15
sdk_container/src/third_party/portage-stable/app-arch/zip/files/zip-3.0-pic.patch
vendored
Normal file
15
sdk_container/src/third_party/portage-stable/app-arch/zip/files/zip-3.0-pic.patch
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
if our toolchain generates PIC by default, then do not use the hand written
|
||||
assembly files as none of it is PIC friendly.
|
||||
|
||||
--- unix/configure
|
||||
+++ unix/configure
|
||||
@@ -29,6 +29,9 @@
|
||||
echo Check if we can use asm code
|
||||
OBJA=""
|
||||
OCRCU8=""
|
||||
+piclib="$(echo | $CPP -dM $CFLAGS - | grep -i __pic__)"
|
||||
+echo "Checking if compiler wants to create pic code"
|
||||
+[ "$piclib" == "" ] && \
|
||||
if eval "$CPP match.S > _match.s 2>/dev/null"; then
|
||||
if test ! -s _match.s || grep error < _match.s > /dev/null; then
|
||||
:
|
51
sdk_container/src/third_party/portage-stable/app-arch/zip/zip-3.0.ebuild
vendored
Normal file
51
sdk_container/src/third_party/portage-stable/app-arch/zip/zip-3.0.ebuild
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-arch/zip/zip-3.0.ebuild,v 1.9 2010/01/01 19:47:40 fauli Exp $
|
||||
|
||||
inherit toolchain-funcs eutils flag-o-matic
|
||||
|
||||
MY_P="${PN}${PV//.}"
|
||||
DESCRIPTION="Info ZIP (encryption support)"
|
||||
HOMEPAGE="http://www.info-zip.org/"
|
||||
SRC_URI="mirror://sourceforge/infozip/${MY_P}.zip"
|
||||
|
||||
LICENSE="Info-ZIP"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="bzip2 crypt unicode"
|
||||
|
||||
RDEPEND="bzip2? ( app-arch/bzip2 )"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/unzip"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
epatch "${FILESDIR}"/${PN}-3.0-no-crypt.patch #238398
|
||||
epatch "${FILESDIR}"/${PN}-3.0-pic.patch
|
||||
epatch "${FILESDIR}"/${PN}-3.0-exec-stack.patch
|
||||
epatch "${FILESDIR}"/${PN}-3.0-build.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
use bzip2 || append-flags -DNO_BZIP2_SUPPORT
|
||||
use crypt || append-flags -DNO_CRYPT
|
||||
use unicode || append-flags -DNO_UNICODE_SUPPORT
|
||||
emake \
|
||||
CC="$(tc-getCC)" \
|
||||
LOCAL_ZIP="${CFLAGS} ${CPPFLAGS}" \
|
||||
-f unix/Makefile generic \
|
||||
|| die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin zip zipnote zipsplit || die
|
||||
doman man/zip{,note,split}.1
|
||||
if use crypt ; then
|
||||
dobin zipcloak || die
|
||||
doman man/zipcloak.1
|
||||
fi
|
||||
dodoc BUGS CHANGES README* TODO WHATSNEW WHERE proginfo/*.txt
|
||||
}
|
Loading…
Reference in New Issue
Block a user