Initial version of deb pkg, based on pybuild. Reverted to classic setup.py, because debian tooling does not yet understand the newer pyproject.toml. Yamale is absent from the list of package dependencies as there is as yet no upstream debian packaging for it, will need to work around with documentation and install with pip for the moment. Autotest of the debian packaging is also disabled for the moment. Systemd service is automatically installed and bould to the vpp service, but does not become active until the user creates the configuration /etc/vpp/config.yaml Signed-off-by: Ray Kinsella <mdr@ashroe.eu>
35 lines
693 B
Makefile
35 lines
693 B
Makefile
VERSION=0.0.1
|
|
VPPCFG:=vppcfg
|
|
PYTHON?=python3
|
|
PIP?=pip
|
|
PIP_DEPENDS=build yamale netaddr pylint
|
|
PIP_DEPENDS+=argparse pyyaml ipaddress black
|
|
WIPE=dist $(VPPCFG).egg-info .pybuild debian/vppcfg debian/vppcfg.*.log
|
|
WIPE+=debian/vppcfg.*.debhelper debian/.debhelper debian/files
|
|
WIPE+=debian/vppcfg.substvars
|
|
WHL_INSTALL=dist/$(VPPCFG)-$(VERSION)-py3-none-any.whl
|
|
|
|
.PHONY: build
|
|
build:
|
|
$(PYTHON) -m build
|
|
|
|
.PHONY: install-deps
|
|
install-deps:
|
|
sudo $(PIP) install $(PIP_DEPENDS)
|
|
|
|
.PHONY: install
|
|
install:
|
|
sudo $(PIP) install $(WHL_INSTALL)
|
|
|
|
.PHONY: pkg-deb
|
|
pkg-deb:
|
|
dpkg-buildpackage -uc -us -b
|
|
|
|
.PHONY: uninstall
|
|
uninstall:
|
|
sudo $(PIP) uninstall $(VPPCFG)
|
|
|
|
.PHONY: wipe
|
|
wipe:
|
|
$(RM) -rf $(WIPE)
|