move fuse from target/linux/package/ to package/, update to v2.5.3,
[openwrt.git] / package / linux-atm / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=linux-atm
6 PKG_VERSION:=2.4.1
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=84fef49cc39ff2605204246666f65864
9
10 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/l/linux-atm/
11 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 define Package/linux-atm
20 SECTION:=libs
21 CATEGORY:=Libraries
22 TITLE:=Linux ATM Library
23 DESCRIPTION:=Library for accessing the Linux ATM subsystem
24 endef
25
26 define Package/br2684ctl
27 SECTION:=net
28 CATEGORY:=Network
29 TITLE:=RFC2684 bridging
30 DEPENDS:=+linux-atm
31 DESCRIPTION:=ATM RFC2684 bridging utility
32 endef
33
34 define Build/Compile
35 rm -rf $(PKG_INSTALL_DIR)
36 mkdir -p $(PKG_INSTALL_DIR)
37 $(MAKE) -C $(PKG_BUILD_DIR) \
38 DESTDIR="$(PKG_INSTALL_DIR)" \
39 all install
40 endef
41
42 define Package/linux-atm/install
43 install -d -m0755 $(1)/usr/lib
44 cp -f $(PKG_INSTALL_DIR)/usr/lib/libatm.so.1 $(1)/usr/lib
45 endef
46
47 define Package/br2684ctl/install
48 install -d -m0755 $(1)/usr/sbin
49 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/br2684ctl $(1)/usr/sbin/
50 install -d -m0755 $(1)/etc/hotplug.d/net
51 install -m0644 ./files/br2684.init $(1)/etc/hotplug.d/net/30-br2684
52 endef
53
54 define Build/InstallDev
55 mkdir -p $(STAGING_DIR)/usr/include
56 $(CP) $(PKG_INSTALL_DIR)/usr/include/atm{,d,sap}.h $(STAGING_DIR)/usr/include/
57 mkdir -p $(STAGING_DIR)/usr/lib
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libatm.{a,so*} $(STAGING_DIR)/usr/lib/
59 endef
60
61 define Build/UninstallDev
62 rm -rf \
63 $(STAGING_DIR)/usr/include/atm{,d,sap}.h \
64 $(STAGING_DIR)/usr/lib/libatm.{a,so*}
65 endef
66
67 $(eval $(call BuildPackage,linux-atm))
68 $(eval $(call BuildPackage,br2684ctl))
This page took 0.045485 seconds and 5 git commands to generate.