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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20