@@ -125,3 +125,41 @@ brews:
125125 system "#{bin}/resticprofile", "backup", "testfile"
126126 system "#{bin}/resticprofile", "restore", "latest", "-t", "#{testpath}/restore"
127127 assert compare_file "testfile", "#{testpath}/restore/testfile"
128+
129+ nfpms :
130+ -
131+ builds :
132+ - resticprofile_targz
133+ formats :
134+ - apk
135+ - deb
136+ - rpm
137+ vendor : " creativeprojects"
138+ homepage : " https://github.com/creativeprojects"
139+ maintainer : " fred@creativeprojects.tech"
140+ description : " Configuration profiles for restic backup"
141+ license : " GPL-3.0-only"
142+ file_name_template : " {{.ProjectName}}_{{.Version}}-{{.Arch}}"
143+ replacements :
144+ amd64 : 64bit
145+ 386 : 32bit
146+ arm : ARM
147+ arm64 : ARM64
148+ linux : Linux
149+ dependencies :
150+ - restic
151+ bindir : " /usr/local/bin"
152+ scripts :
153+ postinstall : " contrib/posix/post-install.sh"
154+ contents :
155+ - { type: config, src: contrib/posix/profiles.conf, dst: /etc/resticprofile/profiles.conf.dist }
156+ - { type: config, src: contrib/posix/conf.d/check.conf, dst: /etc/resticprofile/conf.d/check.conf.dist }
157+ - { type: config, src: contrib/posix/conf.d/hooks.conf, dst: /etc/resticprofile/conf.d/hooks.conf.dist }
158+ - { type: config, src: contrib/posix/conf.d/metrics.conf, dst: /etc/resticprofile/conf.d/metrics.conf.dist }
159+ - { type: config, src: contrib/posix/conf.d/prune.conf, dst: /etc/resticprofile/conf.d/prune.conf.dist }
160+ - { type: config, src: contrib/posix/conf.d/repository.conf, dst: /etc/resticprofile/conf.d/repository.conf.dist }
161+ - { type: config, src: contrib/posix/profiles.d/fs-snapshot.yaml.sample, dst: /etc/resticprofile/profiles.d/fs-snapshot.yaml.sample }
162+ - { type: config, src: contrib/posix/profiles.d/system.toml, dst: /etc/resticprofile/profiles.d/system.toml.dist }
163+ - src : contrib/systemd/resticprofile-send-error.sh
164+ dst : /usr/local/bin/resticprofile-send-error
165+ file_info : { mode: 0640, owner: root, group: root }
0 commit comments