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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Nov 26 20:36:53 2006 UTC (13 years, 1 month ago) by beandog
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +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.2-r1.ebuild,v 1.3 2005/05/30 17:47:59 swegener Exp $
4
5 inherit eutils 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="x86 sparc mips"
14 IUSE="pam"
15
16 DEPEND="virtual/libc
17 pam? ( >=sys-libs/pam-0.73-r1 )"
18
19 src_unpack() {
20 unpack ${A}
21 cd ${S}
22
23 # Fixes a local root vulnerability (Bug #63927)
24 epatch ${FILESDIR}/${P}-syslog-vuln-fix.patch
25 }
26
27 src_compile() {
28 local myconf
29 local lflags
30 myconf="-DDEBUG"
31 use pam && myconf="${myconf} -DUSE_PAM" && lflags="-lpam"
32 myconf="${myconf} -DPROMISCUOUS -DUSE_SHADOW \
33 -DSUSERS=\\\"/etc/susers.cpp\\\""
34 make \
35 CC=$(tc-getCC) \
36 CFLAGS="${CFLAGS} ${myconf}" \
37 LFLAGS="${lflags}" \
38 sus || die
39 }
40
41 src_install() {
42 dobin sus || die
43 newman man/sus.1 sus.8
44 dodoc INSTALL README susers.sample
45 dodir /var/run/sus
46 insinto /etc
47 newins ${FILESDIR}/susers.cpp susers.cpp
48 fperms 4755 /usr/bin/sus
49 fperms 700 /var/run/sus
50 insinto /etc
51 doins ${FILESDIR}/susers.cpp
52 }
53
54 pkg_postinst() {
55 einfo "A default configuration file has been installed as"
56 einfo "/etc/susers.cpp. It is best to read over it and"
57 einfo "make any changes as necessary."
58 }

  ViewVC Help
Powered by ViewVC 1.1.20