feat: debian package
This commit is contained in:
+5
-2
@@ -1,5 +1,8 @@
|
||||
*.swp
|
||||
.env
|
||||
test
|
||||
|
||||
backup.list
|
||||
config.properties
|
||||
/backup.list
|
||||
/config.properties
|
||||
|
||||
*.deb
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -0,0 +1,2 @@
|
||||
# Automatically backup directories on a daily basis
|
||||
0 4 * * * root /usr/bin/autobackup
|
||||
Reference in New Issue
Block a user