/[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.8 - (hide annotations) (download)
Mon Sep 13 20:39:01 2004 UTC (15 years, 5 months ago) by kumba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Added patch to fix a local root exploit (Bug #63927)

1 agriffis 1.6 # Copyright 1999-2004 Gentoo Foundation
2 kumba 1.1 # Distributed under the terms of the GNU General Public License v2
3 kumba 1.8 # $Header: /var/cvsroot/gentoo-x86/app-admin/sus/sus-2.0.2.ebuild,v 1.7 2004/06/25 23:00:43 vapier Exp $
4 vapier 1.5
5     inherit gcc
6 kumba 1.1
7     DESCRIPTION="allows certain users to run commands as root or other users"
8 vapier 1.5 HOMEPAGE="http://pdg.uow.edu.au/sus/"
9 kumba 1.1 SRC_URI="http://pdg.uow.edu.au/sus/${P}.tar.Z"
10    
11 vapier 1.5 LICENSE="GPL-2"
12 kumba 1.1 SLOT="0"
13 aliz 1.3 KEYWORDS="x86 ~sparc mips"
14 kumba 1.1 IUSE="pam"
15    
16 vapier 1.7 DEPEND="virtual/libc
17 kumba 1.1 pam? ( >=sys-libs/pam-0.73-r1 )"
18    
19     src_compile() {
20     local myconf
21     local lflags
22     myconf="-DDEBUG"
23 vapier 1.5 use pam && myconf="${myconf} -DUSE_PAM" && lflags="-lpam"
24 kumba 1.1 myconf="${myconf} -DPROMISCUOUS -DUSE_SHADOW \
25     -DSUSERS=\\\"/etc/susers.cpp\\\""
26     make \
27 vapier 1.5 CC=$(gcc-getCC) \
28 kumba 1.1 CFLAGS="${CFLAGS} ${myconf}" \
29     LFLAGS="${lflags}" \
30     sus || die
31     }
32    
33     src_install() {
34 vapier 1.5 dobin sus || die
35     newman man/sus.1 sus.8
36     dodoc INSTALL README susers.sample
37 kumba 1.1 dodir /var/run/sus
38     insinto /etc
39     newins ${FILESDIR}/susers.cpp susers.cpp
40     fperms 4755 /usr/bin/sus
41     fperms 700 /var/run/sus
42     insinto /etc
43     doins ${FILESDIR}/susers.cpp
44     }
45    
46     pkg_postinst() {
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     }

  ViewVC Help
Powered by ViewVC 1.1.20