/[gentoo-x86]/app-admin/sus/sus-2.0.6.ebuild
Gentoo

Contents of /app-admin/sus/sus-2.0.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Nov 26 20:36:53 2006 UTC (13 years, 2 months ago) by beandog
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
treecleaned, bug 148901

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-admin/sus/sus-2.0.6.ebuild,v 1.5 2005/06/05 11:27:39 hansmi Exp $
4
5 inherit toolchain-funcs
6
7 DESCRIPTION="allows certain users to run commands as root or other users"
8 HOMEPAGE="http://pdg.uow.edu.au/sus/"
9 SRC_URI="http://pdg.uow.edu.au/sus/${P}.tar.Z"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="mips ppc sparc x86"
14 IUSE="pam"
15
16 DEPEND="virtual/libc
17 pam? ( >=sys-libs/pam-0.73-r1 )"
18
19
20 src_compile() {
21 local myconf
22 local lflags
23 myconf="-DDEBUG"
24 use pam && myconf="${myconf} -DUSE_PAM" && lflags="-lpam"
25 myconf="${myconf} -DPROMISCUOUS -DUSE_SHADOW \
26 -DSUSERS=\\\"/etc/susers.cpp\\\""
27 make \
28 CC=$(tc-getCC) \
29 CFLAGS="${CFLAGS} ${myconf}" \
30 LFLAGS="${lflags}" \
31 sus || die
32 }
33
34 src_install() {
35 dobin sus || die
36 newman man/sus.1 sus.8
37 dodoc INSTALL README susers.sample
38 dodir /var/run/sus
39 insinto /etc
40 newins ${FILESDIR}/susers.cpp susers.cpp
41 fperms 4755 /usr/bin/sus
42 fperms 700 /var/run/sus
43 insinto /etc
44 doins ${FILESDIR}/susers.cpp
45 }
46
47 pkg_postinst() {
48 einfo "A default configuration file has been installed as"
49 einfo "/etc/susers.cpp. It is best to read over it and"
50 einfo "make any changes as necessary."
51 }

  ViewVC Help
Powered by ViewVC 1.1.20