From: Bastian Dehn Date: Sun, 17 May 2026 09:54:42 +0000 (+0200) Subject: add build deb package X-Git-Tag: v1.0.0^2^2~10 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=36db3bfcf4f88d6ecb61921657d702ca34a0ccd7;p=simple-backup.git add build deb package --- diff --git a/Makefile b/Makefile index 2936bd7..66b544a 100644 --- a/Makefile +++ b/Makefile @@ -13,13 +13,12 @@ build: $(BINDIR)/backup \ $(BINDIR)/backupmount \ $(BINDIR)/restore -package: build \ - $(BUILDDIR)/DEBIAN/control +package: $(BUILDDIR)/$(PACKAGENAME).deb clean: rm -rf build -$(BUILDDIR)/DEBIAN/control: +$(BUILDDIR)/$(PACKAGENAME)/DEBIAN/control: mkdir --parents $(@D) cat control | sed "s/\$$VERSION/$(VERSION)/" > $(@) @@ -34,3 +33,13 @@ $(BINDIR)/backupmount: $(BINDIR)/restore: mkdir --parents $(@D) cp restore $(@) + +$(BUILDDIR)/$(PACKAGENAME).deb: \ + $(BINDIR)/backup \ + $(BINDIR)/backupmount \ + $(BINDIR)/restore \ + $(BUILDDIR)/$(PACKAGENAME)/DEBIAN/control + + mkdir --parents $(@D) + umask 0022 + cd build && dpkg-deb --build --root-owner-group $(PACKAGENAME) diff --git a/control b/control index e0a7e28..afa1eac 100644 --- a/control +++ b/control @@ -2,6 +2,6 @@ Package: simple-backup Version: $VERSION Section: admin Priority: optional -Architecture: x86_64 +Architecture: amd64 Maintainer: Bastian Dehn Description: backup bash script on rsync base