1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-12 20:50:41 +03:00
SoftEtherVPN/debian/rules
Ilya Shipitsin ca74959d21 debian: try to initialize submodules on very early stage
launchpad builds are missing ".git" subfolder, probably
because of deleting them during "clean" stage
2018-08-08 22:27:13 +05:00

30 lines
684 B
Makefile
Executable File

#!/usr/bin/make -f
define generate_stub
mkdir -p debian/usr/bin
echo '#!/bin/sh' > debian/usr/bin/$(1)
echo '/usr/libexec/softether/$(1)/$(1) "$$@"' >> debian/usr/bin/$(1)
echo 'exit $?' >> debian/usr/bin/$(1)
chmod +x debian/usr/bin/$(1)
endef
export DH_VERBOSE=1
export export CMAKE_INSTALL_PREFIX=../debian/usr
%:
dh $@
override_dh_auto_clean:
git submodule update --init --recursive
dh_auto_clean
override_dh_auto_configure:
cmake .
override_dh_auto_install:
dh_auto_install
$(call generate_stub,vpnserver)
$(call generate_stub,vpnbridge)
$(call generate_stub,vpncmd)
$(call generate_stub,vpnclient)