diff options
author | Joshua Kinard <kumba@gentoo.org> | 2003-06-28 02:51:48 +0000 |
---|---|---|
committer | Joshua Kinard <kumba@gentoo.org> | 2003-06-28 02:51:48 +0000 |
commit | b37c4c88da55f602d0d7d65b6b7120f1d28492fd (patch) | |
tree | 60ded338fec2b704bb86b78bacda696cf2180555 /app-admin/sus | |
parent | Initial Creation; Added ~x86, ~sparc & ~mips to KEYWORDS (diff) | |
download | gentoo-2-b37c4c88da55f602d0d7d65b6b7120f1d28492fd.tar.gz gentoo-2-b37c4c88da55f602d0d7d65b6b7120f1d28492fd.tar.bz2 gentoo-2-b37c4c88da55f602d0d7d65b6b7120f1d28492fd.zip |
Initial Creation; Added ~x86, ~sparc & ~mips to KEYWORDS
Diffstat (limited to 'app-admin/sus')
-rw-r--r-- | app-admin/sus/ChangeLog | 10 | ||||
-rw-r--r-- | app-admin/sus/Manifest | 4 | ||||
-rw-r--r-- | app-admin/sus/files/digest-sus-2.0.1 | 1 | ||||
-rw-r--r-- | app-admin/sus/files/susers.cpp | 32 | ||||
-rw-r--r-- | app-admin/sus/sus-2.0.1.ebuild | 51 |
5 files changed, 96 insertions, 2 deletions
diff --git a/app-admin/sus/ChangeLog b/app-admin/sus/ChangeLog new file mode 100644 index 000000000000..960ad7657cb2 --- /dev/null +++ b/app-admin/sus/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-admin/sus +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/sus/ChangeLog,v 1.1 2003/06/28 02:51:18 kumba Exp $ + +*sus-2.0.1 (27 Jun 2003) + + 27 Jun 2003; Joshua Kinard <kumba@gentoo.org> sus-2.0.1.ebuild, files/susers.cpp: + Initial creation; + Set KEYWORDS to ~x86, ~sparc, and ~mips + diff --git a/app-admin/sus/Manifest b/app-admin/sus/Manifest index 26e3808343f4..c46a23c2d440 100644 --- a/app-admin/sus/Manifest +++ b/app-admin/sus/Manifest @@ -1,4 +1,4 @@ -MD5 81ddd16a05e009edb0484ed66e51ee53 sus-2.0.1.ebuild 1205 -MD5 6ddec33584305023f2bba379f17c7712 ChangeLog 295 +MD5 5f12bac41c990c0ff246473971f7b7ff sus-2.0.1.ebuild 1297 +MD5 9aca26ad5dc9871590255fac58b3f0d4 ChangeLog 380 MD5 caca9a5256341cde0959a983aea7c65a files/digest-sus-2.0.1 60 MD5 e551ecc3164caa7ab831c58f5f7244a5 files/susers.cpp 988 diff --git a/app-admin/sus/files/digest-sus-2.0.1 b/app-admin/sus/files/digest-sus-2.0.1 new file mode 100644 index 000000000000..481da74397d9 --- /dev/null +++ b/app-admin/sus/files/digest-sus-2.0.1 @@ -0,0 +1 @@ +MD5 40527120f4f761aabd8d2dc1443e1469 sus-2.0.1.tar.Z 202713 diff --git a/app-admin/sus/files/susers.cpp b/app-admin/sus/files/susers.cpp new file mode 100644 index 000000000000..6ecd3023d5f3 --- /dev/null +++ b/app-admin/sus/files/susers.cpp @@ -0,0 +1,32 @@ +// Internal macros +#define LOG_TO_SYSLOG 1 +#define LOG_FACILITY LOG_DAEMON +#define LOG_LEVEL LOG_INFO + +#define WRITE_ROOT_TIMESTAMP 1 +#define ROOT_TIMESTAMP_DIR /var/run/sus + +#define UMASK 0022 + +#define ENV_PRESERVE "TERM=.*","TZ=.*","DISPLAY=.*",\ + "EDITOR=.*","VISUAL=.*","TAPE=.*",\ + "XAUTHORITY=.*","NIS_PATH=.*",\ + "LM_LICENSE_FILE=.*","LPDEST=.*",\ + "PRINTER=.*","MANPATH=.*",\ + "TERMINFO=.*","PS.=.*",\ + "SSH_.*=.*" + +#define PATH "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:" \ +"/opt/bin" + +//################################################################### +// People groups +//################################################################### +#define WHEEL_USERS USER(ingroup=GROUP(groupname=wheel)) + +//################################################################### +// Now for the permissions +//################################################################### + +// members of group "wheel" can run anything, anywhere +WHEEL_USERS : ANY_COMMAND diff --git a/app-admin/sus/sus-2.0.1.ebuild b/app-admin/sus/sus-2.0.1.ebuild new file mode 100644 index 000000000000..359dec4da47f --- /dev/null +++ b/app-admin/sus/sus-2.0.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/sus/sus-2.0.1.ebuild,v 1.1 2003/06/28 02:51:18 kumba Exp $ + +DESCRIPTION="allows certain users to run commands as root or other users" +SRC_URI="http://pdg.uow.edu.au/sus/${P}.tar.Z" +HOMEPAGE="http://pdg.uow.edu.au/sus/" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~x86 ~sparc ~mips" +IUSE="pam" + +DEPEND="virtual/glibc + pam? ( >=sys-libs/pam-0.73-r1 )" + +src_compile() { + local myconf + local lflags + myconf="-DDEBUG" + use pam > /dev/null 2>&1 && myconf="${myconf} -DUSE_PAM" && lflags="-lpam" + myconf="${myconf} -DPROMISCUOUS -DUSE_SHADOW \ + -DSUSERS=\\\"/etc/susers.cpp\\\"" + make \ + CC=${CC} \ + CFLAGS="${CFLAGS} ${myconf}" \ + LFLAGS="${lflags}" \ + sus || die +} + +src_install() { + ln -s man/sus.1 sus.8 + dobin sus + doman sus.8 + dodoc COPYING INSTALL README susers.sample + dodir /var/run/sus + insinto /etc + newins ${FILESDIR}/susers.cpp susers.cpp + fperms 4755 /usr/bin/sus + fperms 700 /var/run/sus + insinto /etc + doins ${FILESDIR}/susers.cpp +} + +pkg_postinst() { + einfo "" + einfo "A default configuration file has been installed as" + einfo "/etc/susers.cpp. It is best to read over it and" + einfo "make any changes as necessary." + einfo "" +} |