# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Shell scripts to manage POSIX accounts in an LDAP." HOMEPAGE="http://contribs.martymac.org/" SRC_URI="http://contribs.martymac.org/${PN}/${P}.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="logrotate" DEPEND="" RDEPEND="net-nds/openldap app-arch/sharutils logrotate? ( app-admin/logrotate )" src_unpack() { unpack ${A} cd "${S}" sed -i -e "s,/var/log/,/var/log/${PN}/,g" etc/* || die "sed failed" } src_compile() { # No compilation required. return } src_install() { emake install DESTDIR="${D}" PREFIX="/usr" MANDIR="/usr/share/man" ETCDIR="/etc/ldapscripts" || die "emake failed" dodoc CHANGELOG README TODO VERSION || die "dodoc failed" keepdir "/var/log/${PN}" || die "keepdir failed" fperms 700 "/var/log/${PN}" || die "fperms failed" if use logrotate; then insinto /etc/logrotate.d || die "insinto failed" newins "${FILESDIR}/${PN}.logrotate" "${PN}" || die "newins failed" fi }