tapp-admin/sup: Add 9999 - parlay - yet another gentoo overlay HTML git clone https://git.parazyd.org/parlay DIR Log DIR Files DIR Refs DIR README --- DIR commit b8f61661fdf6d6847e1ecc4a6dcb80ce4a5f8f77 DIR parent c7073c01e0280a2f682d0807d9bce15f09e0c766 HTML Author: parazyd <parazyd@dyne.org> Date: Thu, 22 Feb 2018 13:56:03 +0100 app-admin/sup: Add 9999 Diffstat: A app-admin/sup/metadata.xml | 7 +++++++ A app-admin/sup/sup-9999.ebuild | 44 +++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 0 deletions(-) --- DIR diff --git a/app-admin/sup/metadata.xml b/app-admin/sup/metadata.xml t@@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>parazyd@dyne.org</email> +</maintainer> +</pkgmetadata> DIR diff --git a/app-admin/sup/sup-9999.ebuild b/app-admin/sup/sup-9999.ebuild t@@ -0,0 +1,44 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit git-r3 savedconfig + +DESCRIPTION="small and secure tool for privilege escalation" +HOMEPAGE="https://github.com/parazyd/sup/" +EGIT_REPO_URI="https://github.com/parazyd/sup/" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="" +IUSE="savedconfig" + +DEPEND="" +RDEPEND="" + +src_prepare() { + default + + sed -i \ + -e "/^CFLAGS/{s|=|+=|;s|-O. | |g}" \ + -e "/^LDFLAGS/{s|=|+=|g;s|-s$| |g}" \ + config.mk || die + + restore_config config.h +} + +src_compile() { + emake all +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install + dodoc README + save_config config.h +} + +pkg_postinst() { + einfo "This ebuild has support for user defined configs" + einfo "Please read this ebuild for more details and re-emerge as needed" +}