3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=84fef49cc39ff2605204246666f65864
10 PKG_SOURCE_URL
:=http
://ftp.debian.org
/debian
/pool
/main
/l
/linux-atm
/
11 PKG_SOURCE
:=$(PKG_NAME
)_
$(PKG_VERSION
).orig.
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 define Package
/linux-atm
22 TITLE
:=Linux ATM Library
23 DESCRIPTION
:=Library for accessing the Linux ATM subsystem
26 define Package
/br2684ctl
29 TITLE
:=RFC2684 bridging
31 DESCRIPTION
:=ATM RFC2684 bridging utility
34 define Build
/Configure
35 $(call Build
/Configure
/Default
,)
36 # prevent autoheader invocation
37 touch
$(PKG_BUILD_DIR
)/stamp-h.in
41 rm -rf
$(PKG_INSTALL_DIR
)
42 mkdir
-p
$(PKG_INSTALL_DIR
)
43 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
44 DESTDIR
="$(PKG_INSTALL_DIR)" \
48 define Package
/linux-atm
/install
49 install -d
-m0755
$(1)/usr
/lib
50 cp
-f
$(PKG_INSTALL_DIR
)/usr
/lib
/libatm.so
.1 $(1)/usr
/lib
53 define Package
/br2684ctl
/install
54 install -d
-m0755
$(1)/usr
/sbin
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/br2684ctl
$(1)/usr
/sbin
/
56 install -d
-m0755
$(1)/etc
/hotplug.d
/net
57 install -m0644 .
/files
/br2684.init
$(1)/etc
/hotplug.d
/net
/30-br2684
60 define Build
/InstallDev
61 mkdir
-p
$(STAGING_DIR
)/usr
/include
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/atm
{,d
,sap
}.h
$(STAGING_DIR
)/usr
/include/
63 mkdir
-p
$(STAGING_DIR
)/usr
/lib
64 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libatm.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
67 define Build
/UninstallDev
69 $(STAGING_DIR
)/usr
/include/atm
{,d
,sap
}.h \
70 $(STAGING_DIR
)/usr
/lib
/libatm.
{a
,so
*}
73 $(eval
$(call BuildPackage
,linux-atm
))
74 $(eval
$(call BuildPackage
,br2684ctl
))