Commit 0b77ad49 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Reused server installation in client target

parent 04e5fb0f
all: strongswan-conf swanctl-conf ipsec-notify all: server
server: strongswan-conf swanctl-conf ipsec-notify
tar xf strongswan-5.8.0.tar.bz2 tar xf strongswan-5.8.0.tar.bz2
cd strongswan-5.8.0 && ./configure --prefix=/usr --sysconfdir=/etc --enable-systemd --enable-swanctl --disable-charon --disable-stroke --disable-scepclient --disable-connmark --enable-curl cd strongswan-5.8.0 && ./configure --prefix=/usr --sysconfdir=/etc --enable-systemd --enable-swanctl --disable-charon --disable-stroke --disable-scepclient --disable-connmark --enable-curl
$(MAKE) -C strongswan-5.8.0 $(MAKE) -C strongswan-5.8.0
...@@ -12,21 +14,9 @@ all: strongswan-conf swanctl-conf ipsec-notify ...@@ -12,21 +14,9 @@ all: strongswan-conf swanctl-conf ipsec-notify
chmod 755 /usr/sbin/ipsec-notify.sh chmod 755 /usr/sbin/ipsec-notify.sh
rm -rf strongswan-5.8.0 rm -rf strongswan-5.8.0
client: strongswan-conf swanctl-conf ipsec-notify vpn-config client: server vpn-config
tar xf strongswan-5.8.0.tar.bz2
cd strongswan-5.8.0 && ./configure --prefix=/usr --sysconfdir=/etc --enable-systemd --enable-swanctl --disable-charon --disable-stroke --disable-scepclient --disable-connmark --enable-curl
$(MAKE) -C strongswan-5.8.0
# FIXME: strongswan tests failure!
-$(MAKE) -C strongswan-5.8.0 check
$(MAKE) -C strongswan-5.8.0 install
systemctl enable strongswan
@echo "$$STRONGSWAN_CONF" > /etc/strongswan.conf
@echo "$$SWANCTL_CONF" > /etc/swanctl/swanctl.conf
@echo "$$IPSEC_NOTIFY" > /usr/sbin/ipsec-notify.sh
chmod 755 /usr/sbin/ipsec-notify.sh
install -v -Dm755 vpn /usr/share/easycwmp/functions/vpn install -v -Dm755 vpn /usr/share/easycwmp/functions/vpn
@echo "$$VPN_CONFIG" > /etc/config/vpn @echo "$$VPN_CONFIG" > /etc/config/vpn
rm -rf strongswan-5.8.0
strongswan-conf: strongswan-conf:
define STRONGSWAN_CONF define STRONGSWAN_CONF
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment