hcxdumptool: initial 4.2.0 untagged release, with https://github.com/ZerBea/hcxdumptool/issues/8 fix

This commit is contained in:
blshkv 2018-08-05 09:05:22 +08:00
parent aa62a03b3d
commit 679a22f76d
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
3 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST hcxdumptool-4.2.0.zip 49281 BLAKE2B fdcffd0a116052c9473d0d27cd5c38d9bbaa91ae75b8b04b8d78b95986784fc0f6af045c8afe55c63d0e12499516c1a53fdd29ecbb002bf50a992837114e0589 SHA512 b3945246d2ad3e0ff40cf092694794dc3a5de3e5acef1767bc166d71bdeda999f29c0464466d5587f469323531a834b03925abd1cf9baf0065507468e7f2d12c

View file

@ -0,0 +1,31 @@
--- Makefile.orig 2018-08-05 03:15:07.000000000 +0800
+++ Makefile 2018-08-05 08:51:38.858446712 +0800
@@ -1,4 +1,5 @@
-INSTALLDIR = /usr/local/bin
+PREFIX?=/usr/local
+INSTALLDIR = $(DESTDIR)$(PREFIX)/bin
HOSTOS := $(shell uname -s)
GPIOSUPPORT=off
@@ -14,7 +15,7 @@
ifeq ($(GPIOSUPPORT), on)
CFLAGS += -DDOGPIOSUPPORT
-LFLAGS = -lwiringPi
+LDFLAGS += -lwiringPi
endif
@@ -22,10 +23,10 @@
build:
ifeq ($(GPIOSUPPORT), on)
- $(CC) $(CFLAGS) -o hcxpioff hcxpioff.c $(LFLAGS)
+ $(CC) $(CFLAGS) -o hcxpioff hcxpioff.c $(LDFLAGS)
endif
ifeq ($(HOSTOS), Linux)
- $(CC) $(CFLAGS) -o hcxdumptool hcxdumptool.c -lpthread $(LFLAGS)
+ $(CC) $(CFLAGS) -o hcxdumptool hcxdumptool.c -lpthread $(LDFLAGS)
endif

View file

@ -0,0 +1,30 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit eutils
DESCRIPTION="This is a sample skeleton ebuild file"
HOMEPAGE="https://foo.example.org/"
MY_COMMIT="ebfcdf0243604d36dfac2757d4373bd9331b8a9a"
SRC_URI="https://github.com/ZerBea/hcxdumptool/archive/${MY_COMMIT}.zip -> ${P}.zip"
LICENSE=""
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
S="${WORKDIR}/${PN}-${MY_COMMIT}"
src_prepare(){
epatch "${FILESDIR}/makefile.patch"
eapply_user
}
src_install(){
emake DESTDIR="${ED}" PREFIX="${EPREFIX}/usr" install
}