zfs-auto-snapshot: crontab improvements
This commit is contained in:
parent
1cb47f5999
commit
8cb1b4f06c
1 changed files with 12 additions and 5 deletions
|
@ -1,16 +1,23 @@
|
||||||
# Template file for 'zfs-auto-snapshot'
|
# Template file for 'zfs-auto-snapshot'
|
||||||
pkgname=zfs-auto-snapshot
|
pkgname=zfs-auto-snapshot
|
||||||
version=1.2.4
|
version=1.2.4
|
||||||
revision=1
|
revision=2
|
||||||
|
archs=noarch
|
||||||
wrksrc="${pkgname}-upstream-${version}"
|
wrksrc="${pkgname}-upstream-${version}"
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
||||||
license="GPL-2"
|
|
||||||
homepage="https://github.com/zfsonlinux/zfs-auto-snapshot"
|
|
||||||
short_desc="ZFS automatic snapshot service"
|
short_desc="ZFS automatic snapshot service"
|
||||||
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
|
license="GPL-2.0-only"
|
||||||
|
homepage="https://github.com/zfsonlinux/zfs-auto-snapshot"
|
||||||
distfiles="${homepage}/archive/upstream/${version}.tar.gz"
|
distfiles="${homepage}/archive/upstream/${version}.tar.gz"
|
||||||
checksum=307f71f748cacf5149532891dc3174365a4494337d9cfc8e619d9038080f3e9b
|
checksum=307f71f748cacf5149532891dc3174365a4494337d9cfc8e619d9038080f3e9b
|
||||||
archs=noarch
|
conf_files="/etc/cron.*/zfs-auto-snapshot"
|
||||||
|
|
||||||
|
pre_install() {
|
||||||
|
# The "frequent" crontab contais a PATH= directive, which is not
|
||||||
|
# supported with the dcron package and is otherwise unnecessary
|
||||||
|
vsed -i 's/^PATH=/#PATH=/' etc/zfs-auto-snapshot.cron.frequent
|
||||||
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
mv ${DESTDIR}/usr/sbin ${DESTDIR}/usr/bin
|
mv ${DESTDIR}/usr/sbin ${DESTDIR}/usr/bin
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue