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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Fri Mar 12 10:45:39 2004 UTC (15 years, 11 months ago) by mr_bones_
Branch: MAIN
Changes since 1.3: +2 -2 lines
header fix

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

  ViewVC Help
Powered by ViewVC 1.1.20