summaryrefslogtreecommitdiffstats
path: root/obsolete-buildroot/sources/openwrt/ipkg/kmod-tun/CONTROL/rules
blob: 58e95f7415c4f45e2aefc1ab32e289ac5c6f71e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/make -f

ifeq ($(strip $(TOPDIR)),)
TOPDIR := $(shell pwd)/../../../..
endif


PACKAGE := kmod-tun

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/drivers/net/tun.o \
	 
	mv -f \
	 $(MY_INSTALL_DIR)/lib/modules/2.4.20/kernel/drivers/net/tun.o \
	 $(MY_INSTALL_DIR)/lib/modules/2.4.20/
	 
	rm -rf \
	 $(MY_INSTALL_DIR)/lib/modules/2.4.20/kernel


clean: