parlay

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

commit 72985604dc0c49a60c022452ccd5d2333d97579a
parent 53a167b238991eeab302fa9c4c64278c96e9b294
Author: parazyd <parazyd@dyne.org>
Date:   Mon, 19 Apr 2021 19:29:17 +0200

app-admin/protecc: Add 9999 ebuild.

Diffstat:
Aapp-admin/protecc/metadata.xml | 7+++++++
Aapp-admin/protecc/protecc-9999.ebuild | 40++++++++++++++++++++++++++++++++++++++++
2 files changed, 47 insertions(+), 0 deletions(-)

diff --git a/app-admin/protecc/metadata.xml b/app-admin/protecc/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/protecc/protecc-9999.ebuild b/app-admin/protecc/protecc-9999.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit git-r3 linux-info linux-mod savedconfig + +DESCRIPTION="A linux kernel module to fight against police terror" +HOMEPAGE="https://github.com/parazyd/protecc" +EGIT_REPO_URI="https://github.com/parazyd/protecc.git" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="savedconfig" + +BUILD_TARGETS="all" +CONFIG_CHECK="USB" +MODULE_NAMES="protecc(misc:${S})" + +src_prepare() { + default + restore_config config.h +} + +src_compile() { + BUILD_PARAMS="KERNELDIR=${KV_OUT_DIR} M=${S}" + + linux-mod_src_compile +} + +src_install() { + linux-mod_src_install + dodoc README.md + save_config config.h +} + +pkg_postinst() { + einfo "This package has USE=savedconfig. Make sure you set it up!" +}