1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-27 02:29:52 +03:00
SoftEtherVPN/debian/rules

26 lines
603 B
Plaintext
Raw Normal View History

2014-02-05 01:49:46 +04:00
#!/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
2014-02-05 01:49:46 +04:00
export DH_VERBOSE=1
export export CMAKE_INSTALL_PREFIX=../debian/usr
2014-02-05 01:49:46 +04:00
%:
dh $@
override_dh_auto_configure:
cmake .
2014-02-05 01:49:46 +04:00
override_dh_auto_install:
dh_auto_install
$(call generate_stub,vpnserver)
$(call generate_stub,vpnbridge)
$(call generate_stub,vpncmd)
$(call generate_stub,vpnclient)