diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2005-03-01 23:25:14 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2005-03-01 23:25:14 +0000 |
commit | ab62db1528079c719d308fce236399bd9752bce6 (patch) | |
tree | 6859db958acd9d7ad5a6abae336d5f3726101815 /sys-fs/cryptsetup/cryptsetup-0.1-r1.ebuild | |
parent | version bump (diff) | |
download | gentoo-2-ab62db1528079c719d308fce236399bd9752bce6.tar.gz gentoo-2-ab62db1528079c719d308fce236399bd9752bce6.tar.bz2 gentoo-2-ab62db1528079c719d308fce236399bd9752bce6.zip |
Add cryptfs conf.d file and addon scripts.
(Portage version: 2.0.51.18)
Diffstat (limited to 'sys-fs/cryptsetup/cryptsetup-0.1-r1.ebuild')
-rw-r--r-- | sys-fs/cryptsetup/cryptsetup-0.1-r1.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/sys-fs/cryptsetup/cryptsetup-0.1-r1.ebuild b/sys-fs/cryptsetup/cryptsetup-0.1-r1.ebuild new file mode 100644 index 000000000000..ddda2aefcb17 --- /dev/null +++ b/sys-fs/cryptsetup/cryptsetup-0.1-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/cryptsetup-0.1-r1.ebuild,v 1.1 2005/03/01 23:25:14 azarah Exp $ + +DESCRIPTION="Tool to setup encrypted devices with dm-crypt" +HOMEPAGE="http://www.saout.de/misc/dm-crypt/" +SRC_URI="http://www.saout.de/misc/dm-crypt/${PN}-${PV}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc ~amd64" + +DEPEND=">=sys-fs/device-mapper-1.00.07-r1 + >=dev-libs/libgcrypt-1.1.42" + +IUSE="" + +S=${WORKDIR}/${PN}-${PV} + +pkg_setup() { + if ! grep CONFIG_DM_CRYPT /usr/src/linux/.config > /dev/null 2>&1 + then + ewarn "dm-crypt is not enabled in /usr/src/linux/.config" + ewarn "please see $HOMEPAGE" + ewarn "for details on how to enable dm-crypt for your kernel" + fi +} + +src_compile() { + cd ${S} + + econf --bindir=/bin --disable-nls|| die + + sed -i -e 's|-lgcrypt|/usr/lib/libgcrypt.a|' Makefile src/Makefile + sed -i -e 's|-lgpg-error|/usr/lib/libgpg-error.a|' Makefile src/Makefile + sed -i -e 's|-lpopt|/usr/lib/libpopt.a|' src/Makefile + + emake || die +} + +src_install() { + make DESTDIR=${D} install + + newconfd ${FILESDIR}/cryptfs.confd cryptfs + insinto /lib/rcscripts/addons + doins "${FILESDIR}"/dm-crypt-start.sh + doins "${FILESDIR}"/dm-crypt-stop.sh +} |