1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-19 03:47:30 +02:00
openwrt-xburst/obsolete-buildroot/sources/openwrt/ipkg/kmod-ipt6/CONTROL/rules

33 lines
622 B
Plaintext
Raw Normal View History

#!/usr/bin/make -f
ifeq ($(strip $(TOPDIR)),)
TOPDIR := $(shell pwd)/../../../..
endif
PACKAGE := kmod-ipt6
MY_INSTALL_DIR := /tmp/$(PACKAGE)
build:
install:
rm -rf $(MY_INSTALL_DIR)
install -m0755 -d $(MY_INSTALL_DIR)/lib/
bzcat $(TOPDIR)/openwrt-kmodules.tar.bz2 | tar -C $(MY_INSTALL_DIR)/lib/ -xvf - \
modules/2.4.20/kernel/net/ipv6/netfilter/*.o \
install -m0755 -d $(MY_INSTALL_DIR)/lib/modules/2.4.20/ipt6
mv -f \
$(MY_INSTALL_DIR)/lib/modules/2.4.20/kernel/net/ipv6/netfilter/*.o \
$(MY_INSTALL_DIR)/lib/modules/2.4.20/ipt6/
rm -rf \
$(MY_INSTALL_DIR)/lib/modules/2.4.20/kernel
clean: