diff options
author | 2015-12-23 13:15:16 +0200 | |
---|---|---|
committer | 2015-12-23 13:15:58 +0200 | |
commit | 7ccec8d4d9fdebc92175da741b801817fb3ac5e9 (patch) | |
tree | 168e114adf4d07e53f7cda53b7dd25fdba6a493a /app-crypt/loop-aes-losetup/loop-aes-losetup-2.26.ebuild | |
parent | app-crypt/cardpeek: cleanup old (diff) | |
download | gentoo-7ccec8d4d9fdebc92175da741b801817fb3ac5e9.tar.gz gentoo-7ccec8d4d9fdebc92175da741b801817fb3ac5e9.tar.bz2 gentoo-7ccec8d4d9fdebc92175da741b801817fb3ac5e9.zip |
app-crypt/loop-aes-losetup: version bump
Package-Manager: portage-2.2.24
Diffstat (limited to 'app-crypt/loop-aes-losetup/loop-aes-losetup-2.26.ebuild')
-rw-r--r-- | app-crypt/loop-aes-losetup/loop-aes-losetup-2.26.ebuild | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/app-crypt/loop-aes-losetup/loop-aes-losetup-2.26.ebuild b/app-crypt/loop-aes-losetup/loop-aes-losetup-2.26.ebuild new file mode 100644 index 000000000000..e4169623948a --- /dev/null +++ b/app-crypt/loop-aes-losetup/loop-aes-losetup-2.26.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils toolchain-funcs flag-o-matic + +MY_PV="${PV/_/-}" +MY_P="util-linux-${MY_PV}" +LOOPAES_PV="${PV}-20150310" +S="${WORKDIR}/${MY_P}" + +DESCRIPTION="Various useful Linux utilities" +HOMEPAGE="https://www.kernel.org/pub/linux/utils/util-linux/" +SRC_URI="mirror://kernel/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.xz + http://loop-aes.sourceforge.net/updates/util-linux-${LOOPAES_PV}.diff.bz2" +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86" + +LICENSE="GPL-2 LGPL-2.1 BSD-4 MIT public-domain" +SLOT="0" +IUSE="nls selinux static" + +RDEPEND="selinux? ( sys-libs/libselinux )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext ) + virtual/os-headers" + +src_prepare() { + epatch "${WORKDIR}"/util-linux-*.diff + elibtoolize +} + +lfs_fallocate_test() { + # Make sure we can use fallocate with LFS #300307 + cat <<-EOF > "${T}"/fallocate.${ABI}.c + #define _GNU_SOURCE + #include <fcntl.h> + main() { return fallocate(0, 0, 0, 0); } + EOF + append-lfs-flags + $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} "${T}"/fallocate.${ABI}.c -o /dev/null >/dev/null 2>&1 \ + || export ac_cv_func_fallocate=no + rm -f "${T}"/fallocate.${ABI}.c +} + +src_configure() { + lfs_fallocate_test + # The scanf test in a run-time test which fails while cross-compiling. + # Blindly assume a POSIX setup since we require libmount, and libmount + # itself fails when the scanf test fails. #531856 + tc-is-cross-compiler && export scanf_cv_alloc_modifier=ms + # We manually set --libdir to the default since on prefix, econf will set it to + # a value which the configure script does not recognize. This makes it set the + # usrlib_execdir to a bad value. bug #518898#c2, fixed upstream for >2.25 + ECONF_SOURCE=${S} \ + econf \ + --libdir='${prefix}/'"$(get_libdir)" \ + --disable-all-programs \ + --enable-libsmartcols \ + --enable-losetup \ + --without-ncurses \ + --without-udev \ + $(use_enable nls) \ + $(use_with selinux) \ + $(tc-has-tls || echo --disable-tls) \ + $(use static && echo --enable-static-programs=losetup) +} + +src_install() { + emake install DESTDIR="${T}/root" + newsbin "${T}/root/sbin/losetup" loop-aes-losetup + use static && newsbin "${T}/root/bin/losetup.static" loop-aes-losetup.static +} |