feat: debian package

This commit is contained in:
2024-02-19 00:02:21 +01:00
parent 1abf28cdf5
commit d658010ae8
7 changed files with 30 additions and 2 deletions
+5 -2
View File
@@ -1,5 +1,8 @@
*.swp
.env
test
backup.list
config.properties
/backup.list
/config.properties
*.deb
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/make -f
ifneq (,$(wildcard ./.env))
include .env
export
endif
PACKAGE_NAME := autobackup
build:
dpkg -b $(PACKAGE_NAME)
release: build
curl -u zankia:$(GITEA_TOKEN) --upload-file $(PACKAGE_NAME).deb https://git.zankia.fr/api/packages/zankia/debian/pool/gitea/main/upload
clean:
rm $(PACKAGE_NAME).deb
+6
View File
@@ -0,0 +1,6 @@
Package: autobackup
Version: 1.0
Architecture: all
Maintainer: zankia <admin@zankia.fr>
Description: automatically backup directories on a regular basis
Depends: bash, findutils, rsync
+2
View File
@@ -0,0 +1,2 @@
# Automatically backup directories on a daily basis
0 4 * * * root /usr/bin/autobackup