/[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 - (show 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 # Copyright 1999-2004 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.2.ebuild,v 1.7 2004/06/25 23:00:43 vapier Exp $
4
5 inherit gcc
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="x86 ~sparc mips"
14 IUSE="pam"
15
16 DEPEND="virtual/libc
17 pam? ( >=sys-libs/pam-0.73-r1 )"
18
19 src_compile() {
20 local myconf
21 local lflags
22 myconf="-DDEBUG"
23 use pam && myconf="${myconf} -DUSE_PAM" && lflags="-lpam"
24 myconf="${myconf} -DPROMISCUOUS -DUSE_SHADOW \
25 -DSUSERS=\\\"/etc/susers.cpp\\\""
26 make \
27 CC=$(gcc-getCC) \
28 CFLAGS="${CFLAGS} ${myconf}" \
29 LFLAGS="${lflags}" \
30 sus || die
31 }
32
33 src_install() {
34 dobin sus || die
35 newman man/sus.1 sus.8
36 dodoc INSTALL README susers.sample
37 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