|
|
# Copyright 1999-2004 Gentoo Foundation | # Copyright 1999-2004 Gentoo Foundation |
# Distributed under the terms of the GNU General Public License v2 | # Distributed under the terms of the GNU General Public License v2 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/util-linux-2.12i-r1.ebuild,v 1.2 2004/11/16 02:28:00 vapier Exp $ |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/util-linux-2.12i-r1.ebuild,v 1.1 2004/11/14 08:46:54 vapier Exp $ |
| |
inherit eutils flag-o-matic toolchain-funcs | inherit eutils flag-o-matic toolchain-funcs |
| |
AES_VER="2.2d" |
AES_VER="3.0a" |
DESCRIPTION="Various useful Linux utilities" | DESCRIPTION="Various useful Linux utilities" |
HOMEPAGE="http://www.kernel.org/pub/linux/utils/util-linux/" | HOMEPAGE="http://www.kernel.org/pub/linux/utils/util-linux/" |
SRC_URI="mirror://kernel/linux/utils/${PN}/${P}.tar.gz | SRC_URI="mirror://kernel/linux/utils/${PN}/${P}.tar.gz |
crypt? ( | crypt? ( |
mirror://gentoo/util-linux-2.12i-cryptoapi-losetup.patch.bz2 | mirror://gentoo/util-linux-2.12i-cryptoapi-losetup.patch.bz2 |
http://dev.gentoo.org/~vapier/dist/util-linux-2.12i-cryptoapi-losetup.patch.bz2 | http://dev.gentoo.org/~vapier/dist/util-linux-2.12i-cryptoapi-losetup.patch.bz2 |
)" |
) |
# crypt? ( http://loop-aes.sourceforge.net/loop-AES/loop-AES-v${AES_VER}.tar.bz2 ) |
loop-aes? ( |
|
http://loop-aes.sourceforge.net/loop-AES/loop-AES-v${AES_VER}.tar.bz2 )" |
| |
LICENSE="GPL-2" | LICENSE="GPL-2" |
SLOT="0" | SLOT="0" |
KEYWORDS="~alpha ~amd64 ~arm hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" | KEYWORDS="~alpha ~amd64 ~arm hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
IUSE="crypt nls static pam selinux perl" |
IUSE="crypt loop-aes nls static pam selinux perl" |
| |
DEPEND="virtual/libc | DEPEND="virtual/libc |
>=sys-libs/ncurses-5.2-r2 | >=sys-libs/ncurses-5.2-r2 |
>=sys-fs/e2fsprogs-1.34 | >=sys-fs/e2fsprogs-1.34 |
selinux? ( sys-libs/libselinux ) | selinux? ( sys-libs/libselinux ) |
pam? ( sys-apps/pam-login ) | pam? ( sys-apps/pam-login ) |
crypt? ( app-crypt/hashalot )" |
crypt? ( app-crypt/hashalot ) |
|
loop-aes? ( sys-fs/loop-aes )" |
RDEPEND="${DEPEND} | RDEPEND="${DEPEND} |
perl? ( dev-lang/perl ) | perl? ( dev-lang/perl ) |
nls? ( sys-devel/gettext )" | nls? ( sys-devel/gettext )" |
|
|
unpack ${A} | unpack ${A} |
cd ${S} | cd ${S} |
| |
|
if use crypt && use loop-aes; then |
|
eerror "" |
|
eerror "Cryptoloop and loop-aes are incompatible with" |
|
eerror "with each other. Please specify either crypt" |
|
eerror "or loop-aes flag in USE, but not both" |
|
eerror "" |
|
die |
|
fi |
# crypto support, yummy #24458 | # crypto support, yummy #24458 |
#use crypt && epatch ${WORKDIR}/loop-AES-v${AES_VER}/util-linux-*.diff |
use loop-aes && epatch ${WORKDIR}/loop-AES-v${AES_VER}/util-linux-2.12i.diff |
use crypt && epatch ${WORKDIR}/util-linux-2.12i-cryptoapi-losetup.patch | use crypt && epatch ${WORKDIR}/util-linux-2.12i-cryptoapi-losetup.patch |
| |
# Fix rare failures with -j4 or higher | # Fix rare failures with -j4 or higher |