mirror of https://github.com/EdgeVPNio/tools.git
37 lines
1.2 KiB
Bash
Executable File
37 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# This script should be invoke with the current working directory set to TOOLS_DIR/debian-package.
|
|
|
|
if [ -z "$1" -o -z "$2" -o -z "$3" ]; then
|
|
echo deb-gen error: 3 input args expected
|
|
exit 1
|
|
fi
|
|
PkgVer=$3
|
|
PkgArch=$2
|
|
OutDir=$1
|
|
if [ "$4" != "nodeps" ]; then
|
|
Deps="python3.9, python3.9-dev, python3.9-venv, python3-pip, python3-wheel, iproute2, openvswitch-switch"
|
|
if [ "$PkgArch" == "armhf" -o "$PkgArch" = "arm64" ]; then
|
|
Deps="libffi-dev, $Deps"
|
|
fi
|
|
fi
|
|
echo "install dependencies: $Deps"
|
|
cat <<! > evio/DEBIAN/control
|
|
Package: evio
|
|
Name: EdgeVPNio
|
|
Version : $PkgVer
|
|
Maintainer: <ip.over.p2p@gmail.com>
|
|
Architecture: $PkgArch
|
|
Homepage: http://edgevpn.io
|
|
Depends: $Deps
|
|
Description: Virtualized Overlay Networks.
|
|
EdgeVPN is an open-source user-centric software virtual network allowing end users to define and create their own virtual private networks (VPNs). EdgeVPNio virtual networks provide end-to-end tunneling of IP or Ethernet over Tincan links setup and managed through a control API to create various software-defined VPN overlays.
|
|
Tag: P2P Edge Overlay Networking
|
|
!
|
|
if [ $? -ne 0 ]; then
|
|
rm -f evio/DEBIAN/control
|
|
exit 1
|
|
fi
|
|
dpkg-deb --build --root-owner-group evio $OutDir
|
|
rm -f evio/DEBIAN/control
|