# Copyright (C) 2005 Ed Plese # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="A database backend for the NSS databases." HOMEPAGE="http://fssos.sourceforge.net" SRC_URI="http://fssos.sourceforge.net/snapshot/${P}.tgz" LICENSE="GPL-2" KEYWORDS="~x86" IUSE="public_shadow" DEPEND=">=dev-db/mysql-3.23.9" S="${WORKDIR}/${PN}" src_compile() { if useq public_shadow; then cd ${S} epatch "${FILESDIR}/nsvsd-allow_public_shadow_access.patch" fi local config="--prefix=/ \ --sysconfdir=/etc/nsvs \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ --localstatedir=/var" econf ${config} || die "configure failed" emake || die "make failed" } src_install() { make DESTDIR=${D} install || die "make install failed" enewgroup nsvsd && enewuser nsvsd -1 -1 -1 nsvsd \ || die "couldn't add the nsvsd user and group" dodoc ChangeLog NEWS README TODO exeinto /etc/init.d doexe ${FILESDIR}/nsvsd.rc-init mv ${D}/etc/init.d/nsvsd.rc-init ${D}/etc/init.d/nsvsd }