diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/usbmon |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/usbmon')
-rw-r--r-- | sys-apps/usbmon/Manifest | 8 | ||||
-rw-r--r-- | sys-apps/usbmon/files/usbmon-6-sysmacros.patch | 38 | ||||
-rw-r--r-- | sys-apps/usbmon/metadata.xml | 7 | ||||
-rw-r--r-- | sys-apps/usbmon/usbmon-6-r1.ebuild | 32 | ||||
-rw-r--r-- | sys-apps/usbmon/usbmon-6.1.ebuild | 27 |
5 files changed, 112 insertions, 0 deletions
diff --git a/sys-apps/usbmon/Manifest b/sys-apps/usbmon/Manifest new file mode 100644 index 000000000000..17d64f9ae02e --- /dev/null +++ b/sys-apps/usbmon/Manifest @@ -0,0 +1,8 @@ +AUX usbmon-6-sysmacros.patch 1103 SHA256 aac849b5e3459f814bc0c6f9e746595b6dbc326bc68188f6d2cdf9a7dccb8dec SHA512 e3a1b55effd247ac8911c07220c187bc099db011269608d09a8b6698670b5e3d1c34a8cd60acdbfd69ae3bae24ab4cdcb69927b4c9b8c573bfc7045c5e3d1a0f WHIRLPOOL 26ded66bcb3bc4d441ae9ac29ab8869c29ead591d0fb24cbef8304fed614cf88fd216fd2553ae5976b77f0c8c4af35056327512e68eed477bd45a55f5f33547c +DIST usbmon-6.1.tar.gz 16358 SHA256 30985b48f3c29901a1ed2a18af6b1f70d290d5d45cc44c5afdc3ade6d1816b84 SHA512 580aa1edd6336ac86e562081a79698a98e6c7aa3dd8605a4c12201dd0e3ab1dc58b3d69f670742e007aeb76fb6ebfff9b5d10114df93814763e0c393b6473b54 WHIRLPOOL be28f04ea36db5698f0844f7b48fc38b1b1e512d4191cd44b0ad6a9edea3e315e948054fffe919064477265e3f35aafabf005da5b8f7c6d974827252ad41413d +DIST usbmon-6.tar.gz 16796 SHA256 32a804ccdd7af002c3e44e7c8abb0e7e1b6ccd6c7b9a70c7371cd5558d07e459 SHA512 4ee41379196b86697a5156d4411860ba31540b98e50165c65f873e22eee1c3caadbc73a2c61903531f968797eca8e7f95490255a0820dc0778fba82c7eb260f5 WHIRLPOOL f985043dcba6fe2f0401f3588298b5a393d07cdd0745a93c684d3510550286a0a8dda7873954ef24e41cbb63679e4fa3093e15e583aef953ed939d50c40d5970 +EBUILD usbmon-6-r1.ebuild 631 SHA256 7c455838f9bbb119641452c97ddd5a8f2c87c6c0be75d877c5619e08acc06b51 SHA512 7cda0d060508e034f53c4c1465d340690f340ecf192f9b6a4bc63eb157966a03156f96d2d87a0fc3b2cb6cc131a1aad9b6371ecb01d339bbfc1b20f18b9971d8 WHIRLPOOL e784e247532a84e2c05a69117c6c50e10c6898d307c49be2e082df76d42bf794ab1ef4da9ff2bd0bb6819183d4dbebb3d5e63f212211322c57cda7c04b748f29 +EBUILD usbmon-6.1.ebuild 503 SHA256 76e42e20c740ac066c0e6ec1227090d501da199a5ea0e29d9c96d8c2ece14588 SHA512 1e467e5c4a2c8f4963e3833b20243e4f99516b90eda16cc55a24a9314daa1187734fe646f794a32231fba64a8d0bbcfd4d106830f7d4d07e017fdb733b50b637 WHIRLPOOL c0138bf11b686c12a5f2d128c5c780ade9ecd22457fe5b7eb307d8088786a35de5c25e62f899555d368ad82570b91c220d21746db8c667a8735f23b997d3cc8d +MISC ChangeLog 2471 SHA256 79450978d268ebfefb80d6cfe824fc959cdaa6dfb6fd6599636e2347f89286af SHA512 c7610dee0c4993606cac28759645aaf3bd540c2c04fe1eaa4540ba8dc665612e01000d4cb1a527fc1941db77c7b832d94c486e3faa4e6d288e07e49e04156ffd WHIRLPOOL 9b0246345056e1fd56e6b20650d271af1f662559b9850bb3ae9681ed48b2cdea485392da290c59fc030a91b61cb05c0189a61e74d624fb224b6a7013f62c4200 +MISC ChangeLog-2015 1245 SHA256 75f7852661ffe20837f1ad79e780a55f043fd65767f036fc0d6a6ef0ab223b2d SHA512 ef925285346c0ef662de3be65b0fda1a9661a4601bfec06b189b226798889dc0d2dabf80b4c4a263cd234c734e42e51b31db2ae8e971fd668a50d35e0f2d8ecf WHIRLPOOL f117b002d3f552273875606af5fa96bef0961c7435431b36f1bffc78f47f5859857a18b49190367656b1b4c280d346236d63d3075871d7858e2fa86afa67719a +MISC metadata.xml 222 SHA256 432ab13a142cc8c662b1cc100016536215338c0febabe341aaab6c9eef00c1f3 SHA512 05134582b0d0287f20fd3702d042ca556dc42f3ca4568bfa73f6d9886ed8027057936af758ffbb252a5677e1af876c46e8d044f5fc691148922c5fa0c5cddc03 WHIRLPOOL 1b0f798595484b98ce893ce86eb52280b053707ba333f37944cad64c1647cf4789b2ce9815328dba862b38711d0a07e1a354ecc6ec93902fb79bb27d731aaa16 diff --git a/sys-apps/usbmon/files/usbmon-6-sysmacros.patch b/sys-apps/usbmon/files/usbmon-6-sysmacros.patch new file mode 100644 index 000000000000..109b4745dc0a --- /dev/null +++ b/sys-apps/usbmon/files/usbmon-6-sysmacros.patch @@ -0,0 +1,38 @@ +https://bugs.gentoo.org/580360 + +From 449f591d0220e57face02898a9ae2617baace814 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Mon, 18 Apr 2016 18:24:49 -0400 +Subject: [PATCH] usbmon: include sys/sysmacros.h for makedev func + +Since glibc has always placed these funcs in sys/sysmacros.h, and other +C libs require this, include it directly. Otherwise we fail to build: +usbmon.c: In function 'make_device': +usbmon.c:966:8: warning: implicit declaration of function 'makedev' [-Wimplicit-function-declaration] + dev = makedev(major, p->ifnum); + ^ +usbmon.c:966:2: warning: nested extern declaration of 'makedev' [-Wnested-externs] + dev = makedev(major, p->ifnum); + ^ +... +usbmon.o: In function 'make_device': +usbmon.c:966: undefined reference to 'makedev' +--- + usbmon.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/usbmon.c b/usbmon.c +index 37929f2..8d2acfc 100644 +--- a/usbmon.c ++++ b/usbmon.c +@@ -32,6 +32,7 @@ + #include <sys/ioctl.h> + #include <sys/stat.h> + #include <sys/mman.h> ++#include <sys/sysmacros.h> + #include <inttypes.h> + #include <stdarg.h> + +-- +2.7.4 + diff --git a/sys-apps/usbmon/metadata.xml b/sys-apps/usbmon/metadata.xml new file mode 100644 index 000000000000..ee74e58c0375 --- /dev/null +++ b/sys-apps/usbmon/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>robbat2@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/sys-apps/usbmon/usbmon-6-r1.ebuild b/sys-apps/usbmon/usbmon-6-r1.ebuild new file mode 100644 index 000000000000..63b0e873be58 --- /dev/null +++ b/sys-apps/usbmon/usbmon-6-r1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit toolchain-funcs eutils + +DESCRIPTION="Userland for USB monitoring framework" +HOMEPAGE="https://people.redhat.com/zaitcev/linux/" +SRC_URI="${HOMEPAGE}/${P}.tar.gz" + +LICENSE="GPL-2" # GPL-2 only +SLOT="0" +KEYWORDS="~x86 ~ppc ~amd64" +IUSE="" + +DEPEND="!=sys-apps/usbutils-0.72-r2" + +src_prepare() { + epatch "${FILESDIR}"/${P}-sysmacros.patch #580360 + sed \ + -e '/CFLAGS =/s, = , \+= ,g' \ + -e 's:-O2::g' \ + -i "${S}"/Makefile || die + tc-export CC +} + +src_install() { + dosbin ${PN} + doman ${PN}.8 + dodoc README +} diff --git a/sys-apps/usbmon/usbmon-6.1.ebuild b/sys-apps/usbmon/usbmon-6.1.ebuild new file mode 100644 index 000000000000..7bd8aa7653ff --- /dev/null +++ b/sys-apps/usbmon/usbmon-6.1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="Userland for USB monitoring framework" +HOMEPAGE="https://people.redhat.com/zaitcev/linux/" +SRC_URI="${HOMEPAGE}/${P}.tar.gz" + +LICENSE="GPL-2" # GPL-2 only +SLOT="0" +KEYWORDS="~x86 ~ppc ~amd64" +IUSE="" + +src_prepare() { + default + sed -e 's:-O2::g' -i "${S}"/Makefile || die + tc-export CC +} + +src_install() { + dosbin ${PN} + doman ${PN}.8 + dodoc README +} |