2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
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
:=9560b0e1f410a05b849dfdab465dd758
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/linux-atm
23 TITLE
:=Linux ATM library
24 URL
:=http
://linux-atm.sourceforge.net
/
27 define Package
/linux-atm
/description
28 This package contains a library for accessing the Linux ATM subsystem.
31 define Package
/atm-tools
35 TITLE
:=Linux ATM tools
36 URL
:=http
://linux-atm.sourceforge.net
/
39 define Package
/atm-tools
/description
40 This package contains the Linux ATM tools.
44 $(call Build
/Prepare
/Default
)
45 $(INSTALL_BIN
) $(SCRIPT_DIR
)/config.sub
$(SCRIPT_DIR
)/config.guess
$(PKG_BUILD_DIR
)/
48 define Build
/Configure
49 $(call Build
/Configure
/Default
)
50 # prevent autoheader invocation
51 touch
$(PKG_BUILD_DIR
)/stamp-h.in
55 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
56 DESTDIR
="$(PKG_INSTALL_DIR)" \
60 ifneq ($(CONFIG_PACKAGE_linux-atm
),)
61 define Build
/InstallDev
62 mkdir
-p
$(1)/usr
/include
63 $(CP
) $(PKG_BUILD_DIR
)/src
/include/atm
{,d
,sap
}.h \
66 $(CP
) $(PKG_BUILD_DIR
)/src
/lib
/.libs
/libatm.
{a
,so
*} \
71 define Package
/linux-atm
/install
72 $(INSTALL_DIR
) $(1)/usr
/lib
73 $(CP
) $(PKG_BUILD_DIR
)/src
/lib
/.libs
/libatm.so.
* $(1)/usr
/lib
/
76 define Package
/atm-tools
/install
77 $(INSTALL_DIR
) $(1)/usr
/sbin
/
78 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/arpd
/atmarp
{,d
} $(1)/usr
/sbin
/
79 $(INSTALL_DIR
) $(1)/lib
/network
80 $(INSTALL_BIN
) .
/files
/ipoa.sh
$(1)/lib
/network
/
81 $(INSTALL_DIR
) $(1)/usr
/bin
/
84 #The following is disabled by default but still useful for some debugging
86 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmaddr $(1)/usr/sbin/
87 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmloop $(1)/usr/sbin/
88 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmtcp $(1)/usr/sbin/
89 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/esi $(1)/usr/sbin/
90 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aread $(1)/usr/bin/
91 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/awrite $(1)/usr/bin/
92 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/atmdiag $(1)/usr/bin/
93 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/atmdump $(1)/usr/bin/
95 # The following is really for some specific application, and obsolete for most of it
97 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmsigd $(1)/usr/sbin/
98 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/bus $(1)/usr/sbin/
99 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ilmid $(1)/usr/sbin/
100 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ilmidiag $(1)/usr/sbin/
101 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/lecs $(1)/usr/sbin/
102 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/les $(1)/usr/sbin/
103 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mpcd $(1)/usr/sbin/
104 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/zeppelin $(1)/usr/sbin/
105 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/atmswitch $(1)/usr/bin/
106 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/saaldump $(1)/usr/bin/
107 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sonetdiag $(1)/usr/bin/
108 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/svc_recv $(1)/usr/bin/
109 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/svc_send $(1)/usr/bin/
110 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ttcp_atm $(1)/usr/bin/
113 $(eval
$(call BuildPackage
,linux-atm
))
114 $(eval
$(call BuildPackage
,atm-tools
))