/[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.3 - (show annotations) (download)
Mon Oct 27 10:39:14 2003 UTC (16 years, 3 months ago) by aliz
Branch: MAIN
Changes since 1.2: +2 -2 lines
x86 unmask

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/app-admin/sus/sus-2.0.2.ebuild,v 1.2 2003/09/30 17:46:38 kumba Exp $
4
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 KEYWORDS="x86 ~sparc mips"
12 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