summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2019-12-07 16:23:44 +0100
committerConrad Kostecki <conikost@gentoo.org>2019-12-07 16:46:29 +0100
commitdd1156da73572b61d56cd91c5c17fc08b59ab8e5 (patch)
treee69369d00057e0fcef31dfb5667277236cd002fb /sys-apps
parentsys-apps/edid-decode: New package (diff)
downloadgentoo-dd1156da73572b61d56cd91c5c17fc08b59ab8e5.tar.gz
gentoo-dd1156da73572b61d56cd91c5c17fc08b59ab8e5.tar.bz2
gentoo-dd1156da73572b61d56cd91c5c17fc08b59ab8e5.zip
sys-apps/pnputils: New package
This package contains two tools for interacting with Plug and Play BIOSes. Closes: https://bugs.gentoo.org/464330 Package-Manager: Portage-2.3.80, Repoman-2.3.19 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/pnputils/Manifest1
-rw-r--r--sys-apps/pnputils/files/pnputils-0.1-makefile.patch24
-rw-r--r--sys-apps/pnputils/metadata.xml13
-rw-r--r--sys-apps/pnputils/pnputils-0.1.ebuild25
4 files changed, 63 insertions, 0 deletions
diff --git a/sys-apps/pnputils/Manifest b/sys-apps/pnputils/Manifest
new file mode 100644
index 000000000000..7ec4f7c2affc
--- /dev/null
+++ b/sys-apps/pnputils/Manifest
@@ -0,0 +1 @@
+DIST pnputils_0.1.orig.tar.gz 16991 BLAKE2B 699e55dd62e90ef0f5dde40f34c60d1b0d2e47c0cfdd06a82dcb739fd952181a74e7ec5fb90afe2bf91f5c997e9cb6dc7da2c4a1454f9f858e5d28ba324ab1d0 SHA512 0f3b612f29b6c6c79221d9f5e27163dc7766159eeb16c2e1b494305cc4c6c50e9c12cee7c1be9bf12642c9adc568b622822b34d9f5f6a421d2b8f6f784fa62ba
diff --git a/sys-apps/pnputils/files/pnputils-0.1-makefile.patch b/sys-apps/pnputils/files/pnputils-0.1-makefile.patch
new file mode 100644
index 000000000000..2b158908b5b9
--- /dev/null
+++ b/sys-apps/pnputils/files/pnputils-0.1-makefile.patch
@@ -0,0 +1,24 @@
+--- a/Makefile 2006-07-07 00:54:10.000000000 +0200
++++ b/Makefile 2018-10-27 02:19:51.000000000 +0200
+@@ -1,4 +1,4 @@
+-CFLAGS = -O2 -Wall -Wstrict-prototypes
++CFLAGS += -Wall -Wstrict-prototypes
+
+ VERSION=0.1
+ DATE="July 6, 2006"
+@@ -12,9 +12,12 @@
+ M=`echo $(DATE)`; sed <$< >$@ "s/@TODAY@/$$M/;s/@VERSION@/pnputils-$(VERSION)/;"
+
+ install: all
+- install -m 755 lspnp setpnp /sbin
+- install -m 644 lspnp.8 setpnp.8 /usr/share/man/man8
+- install -m 644 pnp.ids /usr/share/misc
++ install -m 755 -d $(DESTDIR)/usr/sbin
++ install -m 755 lspnp setpnp $(DESTDIR)/usr/sbin
++ install -m 755 -d $(DESTDIR)/usr/share/man/man8
++ install -m 644 lspnp.8 setpnp.8 $(DESTDIR)/usr/share/man/man8
++ install -m 755 -d $(DESTDIR)/usr/share/misc
++ install -m 644 pnp.ids $(DESTDIR)/usr/share/misc
+
+ REL=pnputils-$(VERSION)
+ DISTTMP=/tmp/pnputils-dist
diff --git a/sys-apps/pnputils/metadata.xml b/sys-apps/pnputils/metadata.xml
new file mode 100644
index 000000000000..661b9770ac51
--- /dev/null
+++ b/sys-apps/pnputils/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>conikost@gentoo.org</email>
+ <name>Conrad Kostecki</name>
+ </maintainer>
+ <longdescription>
+ This package contains two tools for interacting with Plug and Play BIOSes:
+ lspnp - list PnP BIOS device nodes and resources
+ setpnp - modify PnP BIOS device resources
+ </longdescription>
+</pkgmetadata>
diff --git a/sys-apps/pnputils/pnputils-0.1.ebuild b/sys-apps/pnputils/pnputils-0.1.ebuild
new file mode 100644
index 000000000000..23a40d5a8fa6
--- /dev/null
+++ b/sys-apps/pnputils/pnputils-0.1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="Plug and Play BIOS utilities"
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
+SRC_URI="http://archive.debian.org/debian/pool/main/p/${PN}/${P/-/_}.orig.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+
+PATCHES=( "${FILESDIR}/${P}-makefile.patch" )
+
+src_compile() {
+ emake CC="$(tc-getCC)" all
+}
+
+src_install () {
+ emake DESTDIR="${ED}" install
+ einstalldocs
+}