diff options
author | Wesley Shields <wxs@FreeBSD.org> | 2008-12-10 20:55:28 +0000 |
---|---|---|
committer | Wesley Shields <wxs@FreeBSD.org> | 2008-12-10 20:55:28 +0000 |
commit | 987597262534b3c9ffeda9ea0ebe1e28ac0b914e (patch) | |
tree | 599dad61fd791a0a137549e14602ac8755a29da4 /sysutils/freebsd-snapshot | |
parent | 451ee811b35016ce144408d92a9c9f95ada32533 (diff) | |
download | ports-987597262534b3c9ffeda9ea0ebe1e28ac0b914e.tar.gz ports-987597262534b3c9ffeda9ea0ebe1e28ac0b914e.zip |
Notes
Diffstat (limited to 'sysutils/freebsd-snapshot')
-rw-r--r-- | sysutils/freebsd-snapshot/Makefile | 1 | ||||
-rw-r--r-- | sysutils/freebsd-snapshot/files/patch-periodic-snapshot | 11 | ||||
-rw-r--r-- | sysutils/freebsd-snapshot/files/patch-snapshot | 41 |
3 files changed, 38 insertions, 15 deletions
diff --git a/sysutils/freebsd-snapshot/Makefile b/sysutils/freebsd-snapshot/Makefile index 5b1728070fda..38458c172817 100644 --- a/sysutils/freebsd-snapshot/Makefile +++ b/sysutils/freebsd-snapshot/Makefile @@ -7,6 +7,7 @@ PORTNAME= freebsd-snapshot DISTVERSION= 20071207.1 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://people.freebsd.org/~rse/dist/ diff --git a/sysutils/freebsd-snapshot/files/patch-periodic-snapshot b/sysutils/freebsd-snapshot/files/patch-periodic-snapshot new file mode 100644 index 000000000000..61358e7917f4 --- /dev/null +++ b/sysutils/freebsd-snapshot/files/patch-periodic-snapshot @@ -0,0 +1,11 @@ +--- periodic-snapshot.orig Thu Sep 15 17:44:57 2005 ++++ periodic-snapshot Thu Sep 15 17:46:31 2005 +@@ -29,7 +29,7 @@ + ## + + # make sure system tools are used first +-PATH="/bin:/usr/bin:/sbin:/usr/sbin:$PATH" ++PATH="/bin:/usr/bin:/sbin:/usr/sbin:%%PREFIX%%/sbin:$PATH" + + # configuration defaults + snapshot_enable="NO" diff --git a/sysutils/freebsd-snapshot/files/patch-snapshot b/sysutils/freebsd-snapshot/files/patch-snapshot index ce8426748bc8..22634d78ad88 100644 --- a/sysutils/freebsd-snapshot/files/patch-snapshot +++ b/sysutils/freebsd-snapshot/files/patch-snapshot @@ -1,5 +1,5 @@ ---- snapshot.orig Thu Sep 15 17:44:46 2005 -+++ snapshot Thu Sep 15 17:47:59 2005 +--- snapshot~ 2008-12-06 19:37:53.598862157 -0600 ++++ snapshot 2008-12-06 19:37:53.599877379 -0600 @@ -29,7 +29,7 @@ ## @@ -9,17 +9,28 @@ # option defaults fs_subdir=".snap" +@@ -271,7 +271,7 @@ + i=19 + k=`expr $maxgen - 1` + while [ $i -gt $k ]; do +- if zfs list "$fs_name@$fs_tag.$i" >/dev/null 2>&1; then ++ if zfs list -t snapshot "$fs_name@$fs_tag.$i" >/dev/null 2>&1; then + system zfs destroy "$fs_name@$fs_tag.$i" + fi + i=`expr $i - 1` +@@ -280,12 +280,12 @@ + if [ $maxgen -gt 0 ]; then + # rotate remaining snapshots + i=$k +- if zfs list "$fs_name@$fs_tag.$i" >/dev/null 2>&1; then ++ if zfs list -t snapshot "$fs_name@$fs_tag.$i" >/dev/null 2>&1; then + system zfs destroy "$fs_name@$fs_tag.$i" + fi + i=`expr $i - 1` + while [ $i -ge $fs_gen ]; do +- if zfs list "$fs_name@$fs_tag.$i" >/dev/null 2>&1; then ++ if zfs list -t snapshot "$fs_name@$fs_tag.$i" >/dev/null 2>&1; then + j=`expr $i + 1` + system zfs rename "$fs_name@$fs_tag.$i" "$fs_name@$fs_tag.$j" + fi - -cat files/patch-periodic-snapshot ---- periodic-snapshot.orig Thu Sep 15 17:44:57 2005 -+++ periodic-snapshot Thu Sep 15 17:46:31 2005 -@@ -29,7 +29,7 @@ - ## - - # make sure system tools are used first --PATH="/bin:/usr/bin:/sbin:/usr/sbin:$PATH" -+PATH="/bin:/usr/bin:/sbin:/usr/sbin:%%PREFIX%%/sbin:$PATH" - - # configuration defaults - snapshot_enable="NO" |