source: trunk/openwrt/package/ebtables/Makefile @ 853

Last change on this file since 853 was 853, checked in by nbd, 12 years ago

update ebtables to new packaging style

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 705 bytes
Line 
1# $Id$
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=ebtables
6PKG_VERSION:=2.0.6
7PKG_RELEASE:=1
8PKG_MD5SUM:=c4559af2366c764c6c42a3fdd40d60d3
9
10PKG_SOURCE_URL:=@SF/ebtables
11PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
12PKG_BUILD_DIR:=$(BUILD_DIR)/ebtables-v$(PKG_VERSION)
13PKG_CAT:=zcat
14
15include $(TOPDIR)/package/rules.mk
16
17$(eval $(call PKG_template,EBTABLES,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18
19$(PKG_BUILD_DIR)/.built:
20        $(MAKE) -C $(PKG_BUILD_DIR) \
21                CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld \
22                CFLAGS="$(TARGET_CFLAGS) -Wall"
23        touch $@
24
25$(IPKG_EBTABLES):
26        mkdir -p $(IDIR_EBTABLES)/usr/sbin
27        cp $(PKG_BUILD_DIR)/ebtables $(IDIR_EBTABLES)/usr/sbin/
28        $(IPKG_BUILD) $(IDIR_EBTABLES) $(PACKAGE_DIR)
29
Note: See TracBrowser for help on using the repository browser.