2009-01-05 09:53:38 +00:00
|
|
|
#
|
2012-03-06 13:13:15 +00:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2009-01-05 09:53:38 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=faifa
|
2012-09-10 22:12:03 +00:00
|
|
|
PKG_VERSION:=2012-09-10
|
2012-07-25 14:01:23 +00:00
|
|
|
PKG_RELEASE:=$(PKG_SOURCE_VERSION)
|
2009-01-05 09:53:38 +00:00
|
|
|
|
2012-07-25 14:01:23 +00:00
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_URL:=git://github.com/ffainelli/faifa.git
|
2009-01-05 09:53:38 +00:00
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
2012-09-10 22:12:03 +00:00
|
|
|
PKG_SOURCE_VERSION:=a93eb7d86f7a73537c11ef35df30d6d401a8062f
|
2012-07-25 14:01:23 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
2009-01-05 09:53:38 +00:00
|
|
|
|
2010-03-19 16:26:27 +00:00
|
|
|
PKG_INSTALL:=1
|
2009-01-05 09:53:38 +00:00
|
|
|
|
2010-03-19 16:26:27 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2010-02-22 23:18:48 +00:00
|
|
|
|
2012-03-06 13:13:15 +00:00
|
|
|
define Package/faifa/Default
|
|
|
|
TITLE:=configure HomePlug 1.0/AV PLC devices
|
|
|
|
URL:=http://open-plc.org/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libfaifa
|
|
|
|
$(call Package/faifa/Default)
|
|
|
|
TITLE+= (library)
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2012-08-01 18:40:34 +00:00
|
|
|
DEPENDS:=+libpcap +libpthread
|
2012-03-06 13:13:15 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libfaifa/description
|
|
|
|
Faifa companion library.
|
|
|
|
endef
|
|
|
|
|
2009-01-05 09:53:38 +00:00
|
|
|
define Package/faifa
|
2012-03-06 13:13:15 +00:00
|
|
|
$(call Package/faifa/Default)
|
2009-01-05 09:53:38 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2012-08-01 18:40:34 +00:00
|
|
|
DEPENDS:=+libpthread +libpcap +libfaifa
|
2012-03-06 13:13:15 +00:00
|
|
|
TITLE+= (command line)
|
2009-01-05 09:53:38 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/faifa/description
|
2012-03-06 13:13:15 +00:00
|
|
|
Faifa can configure any Intellon-based Power Line Communication device using
|
|
|
|
Intellon INT5000 and INT6000 series chips (6000 and 6300 chips). It supports all
|
|
|
|
Intellon-specific management and control frames as well as standard management
|
|
|
|
frames.
|
2009-01-05 09:53:38 +00:00
|
|
|
endef
|
|
|
|
|
2012-08-01 18:40:35 +00:00
|
|
|
define Package/hpavcfg
|
|
|
|
$(call Package/faifa/Default)
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=HomePlug AV lightweight configurator
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/hpavcfg/description
|
2012-08-11 16:10:18 +00:00
|
|
|
Lightweight configuration tool, only capable of setting a local device key (NMK)
|
2012-08-01 18:40:35 +00:00
|
|
|
endef
|
|
|
|
|
2010-03-19 16:26:27 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
|
|
|
MAKE_FLAGS += \
|
|
|
|
OS=LINUX \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)"
|
|
|
|
|
2009-01-05 09:53:38 +00:00
|
|
|
define Build/Configure
|
2009-11-22 14:43:27 +00:00
|
|
|
(cd $(PKG_BUILD_DIR); ./autogen.sh)
|
|
|
|
$(call Build/Configure/Default)
|
2009-01-05 09:53:38 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/faifa/install
|
2010-03-19 16:26:27 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/faifa $(1)/usr/bin/
|
2009-01-05 09:53:38 +00:00
|
|
|
endef
|
|
|
|
|
2012-03-06 13:13:15 +00:00
|
|
|
define Package/libfaifa/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfaifa.so* $(1)/usr/lib
|
|
|
|
endef
|
|
|
|
|
2012-08-01 18:40:35 +00:00
|
|
|
define Package/hpavcfg/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/hpav_cfg $(1)/usr/bin
|
|
|
|
endef
|
|
|
|
|
2009-01-05 09:53:38 +00:00
|
|
|
$(eval $(call BuildPackage,faifa))
|
2012-03-06 13:13:15 +00:00
|
|
|
$(eval $(call BuildPackage,libfaifa))
|
2012-08-01 18:40:35 +00:00
|
|
|
$(eval $(call BuildPackage,hpavcfg))
|