2014-02-05 01:49:46 +04:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2018-07-25 22:10:09 +03:00
|
|
|
define generate_stub
|
2018-08-05 17:42:05 +03:00
|
|
|
mkdir -p debian/usr/bin
|
2018-07-25 22:10:09 +03:00
|
|
|
echo '#!/bin/sh' > debian/usr/bin/$(1)
|
2018-08-05 17:42:05 +03:00
|
|
|
echo '/usr/libexec/softether/$(1)/$(1) "$$@"' >> debian/usr/bin/$(1)
|
2018-07-25 22:10:09 +03:00
|
|
|
echo 'exit $?' >> debian/usr/bin/$(1)
|
|
|
|
chmod +x debian/usr/bin/$(1)
|
|
|
|
endef
|
|
|
|
|
2014-02-05 01:49:46 +04:00
|
|
|
export DH_VERBOSE=1
|
2018-07-25 22:10:09 +03:00
|
|
|
export export CMAKE_INSTALL_PREFIX=../debian/usr
|
2014-02-05 01:49:46 +04:00
|
|
|
|
|
|
|
%:
|
|
|
|
dh $@
|
|
|
|
|
2018-08-05 17:42:05 +03:00
|
|
|
override_dh_auto_configure:
|
|
|
|
cmake .
|
2018-06-28 14:23:21 +03:00
|
|
|
|
2014-02-05 01:49:46 +04:00
|
|
|
override_dh_auto_install:
|
2018-08-05 17:42:05 +03:00
|
|
|
dh_auto_install
|
2018-07-25 22:10:09 +03:00
|
|
|
$(call generate_stub,vpnserver)
|
|
|
|
$(call generate_stub,vpnbridge)
|
|
|
|
$(call generate_stub,vpncmd)
|
|
|
|
$(call generate_stub,vpnclient)
|