# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-crypt/bestcrypt/bestcrypt-1.5_p7.ebuild,v 1.3 2005/01/03 04:33:12 dragonheart Exp $ inherit flag-o-matic eutils check-kernel MY_PN="bcrypt" DESCRIPTION="commercially licensed transparent filesystem encryption" HOMEPAGE="http://www.jetico.com/" SRC_URI="mirror://gentoo/BestCrypt-${PV/_p/-}.tar.gz" LICENSE="bestcrypt" SLOT="0" IUSE="" KEYWORDS="x86 ~amd64" DEPEND="virtual/linux-sources" S=${WORKDIR}/bcrypt pkg_setup() { if [ -e /usr/src/linux/include/linux/modsetver.h ] && [ ! -e /usr/src/linux/include/linux/modversions.h ]; then einfo "Setting modsetver->modversions symlink" ln -s /usr/src/linux/include/linux/modsetver.h \ /usr/src/linux/include/linux/modversions.h fi } src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${P}-makefile_fix.patch } src_compile() { filter-flags -fforce-addr emake -j1 EXTRA_CFLAGS="${CFLAGS}" EXTRA_CXXFLAGS="${CXXFLAGS}" || die } src_install() { exeinto /etc/rc.d/init.d doexe ${FILESDIR}/bcrypt dodir \ /usr/bin \ /etc/init.d \ /etc/rc.d/rc{0,1,2,3,4,5,6}.d \ /etc/rc{0,1,2,3,4,5,6}.d \ /usr/share/man/man8 \ /lib/modules/${KV}/kernel/drivers/block einstall MAN_PATH="/usr/share/man" \ root="${D}" \ MOD_PATH=/lib/modules/${KV}/kernel/drivers/block exeinto /etc/init.d newexe ${FILESDIR}/bcrypt2 bcrypt rm -rf ${D}/etc/rc*.d dodoc README LICENSE }