# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Captive uses binary Windows drivers for full NTFS r/w access." HOMEPAGE="http://www.jankratochvil.net/project/captive/" SRC_URI="http://www.jankratochvil.net/project/captive/dist/${P}.tar.gz" # License of the package. This must match the name of file(s) in # /usr/portage/licenses/. For complex license combination see the developer # docs on gentoo.org for details. LICENSE="GPL2" SLOT="0" KEYWORDS="~x86" IUSE="X Gnome" # Build-time dependencies, such as # ssl? ( >=dev-libs/openssl-0.9.6b ) # >=dev-lang/perl-5.6.1-r1 DEPEND=">=sys-fs/ntfsprogs-1.8.0 >=sys-fs/captive-lufs-0.9.7-r7" # Run-time dependencies, same as DEPEND if RDEPEND isn't defined: #RDEPEND="" S=${WORKDIR}/${P} src_compile() { econf || die emake || die } src_install() { make DESTDIR=${D} install || die } pkg_postinst() { # we need to add the user and group used by this program for sandbox # purposes echo "Adding captive group..." groupadd captive echo "Adding captive user..." useradd -m -s /bin/false -g captive captive } pkg_postrm() { # This causes problems when upgrading from a previous version, # so leave out until a proper check can be put in. #echo "Removing captive user..." #userdel captive #echo "Removing captive group..." #groupdel captive }