mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-07 05:34:45 +02:00
Closes: https://bugs.gentoo.org/425874 Closes: https://bugs.gentoo.org/919361 Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com> Signed-off-by: Sam James <sam@gentoo.org>
45 lines
870 B
Bash
45 lines
870 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit autotools flag-o-matic
|
|
|
|
DESCRIPTION="A daemon to execute processes with special privileges in a nosuid environment"
|
|
HOMEPAGE="https://s0ftpj.org/projects/sud/index.htm"
|
|
SRC_URI="https://s0ftpj.org/projects/sud/${P}.tar.gz"
|
|
|
|
LICENSE="BSD GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~ppc ~x86"
|
|
|
|
DEPEND="elibc_musl? ( sys-libs/queue-standalone )"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${PN}-1.3-fix-build-system.patch
|
|
"${FILESDIR}"/${PN}-1.3-use-system-queue.patch
|
|
"${FILESDIR}"/${PN}-1.3-c23.patch
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
# bug #713470
|
|
rm sud/queue.h || die
|
|
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
append-cppflags -D_GNU_SOURCE
|
|
default
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
|
|
doman ilogin.1 sud.1 suz.1
|
|
insinto /etc
|
|
doins miscs/sud.conf*
|
|
newinitd "${FILESDIR}"/sud.rc6 sud
|
|
}
|