]> git.pld-linux.org Git - packages/freeswan.git/blob - freeswan-make-module.patch
- started try to add ipsec module into freeswan package and remove it from kernel
[packages/freeswan.git] / freeswan-make-module.patch
1 --- freeswan-1.97/Makefile.module       Fri May  3 13:06:04 2002
2 +++ freeswan-1.97/Makefile.module.org   Fri May  3 12:51:46 2002
3 @@ -0,0 +1,27 @@
4 +# Makefile for the ipsec (FreeS/WAN) module.
5 +# (c) Kloc Piotr <pioklo@pld.org.pl> ,2002-05-03, GNU GPL
6 +
7 +KDIR=linux
8 +TOPDIR=$(KDIR)
9 +
10 +default: module
11 +all: module
12 +modules: module
13 +
14 +module:
15 +              $(MAKE) -f Makefile kmodule
16 +
17 +install: install_mod
18 +
19 +install_mod:
20 +              ( cd $(KDIR)/net/ipsec; \
21 +                ln -sf ../../arch .; ln -sf ../../Rules.make .; cd ../..; \
22 +                $(MAKE) -C net/ipsec -f Makefile.ipsec ipsecmod_inst )
23 +                rm $(KDIR)/net/ipsec/arch $(KDIR)/net/ipsec/Rules.make
24 +              $(MAKE) -f Makefile unpatch
25 +              ( cd $(KDIR); rm -rf net/ipsec; yes "" | $(MAKE) oldconfig )
26 +
27 +clean:
28 +              $(MAKE) -f Makefile unpatch
29 +              rm -rf $(KDIR)/net/ipsec
30 +              (cd $(KDIR); yes "" | $(MAKE) oldconfig)
31 +
32 --- freeswan-1.97/Makefile.ipsec        Fri May  3 13:14:54 2002
33 +++ freeswan-1.97/Makefile.ipsec.org    Fri May  3 13:14:43 2002
34 @@ -0,0 +1,36 @@
35 +# Makefile for the ipsec (FreeS/WAN) driver
36 +# (w) 5/2002, pioklo@pld.org.pl
37 +
38 +KDIR := linux
39 +TOPDIR := $(KDIR)
40 +
41 +TARGET = ipsec.o
42 +
43 +default: $(TARGET)
44 +
45 +TOPDIR := $(KDIR)
46 +include $(KDIR)/.config
47 +include $(KDIR)/Makefile
48 +TOPDIR := $(KDIR)
49 +
50 +CFLAGS := -I$(KDIR)/include $(CFLAGS) -DMODULE
51 +ifdef CONFIG_MODVERSIONS
52 +CFLAGS += -DMODVERSIONS -include $(KDIR)/include/linux/modversions.h
53 +endif
54 +
55 +include Makefile
56 +
57 +ifndef MODLIB
58 +MODLIB = $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)
59 +endif
60 +
61 +ifeq ($(PATCHLEVEL),2)
62 +MODSUB := misc
63 +else
64 +MODSUB := kernel/misc
65 +endif
66 +
67 +ipsecmod_inst:
68 +              install -o root -g root -m 0755 -d $(MODLIB)/$(MODSUB)
69 +              install -o root -g root -m 0644 ipsec.o $(MODLIB)/$(MODSUB)/
70 +
This page took 0.026536 seconds and 3 git commands to generate.