-
Notifications
You must be signed in to change notification settings - Fork 380
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package ayourtch's nat46 kernel module
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# | ||
# Copyright (C) 2014 OpenWrt.org | ||
# | ||
# This is free software, licensed under the GNU General Public License v2. | ||
# See /LICENSE for more information. | ||
# | ||
|
||
include $(TOPDIR)/rules.mk | ||
include $(INCLUDE_DIR)/kernel.mk | ||
|
||
PKG_NAME:=nat46 | ||
PKG_VERSION:=1 | ||
PKG_RELEASE:=$(PKG_SOURCE_VERSION) | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz | ||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) | ||
PKG_SOURCE_URL:=https://github.com/ayourtch/nat46.git | ||
PKG_SOURCE_PROTO:=git | ||
PKG_SOURCE_VERSION:=758a02e6f9e4c43553e0fc37d83c286c77febe94 | ||
PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org> | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define KernelPackage/nat46 | ||
DEPENDS:=+kmod-ipv6 | ||
TITLE:=Stateless NAT46 translation kernel module | ||
SECTION:=kernel | ||
SUBMENU:=Network Support | ||
FILES:=$(PKG_BUILD_DIR)/nat46/modules/nat46.ko | ||
AUTOLOAD:=$(call AutoLoad,33,nat46) | ||
endef | ||
|
||
include $(INCLUDE_DIR)/kernel-defaults.mk | ||
|
||
define Build/Compile | ||
$(MAKE) $(KERNEL_MAKEOPTS) SUBDIRS="$(PKG_BUILD_DIR)/nat46/modules" \ | ||
MODFLAGS="-DMODULE -mlong-calls" \ | ||
modules | ||
endef | ||
|
||
$(eval $(call KernelPackage,nat46)) |