Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

FL-64: update loop-aes in util-linux

  • Loading branch information...
commit cdffe9142636b9d438f8fa885787fc96c8dc25c1 1 parent 4bd0a6c
Oleg authored October 04, 2012
1  sys-apps/util-linux/Manifest
... ...
@@ -1,3 +1,4 @@
1 1
 DIST util-linux-2.20-20110905.diff.bz2 47914 RMD160 6ef3f3ae958d9e3856fae3fae8917f4b0a4d25ff SHA1 76ee9dd2411d1b3e4f7028790ec90fbcd7d1fda1 SHA256 7d8f78cda817c745f88fb951fa0e9ab852f215cdb931e97dedb87a623fc042b6
2 2
 DIST util-linux-2.20.1.tar.bz2 4614302 RMD160 4ab3435dbd8b83a0c353301b6e0f89a91aa3ca2c SHA1 b5a9468b933743d2f15d41062c19830a5f804f15 SHA256 d16ebcda3e64ab88ed363d9c1242cdb7ccfd5e1f56c83d0c3b0638c23793bbe0
  3
+DIST util-linux-2.21-20120228.diff.bz2 43809 RMD160 dd2b5610ad01e6788de45c2532ca69eb41ec7ded SHA1 c716020ca8df7b8871a54abf7a4effa9437d83ea SHA256 fc28d4f0e2737b53a4db59072ab0fcf4180a8ece28c79219a21780124798572a
3 4
 DIST util-linux-2.21.tar.xz 2954504 RMD160 0e0a5b16ef13fb2e0f238e1332dc31e14e358ea6 SHA1 0ee465519bbe6aad3a22f83bf92221e85c4e2e51 SHA256 5192e8ba7dcf3cf0dc447f07b3d177f6cb3fb49dfae54ac45d6c8c7d86eeab0f
112  sys-apps/util-linux/util-linux-2.21-r1.ebuild
... ...
@@ -0,0 +1,112 @@
  1
+# Distributed under the terms of the GNU General Public License v2
  2
+
  3
+EAPI="3"
  4
+
  5
+EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git"
  6
+inherit eutils toolchain-funcs libtool flag-o-matic
  7
+[[ ${PV} == "9999" ]] && inherit git-2 autotools
  8
+
  9
+MY_PV=${PV/_/-}
  10
+MY_P=${PN}-${MY_PV}
  11
+S=${WORKDIR}/${MY_P}
  12
+
  13
+DESCRIPTION="Various useful Linux utilities"
  14
+HOMEPAGE="http://www.kernel.org/pub/linux/utils/util-linux/"
  15
+if [[ ${PV} == "9999" ]] ; then
  16
+	SRC_URI=""
  17
+	#KEYWORDS=""
  18
+else
  19
+	SRC_URI="mirror://kernel/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.xz
  20
+		loop-aes? ( http://loop-aes.sourceforge.net/updates/util-linux-2.21-20120228.diff.bz2 )"
  21
+	KEYWORDS="*"
  22
+fi
  23
+
  24
+LICENSE="GPL-2 GPL-3 LGPL-2.1 BSD-4 MIT public-domain"
  25
+SLOT="0"
  26
+IUSE="+cramfs crypt ddate loop-aes ncurses nls old-linux perl selinux slang static-libs uclibc unicode"
  27
+
  28
+RDEPEND="!sys-process/schedutils
  29
+	!sys-apps/setarch
  30
+	!<sys-apps/sysvinit-2.88-r3
  31
+	!<sys-libs/e2fsprogs-libs-1.41.8
  32
+	!<sys-fs/e2fsprogs-1.41.8
  33
+	cramfs? ( sys-libs/zlib )
  34
+	ncurses? ( >=sys-libs/ncurses-5.2-r2 )
  35
+	perl? ( dev-lang/perl )
  36
+	selinux? ( sys-libs/libselinux )
  37
+	slang? ( sys-libs/slang )"
  38
+DEPEND="${RDEPEND}
  39
+	nls? ( sys-devel/gettext )
  40
+	virtual/os-headers"
  41
+
  42
+src_prepare() {
  43
+	if [[ ${PV} == "9999" ]] ; then
  44
+		po/update-potfiles
  45
+		autopoint --force
  46
+		eautoreconf
  47
+	else
  48
+		use loop-aes && epatch "${WORKDIR}"/util-linux-*.diff
  49
+	fi
  50
+	use uclibc && sed -i -e s/versionsort/alphasort/g -e s/strverscmp.h/dirent.h/g mount/lomount.c
  51
+	elibtoolize
  52
+}
  53
+
  54
+lfs_fallocate_test() {
  55
+	# Make sure we can use fallocate with LFS #300307
  56
+	cat <<-EOF > "${T}"/fallocate.c
  57
+	#define _GNU_SOURCE
  58
+	#include <fcntl.h>
  59
+	main() { return fallocate(0, 0, 0, 0); }
  60
+	EOF
  61
+	append-lfs-flags
  62
+	$(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} "${T}"/fallocate.c -o /dev/null >/dev/null 2>&1 \
  63
+		|| export ac_cv_func_fallocate=no
  64
+	rm -f "${T}"/fallocate.c
  65
+}
  66
+
  67
+src_configure() {
  68
+	lfs_fallocate_test
  69
+	econf \
  70
+		--enable-fs-paths-extra=/usr/sbin \
  71
+		$(use_enable nls) \
  72
+		--enable-agetty \
  73
+		$(use_enable cramfs) \
  74
+		$(use_enable ddate) \
  75
+		$(use_enable old-linux elvtune) \
  76
+		--with-ncurses=$(usex ncurses $(usex unicode auto yes) no) \
  77
+		--disable-kill \
  78
+		--disable-last \
  79
+		--disable-mesg \
  80
+		--enable-partx \
  81
+		--enable-raw \
  82
+		--enable-rename \
  83
+		--disable-reset \
  84
+		--disable-login-utils \
  85
+		--enable-schedutils \
  86
+		--disable-wall \
  87
+		--enable-write \
  88
+		$(use_with selinux) \
  89
+		$(use_with slang) \
  90
+		$(use_enable static-libs static) \
  91
+		$(tc-has-tls || echo --disable-tls)
  92
+}
  93
+
  94
+src_install() {
  95
+	emake install DESTDIR="${D}" || die
  96
+	dodoc AUTHORS NEWS README* Documentation/{TODO,*.txt}
  97
+
  98
+	if ! use perl ; then #284093
  99
+		rm "${ED}"/usr/bin/chkdupexe || die
  100
+		rm "${ED}"/usr/share/man/man1/chkdupexe.1 || die
  101
+	fi
  102
+
  103
+	# need the libs in /
  104
+	gen_usr_ldscript -a blkid mount uuid
  105
+	# e2fsprogs-libs didnt install .la files, and .pc work fine
  106
+	find "${ED}" -name '*.la' -delete
  107
+
  108
+	if use crypt ; then
  109
+		newinitd "${FILESDIR}"/crypto-loop.initd crypto-loop || die
  110
+		newconfd "${FILESDIR}"/crypto-loop.confd crypto-loop || die
  111
+	fi
  112
+}

0 notes on commit cdffe91

Please sign in to comment.
Something went wrong with that request. Please try again.