| 1 | # |
| 2 | # Copyright (C) 2006-2010 OpenWrt.org |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # See /LICENSE for more information. |
| 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | include $(INCLUDE_DIR)/kernel.mk |
| 10 | |
| 11 | PKG_NAME:=siit |
| 12 | PKG_VERSION:=1.1 |
| 13 | PKG_RELEASE:=2 |
| 14 | |
| 15 | include $(INCLUDE_DIR)/package.mk |
| 16 | |
| 17 | define KernelPackage/siit |
| 18 | SUBMENU:=Network Devices |
| 19 | TITLE:=Stateless IP ICMP Translation Algorithm |
| 20 | DEPENDS:= @(!(TARGET_ps3||TARGET_pxcab)||BROKEN) |
| 21 | FILES:=$(PKG_BUILD_DIR)/siit.ko |
| 22 | AUTOLOAD:=$(call AutoLoad,50,siit) |
| 23 | endef |
| 24 | |
| 25 | include $(INCLUDE_DIR)/kernel-defaults.mk |
| 26 | |
| 27 | define KernelPackage/siit/description |
| 28 | Stateless IP ICMP Translation Algorithm |
| 29 | endef |
| 30 | |
| 31 | define Build/Prepare |
| 32 | mkdir -p $(PKG_BUILD_DIR) |
| 33 | cp src/Makefile src/siit.h src/siit.c $(PKG_BUILD_DIR)/ |
| 34 | endef |
| 35 | |
| 36 | define Build/Compile |
| 37 | $(MAKE) $(KERNEL_MAKEOPTS) SUBDIRS="$(PKG_BUILD_DIR)" modules |
| 38 | endef |
| 39 | |
| 40 | $(eval $(call KernelPackage,siit)) |
| 41 | |