Add debian packaging files
This commit is contained in:
24
debian/rules
vendored
Normal file
24
debian/rules
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
export DH_VERBOSE=1
|
||||
|
||||
%:
|
||||
dh $@ --with systemd
|
||||
|
||||
override_dh_auto_install:
|
||||
mkdir -p debian/postgres-backup/usr/share/postgres-backup
|
||||
mkdir -p debian/postgres-backup/etc/postgres-backup
|
||||
mkdir -p debian/postgres-backup/usr/bin
|
||||
|
||||
cp script/pg_backup.sh debian/postgres-backup/usr/share/postgres-backup/pg_backup.sh
|
||||
cp script/pg_backup_rotated.sh debian/postgres-backup/usr/share/postgres-backup/pg_backup_rotated.sh
|
||||
cp conf/pg_backup.conf debian/postgres-backup/usr/share/postgres-backup/pg_backup.conf
|
||||
|
||||
chmod +x debian/postgres-backup/usr/share/postgres-backup/pg_backup_rotated.sh
|
||||
chmod +x debian/postgres-backup/usr/share/postgres-backup/pg_backup.sh
|
||||
|
||||
install -D -m 644 debian/postgres-backup.timer debian/postgres-backup/lib/systemd/system/postgres-backup.timer
|
||||
|
||||
install -d debian/postgres-backup
|
Reference in New Issue
Block a user