~ubuntu-branches/ubuntu/hardy/openswan/hardy-updates

« back to all changes in this revision

Viewing changes to packaging/makefiles/module26.make

  • Committer: Bazaar Package Importer
  • Author(s): Rene Mayrhofer
  • Date: 2005-01-27 16:10:11 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050127161011-idgybmyz3vwhpfiq
Tags: 2.3.0-2
Urgency HIGH due to security issue and problems with build-deps in sarge.
* Fix the security issue. Please see
  http://www.idefense.com/application/poi/display?id=190&
      type=vulnerabilities&flashstatus=false
  for more details. Thanks to Martin Schulze for informing me about
  this issue.
  Closes: #292458: Openswan XAUTH/PAM Buffer Overflow Vulnerability
* Added a Build-Dependency to lynx.
  Closes: #291143: openswan: FTBFS: Missing build dependency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# I really am not happy about using symlinks to make this work.
 
2
#
 
3
# I think that there should be a better way to do this.
 
4
# see module26.sh in packaging/makefiles
 
5
#
 
6
 
 
7
 
 
8
ifndef OPENSWANSRCDIR
 
9
$(error You Must set OPENSWANSRCDIR)
 
10
endif
 
11
 
 
12
include ${OPENSWANSRCDIR}/Makefile.inc
 
13
 
 
14
KLIPS_TOP := ${OPENSWANSRCDIR}/linux
 
15
 
 
16
# include file with .h-style macros that would otherwise be created by
 
17
# config. Must occur before other includes.
 
18
ifneq ($(strip $(MODULE_DEF_INCLUDE)),)
 
19
EXTRA_CFLAGS += -include ${MODULE_DEF_INCLUDE}
 
20
endif
 
21
 
 
22
EXTRA_CFLAGS += -I${KLIPS_TOP}/include
 
23
 
 
24
# build version.c using version number from Makefile.ver
 
25
${BUILDDIR}/version.c:  ${KLIPSSRC}/version.in.c ${OPENSWANSRCDIR}/Makefile.ver
 
26
        sed '/"/s/xxx/$(IPSECVERSION)/' ${KLIPSSRC}/version.in.c >$@
 
27
 
 
28
${BUILDDIR}/%.c : ${KLIPSSRC}/%.c
 
29
        ln -s -f $< $@
 
30
 
 
31
${BUILDDIR}/%.h : ${KLIPSSRC}/%.h
 
32
        ln -s -f $< $@
 
33
 
 
34
${BUILDDIR}/%.c : ${KLIPSSRC}/des/%.c
 
35
        ln -s -f $< $@
 
36
 
 
37
${BUILDDIR}/%.S : ${KLIPSSRC}/des/%.S
 
38
        ln -s -f $< $@
 
39
 
 
40
${BUILDDIR}/%.c : ${KLIPSSRC}/aes/%.c
 
41
        ln -s -f $< $@
 
42
 
 
43
${BUILDDIR}/%.c : ${KLIPSSRC}/alg/%.c
 
44
        ln -s -f $< $@
 
45
 
 
46
.PRECIOUS: ${BUILDDIR}/%.c ${BUILDDIR}/%.h
 
47
 
 
48
# I'm not fixing this in a better way, because we should use the
 
49
# in-kernel zlib!
 
50
${BUILDDIR}/deflate.c: ${BUILDDIR}/deflate.h
 
51
${BUILDDIR}/infblock.c: ${BUILDDIR}/infblock.h ${BUILDDIR}/inftrees.h
 
52
${BUILDDIR}/infblock.c: ${BUILDDIR}/infcodes.h  ${BUILDDIR}/infutil.h
 
53
${BUILDDIR}/infcodes.c: ${BUILDDIR}/inffast.h
 
54
${BUILDDIR}/inftrees.c: ${BUILDDIR}/inffixed.h
 
55
${BUILDDIR}/trees.c: ${BUILDDIR}/trees.h
 
56
 
 
57
include ${OPENSWANSRCDIR}/packaging/makefiles/module.defs 
 
58
include ${KLIPSSRC}/Makefile.fs2_6
 
59
 
 
60
ipsec-obj-$(CONFIG_KLIPS_AH)+= ipsec_ah.o
 
61
ipsec-obj-$(CONFIG_KLIPS_ESP)+= ipsec_esp.o
 
62
ipsec-obj-$(CONFIG_KLIPS_IPCOMP)+= ipsec_ipcomp.o
 
63
ipsec-obj-$(CONFIG_KLIPS_AUTH_HMAC_MD5) += ipsec_md5c.o
 
64
ipsec-obj-$(CONFIG_KLIPS_AUTH_HMAC_SHA1) += ipsec_sha1.o
 
65
 
 
66
# AH, if you really think you need it.
 
67
ipsec-obj-$(CONFIG_KLIPS_AH) += ipsec_ah.o
 
68
 
 
69
ipsec-obj-$(CONFIG_KLIPS_ALG)  += ipsec_alg.o
 
70
 
 
71
#ipsec-obj-$(CONFIG_KLIPS_ENC_3DES) += des/
 
72
#ipsec-obj-$(CONFIG_KLIPS_ENC_AES)  += aes/
 
73
 
 
74
ipsec-obj-$(CONFIG_KLIPS_ENC_CRYPTOAPI) += ipsec_alg_cryptoapi.o
 
75
 
 
76
obj-m := ipsec.o
 
77
 
 
78
ipsec-objs := ${base-klips-objs} ${base-ipcomp-objs} ${ipsec-obj-m} ${ipsec-obj-y}
 
79
 
 
80
# XXX and it seems that recursing into subdirs is a PITA for out-of-kernel
 
81
# module builds. At least, it never occurs for me.
 
82
aes-obj-${CONFIG_KLIPS_ENC_AES} += aes/ipsec_alg_aes.o
 
83
aes-obj-${CONFIG_KLIPS_ENC_AES} += aes/aes_xcbc_mac.o
 
84
aes-obj-${CONFIG_KLIPS_ENC_AES} += aes/aes_cbc.o
 
85
 
 
86
ifeq ($(strip ${SUBARCH}),)
 
87
SUBARCH:=${ARCH}
 
88
endif
 
89
 
 
90
ifeq (${SUBARCH},i386)
 
91
aes-obj-${CONFIG_KLIPS_ENC_AES} += aes/aes-i586.o
 
92
else
 
93
aes-obj-${CONFIG_KLIPS_ENC_AES} += aes/aes.o
 
94
endif
 
95
 
 
96
des-obj-$(CONFIG_KLIPS_ENC_3DES) += cbc_enc.o
 
97
des-obj-$(CONFIG_KLIPS_ENC_3DES) += ecb_enc.o
 
98
des-obj-$(CONFIG_KLIPS_ENC_3DES) += set_key.o
 
99
 
 
100
ifeq ($(strip ${SUBARCH}),)
 
101
SUBARCH:=${ARCH}
 
102
endif
 
103
 
 
104
# XXX and I still can't get the assembler to get invoked at the right time.
 
105
ifeq (${SUBARCH},i386)
 
106
des-obj-$(CONFIG_KLIPS_ENC_3DES) += dx86unix.o
 
107
else
 
108
des-obj-$(CONFIG_KLIPS_ENC_3DES) += des_enc.o
 
109
endif
 
110
 
 
111
ipsec-objs += ${des-obj-m} ${aes-obj-m}
 
112
 
 
113
 
 
114