diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-admin/sud | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-admin/sud')
-rw-r--r-- | app-admin/sud/Manifest | 1 | ||||
-rw-r--r-- | app-admin/sud/files/sud.rc6 | 21 | ||||
-rw-r--r-- | app-admin/sud/metadata.xml | 11 | ||||
-rw-r--r-- | app-admin/sud/sud-1.3-r1.ebuild | 48 |
4 files changed, 81 insertions, 0 deletions
diff --git a/app-admin/sud/Manifest b/app-admin/sud/Manifest new file mode 100644 index 000000000000..6bb6eba18f2b --- /dev/null +++ b/app-admin/sud/Manifest @@ -0,0 +1 @@ +DIST sud-1.3.tar.gz 117542 SHA256 c4fdf9dfc7a58daf75cb37d2bc4d10d3767216e2b8e4861a87c2d274bac252a0 SHA512 54b58b54e665133dcc40f00708a929bc038df1e2ce18514d830e3f3f823110bd27a209771fc378c2bcd372692e168f55150f12893e2fbd433b51e2173dbd410e WHIRLPOOL 1a59305b9afc2d35e5bb7b9c58c3b554d8fb01748abffd2e88c79bdde24e4d7046947347b45cbdae20e62a0f4712e91b7446812ce5f5d18ed194e4b886f95f4f diff --git a/app-admin/sud/files/sud.rc6 b/app-admin/sud/files/sud.rc6 new file mode 100644 index 000000000000..753c4d967844 --- /dev/null +++ b/app-admin/sud/files/sud.rc6 @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need net +} + +start() { + ebegin "Starting sud" + start-stop-daemon --start --quiet --pidfile /var/run/sud.pid \ + --exec /usr/sbin/sud + eend $? +} + +stop() { + ebegin "Stopping sud" + start-stop-daemon --stop --quiet --pidfile /var/run/sud.pid + eend $? +} diff --git a/app-admin/sud/metadata.xml b/app-admin/sud/metadata.xml new file mode 100644 index 000000000000..27c217d9a05d --- /dev/null +++ b/app-admin/sud/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>base-system</herd> +<maintainer> + <email>lu_zero@gentoo.org</email> +</maintainer> +<longdescription> +sud (superuser daemon) permits a user to switch to root privileges and to use a suid program in a nosuid environment. It is based on a client/server model and on the ability to pass file descriptors between processes. sud permits you to choose your authentication method, and your effective credentials will be checked by using a Unix domain socket. +</longdescription> +</pkgmetadata> diff --git a/app-admin/sud/sud-1.3-r1.ebuild b/app-admin/sud/sud-1.3-r1.ebuild new file mode 100644 index 000000000000..9edef7df73df --- /dev/null +++ b/app-admin/sud/sud-1.3-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 + +inherit eutils flag-o-matic + +DESCRIPTION="A daemon to execute processes with special (and customizable) privileges in a nosuid environment" +HOMEPAGE="http://s0ftpj.org/projects/sud/index.htm" +SRC_URI="http://s0ftpj.org/projects/sud/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +src_prepare() { + sed -i -e \ + 's/install-data-hook:$/& install-exec/' \ + -e \ + 's:chmod 500 $(sbindir)/ilogin:chmod 500 $(DESTDIR)$(sbindir)/ilogin:' \ + "${S}"/login/Makefile.in || die "sed failed." + sed -i -e \ + 's/install-data-hook:$/& install-exec/' \ + -e \ + 's:chmod 555 $(bindir)/suz:chmod 500 $(DESTDIR)$(bindir)/suz:' \ + "${S}"/su/Makefile.in || die "sed failed." + sed -i -e \ + 's/install-data-hook:$/& install-exec/' \ + -e \ + 's:chmod 500 $(sbindir)/sud:chmod 500 $(DESTDIR)$(sbindir)/sud:' \ + "${S}"/sud/Makefile.in || die "sed failed." +} + +src_configure() { + append-flags -D_GNU_SOURCE + default_src_configure +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed." + dodoc AUTHORS ChangeLog* README NEWS TODO + doman ilogin.1 sud.1 suz.1 + insinto /etc + doins miscs/sud.conf* + newinitd "${FILESDIR}"/sud.rc6 sud +} |