From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- sys-fs/xfsdump/Manifest | 10 ++++ .../xfsdump/files/xfsdump-3.0.4-no-symlink.patch | 22 +++++++ .../files/xfsdump-3.0.5-prompt-overflow.patch | 14 +++++ sys-fs/xfsdump/files/xfsdump-3.1.6-linguas.patch | 32 +++++++++++ sys-fs/xfsdump/metadata.xml | 8 +++ sys-fs/xfsdump/xfsdump-3.1.6.ebuild | 53 +++++++++++++++++ sys-fs/xfsdump/xfsdump-3.1.8.ebuild | 67 ++++++++++++++++++++++ 7 files changed, 206 insertions(+) create mode 100644 sys-fs/xfsdump/Manifest create mode 100644 sys-fs/xfsdump/files/xfsdump-3.0.4-no-symlink.patch create mode 100644 sys-fs/xfsdump/files/xfsdump-3.0.5-prompt-overflow.patch create mode 100644 sys-fs/xfsdump/files/xfsdump-3.1.6-linguas.patch create mode 100644 sys-fs/xfsdump/metadata.xml create mode 100644 sys-fs/xfsdump/xfsdump-3.1.6.ebuild create mode 100644 sys-fs/xfsdump/xfsdump-3.1.8.ebuild (limited to 'sys-fs/xfsdump') diff --git a/sys-fs/xfsdump/Manifest b/sys-fs/xfsdump/Manifest new file mode 100644 index 000000000000..f28d87b4dc16 --- /dev/null +++ b/sys-fs/xfsdump/Manifest @@ -0,0 +1,10 @@ +AUX xfsdump-3.0.4-no-symlink.patch 721 SHA256 b3ccccfce2b7f36263a8b3611724560ae768a3371dcc6e19045abae8df8052a3 SHA512 8b8feddfbdd76bebe61a8d06e174f5bef6edd05d0ce3b96731c234f58f36c73182e411a6f7b30f4e2bbc48b13b675edaf9ba30434e414b2bf2c7dbf431c1b819 WHIRLPOOL 576a5f0324ac20b80fe946f1b0390b9e70860b9f350811e41c7ccbbbb06ef8439ca1946b4d7db88b2d106ad4d67b9bf82cb46636e52d362b304c6d78bb35f142 +AUX xfsdump-3.0.5-prompt-overflow.patch 337 SHA256 1176987b6201aa40846c631fab57877a0e2a8a2560e0224e91f3f92b516fc2ac SHA512 e81b36f0e72284f739150901b30b28386ac072f7d03c5b9c5052fe69b29104c2e87bc498aa6df29e21383b22f1da2ef9035b3acd9aed721601a9a1d9938f0bcf WHIRLPOOL b696277b4bc00e3a31895b6195e2fd4481fe955af447d578a9303c7e14c387680d865abfef67932cbce67161f5d5fd646ceed53b920262dca97294f14ae39498 +AUX xfsdump-3.1.6-linguas.patch 975 SHA256 16152976e972f32921a4b34636736f041d49d656111b43aee31b9c83da582992 SHA512 2fe49c6985eca950890d952b6e33c7f9d7687dfaeb52077895e92994d930f0026bb8fdc31ad3f31d072b8a5023a9e0e3d99c301cb34802d7657a93b964aa6c8e WHIRLPOOL c2c8d255fe0d01407bf1f5282c9f854794a521d165945944cbf092517745a94907fab1de7c5a11dcb7090eaac6aed5fc020574aa81d03f222c2df87a74c90320 +DIST xfsdump-3.1.6.tar.gz 848698 SHA256 7f78c11ca527477d90e5e62b0778f3ad96f2b71c19173044e9aca9515fff42d0 SHA512 6d8eff10c65e0a0893525590953ccb7ec0095ba528725ffe3f18260e6cb8f66dd3945c60477500e84421a9ed57fae9e8f0f25c3c0900be3671f30ca6951ed5e7 WHIRLPOOL 87182e97a5676be6ad36cf74e37d9ca312d742d20eb5396917a156842fe62a23c582e16862fb384fe7706097d9f0c7a6a8faced06fec0a999ac06ceb426eb7e3 +DIST xfsdump-3.1.8.tar.xz 603304 SHA256 ed14e67ae5b273c2698e767b43a46f033d361e540fe13feaaf9b110ee0edc585 SHA512 84720c83627647c75b42c59d180bb31cbb6e064568bef18b73641cf821fa7d39e6f7e0df4a6c7ffd36fba63296ab88cb83f0effdb1f6aa98f4b593ca0e658e0b WHIRLPOOL f75004400387916cd461a49500fa72ff878a9112f7550dd7c14f8b39e8f52678ca6721c298d536631c1649f989f7c007625e72c1136dabe60d9235bb5f8900d4 +EBUILD xfsdump-3.1.6.ebuild 1440 SHA256 1f4ee21685b223fd06e50d4ffc9c5527ce974569d419bc3dc0f56201117b4fda SHA512 6f9f3123abad6cc0cf066515020d662bc05097aa511bb9e1666855170dea275422ce096925c7ecc4196ae86472888f4245ed9af8c69b6e4bffd5fa1d3171c669 WHIRLPOOL 0a9899e27f9444894433630c24516a43c235b9903753ead028d9fb47748d4a46d56580bd130b05ad6cb6a7aea63d2860f086160ec7b2f306bc2d757f36fbf4e7 +EBUILD xfsdump-3.1.8.ebuild 1504 SHA256 3319fce7e3fb748e075bafcc9005a389706850e7b6c2a94b3e3fb4b48d1d359b SHA512 95291407f086a6f4fd264864c19944eb0edadb908ed40b0e7207a9ca985e6ea600b5449c182c2688391a05de6dd1e410bb7146782e22199a37c6031d205b6c18 WHIRLPOOL 5dff029b6b29af9c4a249ca35b052d41be3febb0bf3fd2d57592304d7ac71ca28ae07502fe8524d8b133ed99bf25b7fff4a552d01faa869ea07134bbfad65700 +MISC ChangeLog 5785 SHA256 0ae78ca870bc678c12e081fa1ebf67067a135adfdc48d02417b4d54b1122fd6f SHA512 31b9e8c8139391bd6fee2570da3d0bcc6297e9b86ae9a7b6f283d45968b2ec705d337b7fb27ad7b32785c35042ba22b9226f02535359faee7c5840a309f49c1b WHIRLPOOL ad0031a1a8e309aad0c2989377ec9e08ff5596766e78e497ada322c288c91add2dd2260b9298286b947ace94cc253ebe9a5bdb108989c3db2030f93a1931dce8 +MISC ChangeLog-2015 15618 SHA256 16ae77c69991016a6218e037cca00a97f7e30f133ef4f81dc7fb42471f520ee4 SHA512 63b0e5df754fa3b56ee1ce014f16a91a231652098908af49ccc8bdf35220eb8f8319505a5ff9e6a012ab81367b06e8a98087c14e4f9fbbaacfa4892d7ff5c838 WHIRLPOOL 61a271793e84f66d5ae2cc7522511ec415961ed0bcc48ff8c766a266790eb71475fe0be459dc06ad628f02d1af24c7974efbbd925ac9674b4ec73290785861bf +MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8 diff --git a/sys-fs/xfsdump/files/xfsdump-3.0.4-no-symlink.patch b/sys-fs/xfsdump/files/xfsdump-3.0.4-no-symlink.patch new file mode 100644 index 000000000000..014ca33d2154 --- /dev/null +++ b/sys-fs/xfsdump/files/xfsdump-3.0.4-no-symlink.patch @@ -0,0 +1,22 @@ +http://bugs.gentoo.org/311881 + +--- xfsdump-3.0.4/dump/Makefile ++++ xfsdump-3.0.4/dump/Makefile +@@ -102,7 +102,6 @@ + $(INSTALL) -m 755 -d $(PKG_ROOT_SBIN_DIR) + $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_ROOT_SBIN_DIR) + $(INSTALL) -m 755 -d $(PKG_SBIN_DIR) +- $(INSTALL) -S $(PKG_ROOT_SBIN_DIR)/$(LTCOMMAND) $(PKG_SBIN_DIR)/$(LTCOMMAND) + install-dev: + + $(COMMINCL) $(COMMON): +--- xfsdump-3.0.4/restore/Makefile ++++ xfsdump-3.0.4/restore/Makefile +@@ -114,7 +114,6 @@ + $(INSTALL) -m 755 -d $(PKG_ROOT_SBIN_DIR) + $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_ROOT_SBIN_DIR) + $(INSTALL) -m 755 -d $(PKG_SBIN_DIR) +- $(INSTALL) -S $(PKG_ROOT_SBIN_DIR)/$(LTCOMMAND) $(PKG_SBIN_DIR)/$(LTCOMMAND) + install-dev: + + $(COMMINCL) $(COMMON): diff --git a/sys-fs/xfsdump/files/xfsdump-3.0.5-prompt-overflow.patch b/sys-fs/xfsdump/files/xfsdump-3.0.5-prompt-overflow.patch new file mode 100644 index 000000000000..bd7fb3f44520 --- /dev/null +++ b/sys-fs/xfsdump/files/xfsdump-3.0.5-prompt-overflow.patch @@ -0,0 +1,14 @@ +http://oss.sgi.com/bugzilla/show_bug.cgi?id=876 +https://bugs.gentoo.org/335115 + +--- a/dump/content.c ++++ b/dump/content.c +@@ -6460,7 +6460,7 @@ + Media_prompt_erase( drive_t *drivep ) + { + fold_t fold; +- char question[ 100 ]; ++ char question[ 200 ]; + char *preamblestr[ PREAMBLEMAX ]; + size_t preamblecnt; + char *querystr[ QUERYMAX ]; diff --git a/sys-fs/xfsdump/files/xfsdump-3.1.6-linguas.patch b/sys-fs/xfsdump/files/xfsdump-3.1.6-linguas.patch new file mode 100644 index 000000000000..5d5e54e61c4f --- /dev/null +++ b/sys-fs/xfsdump/files/xfsdump-3.1.6-linguas.patch @@ -0,0 +1,32 @@ +From e12813b9d0883e02cc121ea503f4bff5fb67e9ef Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Fri, 8 Apr 2016 16:41:31 -0400 +Subject: [PATCH xfsdump] po: respect LINGUAS build setting + +It is common gettext practice to limit the translations a particular +package will include by setting the LINGUAS environment variable. + +Signed-off-by: Mike Frysinger +--- + po/Makefile | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/po/Makefile b/po/Makefile +index 6d40324..48a19c1 100644 +--- a/po/Makefile ++++ b/po/Makefile +@@ -6,7 +6,10 @@ TOPDIR = .. + include $(TOPDIR)/include/builddefs + + POTHEAD = $(PKG_NAME).pot +-LINGUAS = de pl ++# If the user has requested a specific set of translations, only build those. ++SUPPORTED_LINGUAS = $(patsubst %.po,%,$(wildcard *.po)) ++LINGUAS ?= $(SUPPORTED_LINGUAS) ++LINGUAS := $(filter $(SUPPORTED_LINGUAS),$(LINGUAS)) + LSRCFILES = $(LINGUAS:%=%.po) + LDIRT = $(POTHEAD) + +-- +2.7.4 + diff --git a/sys-fs/xfsdump/metadata.xml b/sys-fs/xfsdump/metadata.xml new file mode 100644 index 000000000000..56c124413057 --- /dev/null +++ b/sys-fs/xfsdump/metadata.xml @@ -0,0 +1,8 @@ + + + + + base-system@gentoo.org + Gentoo Base System + + diff --git a/sys-fs/xfsdump/xfsdump-3.1.6.ebuild b/sys-fs/xfsdump/xfsdump-3.1.6.ebuild new file mode 100644 index 000000000000..8ceb39c85da5 --- /dev/null +++ b/sys-fs/xfsdump/xfsdump-3.1.6.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit multilib eutils flag-o-matic toolchain-funcs + +DESCRIPTION="xfs dump/restore utilities" +HOMEPAGE="http://oss.sgi.com/projects/xfs" +SRC_URI="ftp://oss.sgi.com/projects/xfs/cmd_tars/${P}.tar.gz + ftp://oss.sgi.com/projects/xfs/previous/cmd_tars/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 -sparc x86" +IUSE="ncurses nls" + +RDEPEND="ncurses? ( sys-libs/ncurses:0= ) + sys-fs/e2fsprogs + >=sys-fs/xfsprogs-3.2.0 + sys-apps/dmapi + >=sys-apps/attr-2.4.19" +DEPEND="${RDEPEND} + nls? ( + sys-devel/gettext + elibc_uclibc? ( dev-libs/libintl ) + )" + +src_prepare() { + sed -i \ + -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \ + include/builddefs.in \ + || die + sed -i \ + -e "s:enable_curses=[a-z]*:enable_curses=$(usex ncurses):" \ + -e "s:libcurses=\"[^\"]*\":libcurses='$(use ncurses && $(tc-getPKG_CONFIG) --libs ncurses)':" \ + configure || die #605852 + epatch "${FILESDIR}"/${PN}-3.0.5-prompt-overflow.patch #335115 + epatch "${FILESDIR}"/${PN}-3.0.4-no-symlink.patch #311881 + epatch "${FILESDIR}"/${PN}-3.1.6-linguas.patch #561664 +} + +src_configure() { + unset PLATFORM #184564 + export OPTIMIZER=${CFLAGS} + export DEBUG=-DNDEBUG + + econf \ + $(use_enable nls gettext) \ + --libdir="${EPREFIX}/$(get_libdir)" \ + --libexecdir="${EPREFIX}/usr/$(get_libdir)" \ + --sbindir="${EPREFIX}/sbin" +} diff --git a/sys-fs/xfsdump/xfsdump-3.1.8.ebuild b/sys-fs/xfsdump/xfsdump-3.1.8.ebuild new file mode 100644 index 000000000000..ce2ed0fab36f --- /dev/null +++ b/sys-fs/xfsdump/xfsdump-3.1.8.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit multilib flag-o-matic toolchain-funcs + +DESCRIPTION="xfs dump/restore utilities" +HOMEPAGE="http://oss.sgi.com/projects/xfs" +SRC_URI="https://www.kernel.org/pub/linux/utils/fs/xfs/${PN}/${P}.tar.xz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 -sparc ~x86" +IUSE="ncurses nls" + +RDEPEND=" + >=sys-apps/attr-2.4.19 + sys-apps/dmapi + sys-apps/util-linux + sys-fs/e2fsprogs + >=sys-fs/xfsprogs-3.2.0 + ncurses? ( sys-libs/ncurses:0= ) +" +DEPEND="${RDEPEND} + nls? ( + sys-devel/gettext + elibc_uclibc? ( dev-libs/libintl ) + )" + +PATCHES=( + "${FILESDIR}"/${PN}-3.0.5-prompt-overflow.patch #335115 + "${FILESDIR}"/${PN}-3.0.4-no-symlink.patch #311881 + "${FILESDIR}"/${PN}-3.1.6-linguas.patch #561664 +) + +src_prepare() { + sed -i \ + -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \ + include/builddefs.in \ + || die + sed -i \ + -e "s:enable_curses=[a-z]*:enable_curses=$(usex ncurses):" \ + -e "s:libcurses=\"[^\"]*\":libcurses='$(use ncurses && $(tc-getPKG_CONFIG) --libs ncurses)':" \ + configure || die #605852 + + default +} + +src_configure() { + unset PLATFORM #184564 + export OPTIMIZER=${CFLAGS} + export DEBUG=-DNDEBUG + + local myeconfargs=( + $(use_enable nls gettext) + --libdir="${EPREFIX}/$(get_libdir)" + --libexecdir="${EPREFIX}/usr/$(get_libdir)" + --sbindir="${EPREFIX}/sbin" + ) + econf "${myeconfargs[@]}" +} + +src_compile() { + # enable verbose build + emake V=1 +} -- cgit v1.2.3