let ipkg fail when a package file to be installed is not found
[openwrt/staging/dedeckeh.git] / openwrt / package / ebtables / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=ebtables
6 PKG_VERSION:=2.0.8-rc2
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=f07111fcc1966be669278433c35dcc28
9
10 PKG_SOURCE_URL:=@SF/ebtables
11 PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/ebtables-v$(PKG_VERSION)
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,EBTABLES,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20 $(PKG_BUILD_DIR)/.configured:
21 touch $@
22
23 $(PKG_BUILD_DIR)/.built:
24 $(MAKE) -C $(PKG_BUILD_DIR) \
25 CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld \
26 CFLAGS="$(TARGET_CFLAGS) -Wall"
27 touch $@
28
29 $(IPKG_EBTABLES):
30 install -d -m0755 $(IDIR_EBTABLES)/etc
31 install -m0644 $(PKG_BUILD_DIR)/ethertypes $(IDIR_EBTABLES)/etc/
32 install -d -m0755 $(IDIR_EBTABLES)/usr/lib
33 install -m0755 $(PKG_BUILD_DIR)/lib*.so $(IDIR_EBTABLES)/usr/lib/
34 install -d -m0755 $(IDIR_EBTABLES)/usr/lib/ebtables
35 install -m0755 $(PKG_BUILD_DIR)/extensions/*.so $(IDIR_EBTABLES)/usr/lib/ebtables/
36 install -d -m0755 $(IDIR_EBTABLES)/usr/sbin
37 install -m0755 $(PKG_BUILD_DIR)/ebtables $(IDIR_EBTABLES)/usr/sbin/
38 install -m0755 $(PKG_BUILD_DIR)/ebtables-save $(IDIR_EBTABLES)/usr/sbin/
39 install -m0755 $(PKG_BUILD_DIR)/ebtables-restore $(IDIR_EBTABLES)/usr/sbin/
40 $(RSTRIP) $(IDIR_EBTABLES)
41 $(IPKG_BUILD) $(IDIR_EBTABLES) $(PACKAGE_DIR)