From fbc793c63ecaae0beb10dcd7a831c3dd60363e1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sun, 20 Sep 2020 09:08:56 +0700 Subject: [PATCH] zfs-auto-snapshot: drop noarch, fix dependencies --- srcpkgs/zfs-auto-snapshot/template | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/srcpkgs/zfs-auto-snapshot/template b/srcpkgs/zfs-auto-snapshot/template index 113dfd3c30b..3436856e73f 100644 --- a/srcpkgs/zfs-auto-snapshot/template +++ b/srcpkgs/zfs-auto-snapshot/template @@ -1,22 +1,25 @@ # Template file for 'zfs-auto-snapshot' pkgname=zfs-auto-snapshot version=1.2.4 -revision=2 -archs=noarch +revision=3 wrksrc="${pkgname}-upstream-${version}" build_style=gnu-makefile +depends="zfs" short_desc="ZFS automatic snapshot service" maintainer="Orphaned " -license="GPL-2.0-only" +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" -pre_install() { +post_patch() { # 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 + 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() {