app-crypt/dm-crypt-0.1 ebuild request dm-crypt: a device-mapper crypto target http://www.saout.de/misc/dm-crypt/ --- andrew morton switched from cryptoapi to dm-crypt in kernel 2.6.3+ http://lkml.org/lkml/2004/2/18/19 (english) http://www.heise.de/security/news/meldung/45085 (german)
Could you possibly write an ebuild that works and post it here?
Please look at http://www.gentoo.org/doc/en/gentoo-howto.xml for instructions how to create ebuild files.
Created attachment 34066 [details] dm-crypt-0.1.ebuild I made a first ebuild-approach for this. I compiles cleanly, but when I tried my luck and get a test run I just get. $ echo 0 `blockdev --getsize /dev/loop0` crypt aes-plain 01234567889abcdef0123456789abcdef 0 /dev/loop0 0 | dmsetup create volume1 device-mapper ioctl cmd 9 failed: Invalid argument Command failed Do not know how to fix this. Perhaps anyone knows. I just wanted to share this little ebuild, so that others can try their luck/knockledge ;-) Please note that this ebuild depends on libdevmapper (see Bug #55057 for it).
Created attachment 34109 [details] dm-crypt-0.1.ebuild I changed DEPEND, because libdevmapper was already in portage as sys-libs/device-mapper.
This ebuild worked for me, thanks! Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-gentoo-r11) ================================================================= System uname: 2.6.7-gentoo-r11 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.16 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=i686 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apm arts avi berkdb bonobo crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib java jpeg kde ldap libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
This isn't an ebuild for dm-crypt, it is an ebuild for cryptsetup. There is an ebuild in portage now. Closing this ticket.