faifa: new tool: PLC control

This commit is contained in:
Anton Bolshakov 2013-04-11 08:12:35 +00:00
parent 4dc45a5fd1
commit 1099d702f1
3 changed files with 43 additions and 0 deletions

2
net-misc/faifa/Manifest Normal file
View file

@ -0,0 +1,2 @@
AUX faifa-ldflags.patch 431 SHA256 6fbdad6335f8f089da4d64f3cdc92a47b4fa290c274175bd3e993a502f509202 SHA512 0b9881860579a96ae3d4759d359eaa757e45d8d4d185eafca79d3711fcee226527504ebe91ec40a1a484ce93e4a966b733b8e4819377094ac6406500a9106640 WHIRLPOOL 946b462c5916dff01abbba650d6646120ffd15298383630ce217d8043016254ac4bfe0a49f27d725678f7a79c33e6992db796899e90a9ba384e09f9996c123c1
EBUILD faifa-9999.ebuild 615 SHA256 9851d7350056fc3ef2abae3ef632acd58d68442a0256aa7654318aaec3b0f28d SHA512 0e80c94338fcfa605c6fd592d37a94bf8a934633c5d28305f070bbf6f0a0af87ff3667cd12d0385cd1ef56cc7dbe3177b1ffa3fd1d4ee6fa99da29ae37988bcd WHIRLPOOL 5c61fbe7ce8b7c1662d7a33f2041abe175a89d481bee575195dc4cf6492d99ad360d06360a72ea9b34b058e58be6e7629e6789926a5ffcc598ada1a5ed85855c

View file

@ -0,0 +1,30 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit git-2 autotools eutils
DESCRIPTION="Power Line Communication device manager"
HOMEPAGE="https://github.com/ffainelli/faifa"
EGIT_REPO_URI="https://github.com/ffainelli/faifa.git"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND=""
RDEPEND="${DEPEND}"
src_prepare() {
#do no strip
sed -i -e "s:installman strip:installman:" Makefile.in
#hpav_cfg: resepct ldflags
epatch "${FILESDIR}"/${PN}-ldflags.patch
eautoreconf
}
src_install() {
emake DESTDIR="${D}" install
}

View file

@ -0,0 +1,11 @@
--- Makefile.in.orig 2013-04-11 15:02:18.000000000 +0800
+++ Makefile.in 2013-04-11 15:03:59.187813421 +0800
@@ -65,7 +65,7 @@
all: $(APP) $(LIB_NAME) $(LIB_SONAME) hpav_cfg
hpav_cfg: $(HPAV_CFG_OBJS)
- $(CC) $(CFLAGS) -o $@ $(HPAV_CFG_OBJS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(HPAV_CFG_OBJS)
$(APP): $(OBJS) $(HEADERS) $(LIB_SONAME)
$(CC) -D$(OS) -DGIT_REV="\"$(GIT_REV)\"" $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(LIB_SONAME)