standardize Makefile, remove useless ipkg and Config.in
[openwrt.git] / package / arptables / Makefile
1 # Copyright (C) 2006 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6 # $Id$
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=arptables
11 PKG_VERSION:=0.0.3
12 PKG_RELEASE:=1
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
15 PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/ebtables
17 PKG_MD5SUM:=1672244603c8979577aa4738be35a759
18 PKG_CAT:=zcat
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/arptables
23   SECTION:=net
24   CATEGORY:=Network
25   TITLE:=ARP firewalling software
26   URL:=http://ebtables.sourceforge.net
27 endef
28
29 define Build/Compile
30         $(MAKE) -C $(PKG_BUILD_DIR) \
31                 $(TARGET_CONFIGURE_OPTS) \
32                 COPT_FLAGS="$(TARGET_CFLAGS)" \
33                 KERNEL_DIR="./include/linux"
34 endef
35
36 define Package/arptables/install
37         install -m0755 -d $(1)/usr/sbin
38         $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
39 endef
40
41 $(eval $(call BuildPackage,arptables))