parlay

yet another gentoo overlay
git clone https://git.parazyd.org/parlay
Log | Files | Refs | README

commit b8f61661fdf6d6847e1ecc4a6dcb80ce4a5f8f77
parent c7073c01e0280a2f682d0807d9bce15f09e0c766
Author: parazyd <parazyd@dyne.org>
Date:   Thu, 22 Feb 2018 13:56:03 +0100

app-admin/sup: Add 9999

Diffstat:
Aapp-admin/sup/metadata.xml | 7+++++++
Aapp-admin/sup/sup-9999.ebuild | 44++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 51 insertions(+), 0 deletions(-)

diff --git a/app-admin/sup/metadata.xml b/app-admin/sup/metadata.xml @@ -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> diff --git a/app-admin/sup/sup-9999.ebuild b/app-admin/sup/sup-9999.ebuild @@ -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" +}