mac80211: fix lookup for vlan'd stations for injected frames - fixes wpa rekeying...
[openwrt.git] / package / linux-atm / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=linux-atm
11 PKG_VERSION:=2.4.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
15 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/l/linux-atm/
16 PKG_MD5SUM:=84fef49cc39ff2605204246666f65864
17
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/linux-atm
23   SECTION:=libs
24   CATEGORY:=Libraries
25   TITLE:=Linux ATM library
26   DEPENDS:=+kmod-atm
27   URL:=http://linux-atm.sourceforge.net/
28 endef
29
30 define Package/linux-atm/description
31   This package contains a library for accessing the Linux ATM subsystem.
32 endef
33
34 define Package/atm-tools
35   SECTION:=net
36   CATEGORY:=Network
37   DEPENDS:=linux-atm
38   TITLE:=Linux ATM tools
39   URL:=http://linux-atm.sourceforge.net/
40 endef
41
42 define Package/atm-tools/description
43   This package contains the Linux ATM tools.
44 endef
45
46 define Build/Prepare
47         $(call Build/Prepare/Default)
48         $(INSTALL_BIN) $(SCRIPT_DIR)/config.sub $(SCRIPT_DIR)/config.guess $(PKG_BUILD_DIR)/
49 endef
50
51 define Build/Configure
52         $(call Build/Configure/Default)
53         # prevent autoheader invocation
54         touch $(PKG_BUILD_DIR)/stamp-h.in
55 endef
56
57 define Build/Compile
58         $(MAKE) -C $(PKG_BUILD_DIR) \
59                 DESTDIR="$(PKG_INSTALL_DIR)" \
60                 all install
61 endef
62
63 ifneq ($(CONFIG_PACKAGE_linux-atm),)
64   define Build/InstallDev
65         mkdir -p $(1)/usr/include
66         $(CP)   $(PKG_INSTALL_DIR)/usr/include/atm{,d,sap}.h \
67                 $(1)/usr/include/
68         mkdir -p $(1)/usr/lib
69         $(CP)   $(PKG_INSTALL_DIR)/usr/lib/libatm.{a,so*} \
70                 $(1)/usr/lib/
71   endef
72 endif
73
74 define Package/linux-atm/install
75         $(INSTALL_DIR) $(1)/usr/lib
76         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libatm.so.* $(1)/usr/lib/
77 endef
78
79 define Package/atm-tools/install
80         $(INSTALL_DIR) $(1)/usr/sbin/
81         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmarp{,d} $(1)/usr/sbin/
82         $(INSTALL_DIR) $(1)/lib/network
83         $(INSTALL_BIN) ./files/ipoa.sh $(1)/lib/network/
84 endef
85
86 $(eval $(call BuildPackage,linux-atm))
87 $(eval $(call BuildPackage,atm-tools))