2011-01-29 02:14:22 +00:00
|
|
|
#
|
2012-10-23 19:53:44 +00:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2006-06-27 00:35:46 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2005-08-12 18:23:01 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
2010-03-28 21:41:56 +00:00
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
2005-08-12 18:23:01 +00:00
|
|
|
|
|
|
|
PKG_NAME:=linux-atm
|
2011-01-22 22:44:58 +00:00
|
|
|
PKG_VERSION:=2.5.2
|
2012-10-23 19:53:44 +00:00
|
|
|
PKG_RELEASE:=5
|
2005-08-12 18:23:01 +00:00
|
|
|
|
2011-01-22 22:44:58 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
|
2016-12-16 16:32:10 +00:00
|
|
|
PKG_HASH:=9645481a2b16476b59220aa2d6bc5bc41043f291326c9b37581018fbd16dd53a
|
2010-02-20 23:42:25 +00:00
|
|
|
|
2010-07-24 21:39:33 +00:00
|
|
|
PKG_INSTALL:=1
|
2012-09-15 11:37:04 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2014-11-02 12:20:54 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0+
|
2017-09-28 02:55:46 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:linux-atm:linux-atm
|
2015-06-18 11:10:46 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2010-07-24 21:39:33 +00:00
|
|
|
|
2006-06-21 02:32:39 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2005-08-12 18:23:01 +00:00
|
|
|
|
2012-12-05 14:18:08 +00:00
|
|
|
ATM_DEBUG_BINS:=aread awrite atmdiag atmdump atmswitch saaldump \
|
|
|
|
sonetdiag svc_recv svc_send ttcp_atm
|
|
|
|
ATM_DEBUG_SBINS:=atmaddr atmloop atmtcp esi atmsigd bus \
|
|
|
|
ilmid ilmidiag lecs les mpcd zeppelin
|
|
|
|
ATM_DEBUG_TOOLS:=$(ATM_DEBUG_BINS) $(ATM_DEBUG_SBINS)
|
|
|
|
|
2006-05-30 19:50:48 +00:00
|
|
|
define Package/linux-atm
|
2006-09-23 19:30:35 +00:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2007-09-07 08:30:26 +00:00
|
|
|
TITLE:=Linux ATM library
|
|
|
|
URL:=http://linux-atm.sourceforge.net/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/linux-atm/description
|
|
|
|
This package contains a library for accessing the Linux ATM subsystem.
|
2006-05-30 19:50:48 +00:00
|
|
|
endef
|
|
|
|
|
2012-12-04 16:19:21 +00:00
|
|
|
define Package/linux-atm/Default
|
2007-09-15 21:01:43 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2013-07-08 00:37:49 +00:00
|
|
|
DEPENDS:=+linux-atm
|
2007-09-15 21:01:43 +00:00
|
|
|
URL:=http://linux-atm.sourceforge.net/
|
2012-12-05 14:58:54 +00:00
|
|
|
SUBMENU:=Linux ATM tools
|
2007-09-15 21:01:43 +00:00
|
|
|
endef
|
|
|
|
|
2012-12-04 16:19:21 +00:00
|
|
|
define Package/atm-tools
|
|
|
|
$(call Package/linux-atm/Default)
|
|
|
|
TITLE:=Linux ATM tools
|
|
|
|
endef
|
|
|
|
|
2007-09-15 21:01:43 +00:00
|
|
|
define Package/atm-tools/description
|
|
|
|
This package contains the Linux ATM tools.
|
|
|
|
endef
|
|
|
|
|
2011-04-09 13:05:48 +00:00
|
|
|
define Package/atm-diagnostics
|
2012-12-04 16:19:21 +00:00
|
|
|
$(call Package/linux-atm/Default)
|
2011-04-09 13:05:48 +00:00
|
|
|
TITLE:=Linux ATM Diagnostics
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/atm-diagnostics/description
|
|
|
|
This package contains the Linux ATM diagnostics.
|
|
|
|
endef
|
|
|
|
|
2012-12-04 16:19:24 +00:00
|
|
|
define Package/atm-debug-tools
|
|
|
|
$(call Package/linux-atm/Default)
|
|
|
|
TITLE:=Linux ATM debugging tools
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/atm-debug-tools/description
|
|
|
|
This package contains the Linux ATM debugging tools.
|
|
|
|
endef
|
|
|
|
|
2011-01-29 02:14:22 +00:00
|
|
|
define Package/br2684ctl
|
2012-12-04 16:19:21 +00:00
|
|
|
$(call Package/linux-atm/Default)
|
2011-01-29 02:14:22 +00:00
|
|
|
TITLE:=ATM Ethernet bridging configuration utility
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/br2684ctl/description
|
|
|
|
Support for AAL5 encapsulation (RFC-1483/RFC-2684) over ATM.
|
|
|
|
endef
|
|
|
|
|
2012-12-05 14:18:08 +00:00
|
|
|
define GenAtmPlugin
|
|
|
|
define Package/$(1)
|
|
|
|
$(call Package/linux-atm/Default)
|
|
|
|
TITLE:=Linux ATM tool $(2)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/$(1)/description
|
|
|
|
Linux ATM tool $(2).
|
|
|
|
endef
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(foreach t,$(ATM_DEBUG_TOOLS),$(eval $(call GenAtmPlugin,atm-$(t),$(t))))
|
|
|
|
|
2006-06-18 11:20:13 +00:00
|
|
|
define Build/Configure
|
2010-03-15 18:30:56 +00:00
|
|
|
$(call Build/Configure/Default)
|
2006-06-18 11:20:13 +00:00
|
|
|
# prevent autoheader invocation
|
|
|
|
touch $(PKG_BUILD_DIR)/stamp-h.in
|
|
|
|
endef
|
|
|
|
|
2011-07-26 10:47:59 +00:00
|
|
|
unexport PREFIX
|
2010-03-28 21:41:56 +00:00
|
|
|
|
2006-05-30 19:50:48 +00:00
|
|
|
define Build/Compile
|
2010-03-23 14:32:14 +00:00
|
|
|
# src/qgen is built with HOSTCC, which does not really like our LDFLAGS
|
2012-09-23 09:50:01 +00:00
|
|
|
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/src/qgen \
|
2010-03-23 14:32:14 +00:00
|
|
|
LDFLAGS="" \
|
2010-04-12 12:59:09 +00:00
|
|
|
all
|
2012-09-23 09:50:01 +00:00
|
|
|
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) OBJCOPY=$(TARGET_CROSS)objcopy all
|
2006-05-30 19:50:48 +00:00
|
|
|
endef
|
2005-08-23 12:29:00 +00:00
|
|
|
|
2010-03-28 21:41:44 +00:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib \
|
|
|
|
$(1)/usr/
|
|
|
|
endef
|
2005-08-12 18:23:01 +00:00
|
|
|
|
2006-09-23 19:30:35 +00:00
|
|
|
define Package/linux-atm/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2010-03-28 21:41:44 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libatm.so* $(1)/usr/lib/
|
2006-09-23 19:30:35 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-15 21:01:43 +00:00
|
|
|
define Package/atm-tools/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin/
|
2012-11-21 06:07:23 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmarp{,d} $(1)/usr/sbin/
|
2012-12-04 16:19:24 +00:00
|
|
|
endef
|
2010-03-14 18:58:33 +00:00
|
|
|
|
2012-12-05 14:18:08 +00:00
|
|
|
|
|
|
|
define BuildAtmPlugin
|
|
|
|
define Package/$(1)/install
|
|
|
|
$(INSTALL_DIR) $$(1)/usr/$(3)
|
2012-12-05 14:37:03 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/$(3)/$(2) $$(1)/usr/$(3)
|
2012-12-05 14:18:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$$(eval $$(call BuildPackage,$(1)))
|
|
|
|
endef
|
|
|
|
|
2012-12-04 16:19:24 +00:00
|
|
|
define Package/atm-debug-tools/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmaddr $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmloop $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmtcp $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/esi $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aread $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/awrite $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/atmdiag $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/atmdump $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmsigd $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/bus $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ilmid $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ilmidiag $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/lecs $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/les $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mpcd $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/zeppelin $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/atmswitch $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/saaldump $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sonetdiag $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/svc_recv $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/svc_send $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ttcp_atm $(1)/usr/bin/
|
2007-09-15 21:01:43 +00:00
|
|
|
endef
|
|
|
|
|
2011-04-09 13:05:48 +00:00
|
|
|
define Package/atm-diagnostics/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aread $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/awrite $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/atmdiag $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/atmdump $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
2011-01-29 02:14:22 +00:00
|
|
|
define Package/br2684ctl/install
|
2016-01-18 15:35:30 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d $(1)/etc/hotplug.d/atm $(1)/usr/sbin $(1)/lib/netifd
|
|
|
|
$(INSTALL_BIN) ./files/br2684-up $(1)/lib/netifd/br2684-up
|
2011-01-29 02:14:22 +00:00
|
|
|
$(INSTALL_BIN) ./files/br2684ctl $(1)/etc/init.d/
|
2015-12-04 17:44:00 +00:00
|
|
|
$(INSTALL_DATA) ./files/atm.hotplug $(1)/etc/hotplug.d/atm/00-trigger
|
2015-12-14 11:02:12 +00:00
|
|
|
$(INSTALL_BIN) \
|
|
|
|
./files/br2684ctl_wrap \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/sbin/br2684ctl \
|
|
|
|
$(1)/usr/sbin/
|
2011-01-29 02:14:22 +00:00
|
|
|
endef
|
|
|
|
|
2006-05-30 19:50:48 +00:00
|
|
|
$(eval $(call BuildPackage,linux-atm))
|
2007-09-15 21:01:43 +00:00
|
|
|
$(eval $(call BuildPackage,atm-tools))
|
2012-12-04 16:19:24 +00:00
|
|
|
$(eval $(call BuildPackage,atm-debug-tools))
|
2011-04-09 13:05:48 +00:00
|
|
|
$(eval $(call BuildPackage,atm-diagnostics))
|
2011-01-29 02:14:22 +00:00
|
|
|
$(eval $(call BuildPackage,br2684ctl))
|
2012-12-05 14:18:08 +00:00
|
|
|
$(foreach t,$(ATM_DEBUG_BINS),$(eval $(call BuildAtmPlugin,atm-$(t),$(t),bin)))
|
|
|
|
$(foreach t,$(ATM_DEBUG_SBINS),$(eval $(call BuildAtmPlugin,atm-$(t),$(t),sbin)))
|