File tree Expand file tree Collapse file tree 4 files changed +10
-11
lines changed Expand file tree Collapse file tree 4 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 169169cat > Makefile.inc.local << 'EOF '
170170WERROR_CFLAGS=-w
171171USE_DNSSEC=false
172+ EOF
173+ if [ " $SWAN_VER " != " 4.1" ]; then
174+ cat >> Makefile.inc.local << 'EOF '
172175USE_DH31=false
173176USE_NSS_AVA_COPY=true
174177USE_NSS_IPSEC_PROFILE=false
175178USE_GLIBC_KERN_FLIP_HEADERS=true
176179EOF
180+ fi
177181if [ " $SWAN_VER " = " 3.31" ] || [ " $SWAN_VER " = " 3.32" ] || [ " $SWAN_VER " = " 4.1" ]; then
178182 echo " USE_DH2=true" >> Makefile.inc.local
183+ fi
184+ if [ " $SWAN_VER " = " 3.31" ] || [ " $SWAN_VER " = " 3.32" ]; then
179185 if ! grep -qs IFLA_XFRM_LINK /usr/include/linux/if_link.h; then
180186 echo " USE_XFRM_INTERFACE_IFLA_HEADER=true" >> Makefile.inc.local
181187 fi
Original file line number Diff line number Diff line change 177177cat > Makefile.inc.local << 'EOF '
178178WERROR_CFLAGS=-w
179179USE_DNSSEC=false
180+ EOF
181+ if [ " $SWAN_VER " != " 4.1" ]; then
182+ cat >> Makefile.inc.local << 'EOF '
180183USE_DH31=false
181184USE_NSS_AVA_COPY=true
182185USE_NSS_IPSEC_PROFILE=false
183186USE_GLIBC_KERN_FLIP_HEADERS=true
184187EOF
188+ fi
185189if [ " $SWAN_VER " = " 3.31" ] || [ " $SWAN_VER " = " 3.32" ] || [ " $SWAN_VER " = " 4.1" ]; then
186190 echo " USE_DH2=true" >> Makefile.inc.local
187191 if ! grep -qs IFLA_XFRM_LINK /usr/include/linux/if_link.h; then
Original file line number Diff line number Diff line change @@ -197,16 +197,9 @@ cat > Makefile.inc.local <<'EOF'
197197WERROR_CFLAGS=-w
198198USE_DNSSEC=false
199199USE_DH2=true
200- USE_DH31=false
201- USE_NSS_AVA_COPY=true
202- USE_NSS_IPSEC_PROFILE=false
203- USE_GLIBC_KERN_FLIP_HEADERS=true
204200USE_NSS_KDF=false
205201FINALNSSDIR=/etc/ipsec.d
206202EOF
207- if ! grep -qs IFLA_XFRM_LINK /usr/include/linux/if_link.h; then
208- echo " USE_XFRM_INTERFACE_IFLA_HEADER=true" >> Makefile.inc.local
209- fi
210203if [ " $( packaging/utils/lswan_detect.sh init) " = " systemd" ]; then
211204 apt-get -yq install libsystemd-dev || exiterr2
212205fi
Original file line number Diff line number Diff line change @@ -194,10 +194,6 @@ cat > Makefile.inc.local <<'EOF'
194194WERROR_CFLAGS=-w
195195USE_DNSSEC=false
196196USE_DH2=true
197- USE_DH31=false
198- USE_NSS_AVA_COPY=true
199- USE_NSS_IPSEC_PROFILE=false
200- USE_GLIBC_KERN_FLIP_HEADERS=true
201197USE_NSS_KDF=false
202198FINALNSSDIR=/etc/ipsec.d
203199EOF
You can’t perform that action at this time.
0 commit comments