27 lines
959 B
Bash
27 lines
959 B
Bash
# Template file for 'zfs-auto-snapshot'
|
|
pkgname=zfs-auto-snapshot
|
|
version=1.2.4
|
|
revision=3
|
|
wrksrc="${pkgname}-upstream-${version}"
|
|
build_style=gnu-makefile
|
|
depends="zfs"
|
|
short_desc="ZFS automatic snapshot service"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://github.com/zfsonlinux/zfs-auto-snapshot"
|
|
distfiles="${homepage}/archive/upstream/${version}.tar.gz"
|
|
checksum=307f71f748cacf5149532891dc3174365a4494337d9cfc8e619d9038080f3e9b
|
|
conf_files="/etc/cron.*/zfs-auto-snapshot"
|
|
|
|
post_patch() {
|
|
# The "frequent" crontab contais a PATH= directive, which is not
|
|
# supported with the dcron package and is otherwise unnecessary
|
|
vsed -i '/^PATH=/d' etc/zfs-auto-snapshot.cron.frequent
|
|
# replace which with command -v
|
|
vsed -i 's/ which / command -v /' etc/zfs-auto-snapshot.cron.frequent
|
|
vsed -i 's/^which /command -v /' etc/zfs-auto-snapshot.cron.*ly
|
|
}
|
|
|
|
post_install() {
|
|
mv ${DESTDIR}/usr/sbin ${DESTDIR}/usr/bin
|
|
}
|