app-admin/capsudo - 0.1.3 (acooliodude-overlay)

Search

Install

Install this version:

emerge -a =app-admin/capsudo-0.1.3

Package Information

Description:
Object capability-based sudo
Homepage:
https://github.com/kaniini/capsudo
License:
all-rights-reserved

Ebuild Details

Version EAPI Keywords Slot
0.1.3 8 ~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 0
View Raw Ebuild
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

DESCRIPTION="Object capability-based sudo"
HOMEPAGE="https://github.com/kaniini/capsudo"
SRC_URI="https://github.com/kaniini/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"

DEPEND="
	sys-libs/libcap
	virtual/libcrypt:=
"
RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"

src_compile() {
	emake CC="$(tc-getCC) ${CFLAGS} ${LDFLAGS}" || die "Failed to compile capsudo"
}

src_install() {
	emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install || die "Failed to install capsudo"
	newinitd "${FILESDIR}/openrc/capsudo.initd" capsudo	
	newinitd "${FILESDIR}/openrc/capsudo.confd" capsudo
	einstalldocs
}

pkg_postinst() {
	elog "To use Capsudo, go to this link:"
	elog " https://github.com/kaniini/capsudo?tab=readme-ov-file#some-quick-command-line-examples "
}
 

Inherited Eclasses

Dependencies

DEPEND

	sys-libs/libcap
	virtual/libcrypt:=

RDEPEND

	sys-libs/libcap
	virtual/libcrypt:=

BDEPEND

virtual/pkgconfig

Manifest for 0.1.3

Type File Size Source URLs
DIST capsudo-0.1.3.tar.gz 15717 bytes https://github.com/kaniini/capsudo/archive/refs/tags/v0.1.3.tar.gz