# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="allows certain users to run commands as root or other users" SRC_URI="http://pdg.uow.edu.au/sus/${P}.tar.Z" HOMEPAGE="http://pdg.uow.edu.au/sus/" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86" IUSE="pam" DEPEND="virtual/glibc pam? ( >=sys-libs/pam-0.73-r1 )" src_compile() { local myconf local lflags myconf="-DDEBUG" use pam > /dev/null 2>&1 && myconf="${myconf} -DUSE_PAM" && lflags="-lpam" myconf="${myconf} -DPROMISCUOUS -DUSE_SHADOW \ -DSUSERS=\\\"/etc/susers.cpp\\\"" make \ CC=${CC} \ CFLAGS="${CFLAGS} ${myconf}" \ LFLAGS="${lflags}" \ sus || die } src_install() { ln -s man/sus.1 sus.8 dobin sus doman sus.8 dodoc COPYING INSTALL README susers.sample dodir /var/run/sus insinto /etc newins ${FILESDIR}/susers.cpp susers.cpp fperms 4755 /usr/bin/sus fperms 700 /var/run/sus }