diff options
| author | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2026-02-19 15:53:29 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2026-02-20 15:00:41 +0100 |
| commit | 9f62267456332c5d6acff1e343870729cf23345a (patch) | |
| tree | 0ec67f59a7b3d98dc9690f7288e34e619fd94008 /debian/rules | |
| parent | d37c61e828f2c428b08bea06062dc4f55d410a1e (diff) | |
Debian: Initial package building in upstream repo
Diffstat (limited to 'debian/rules')
| -rwxr-xr-x | debian/rules | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..73c1724 --- /dev/null +++ b/debian/rules @@ -0,0 +1,35 @@ +#!/usr/bin/make -f +#export DH_VERBOSE = 1 + +export PYBUILD_NAME=eduvpn-common +PYWRAPPER_PATH := wrappers/python +DEB_VERSION := $(shell dpkg-parsechangelog --show-field=Version | cut -d '+' -f1 | cut -d '-' -f1) + + +override_dh_auto_install: + dh_auto_install --sourcedirectory $(PYWRAPPER_PATH) + +%: + dh $@ --with python3 --buildsystem=pybuild + + +override_dh_auto_test: + + +override_dh_auto_clean: + dh_auto_clean --sourcedirectory $(PYWRAPPER_PATH) + + GOCACHE="/tmp" go clean + +override_dh_auto_configure: + dh_auto_configure --sourcedirectory $(PYWRAPPER_PATH) + +override_dh_auto_build: + dh_auto_build --sourcedirectory $(PYWRAPPER_PATH) + + # Make go library + GOCACHE="/tmp" CGO_ENABLED="1" go build -o lib/libeduvpn_common-$(DEB_VERSION).so -tags=release -buildmode=c-shared ./exports + + +override_dh_builddeb: + dh_builddeb -- -Zxz |
