From 36db3bfcf4f88d6ecb61921657d702ca34a0ccd7 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sun, 17 May 2026 11:54:42 +0200 Subject: [PATCH] add build deb package --- Makefile | 15 ++++++++++++--- control | 2 +- 2 files changed, 13 insertions(+), 4 deletions(-) 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 -- 2.47.3