summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2010-06-25 23:43:24 +0000
committerMark Linimon <linimon@FreeBSD.org>2010-06-25 23:43:24 +0000
commit2ca917890d64e873bcebe0776083a182eb1bcd57 (patch)
treeb90311c68cfe4e7759d5217e2268c5c0361703b7 /Tools
parentGeneralize the packge building scripts to be able to be run on more than (diff)
Generalize the packge building scripts to be able to be run on more than
one 'head' node, rather than just pointyhat itself. Constants are factored out into installation-specific files known as portbuild/conf/server.conf and portbuild/conf/client.conf. There is only one server.conf file. Individual <arch> directories may have their own client.conf files, or may symlink to ../conf/client.conf. NOTE: these scripts are not yet parameterized, so this is WIP. Feature safe: yes
Notes
Notes: svn path=/head/; revision=257000
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/zbackup3
-rw-r--r--Tools/portbuild/scripts/zexpire9
2 files changed, 8 insertions, 4 deletions
diff --git a/Tools/portbuild/scripts/zbackup b/Tools/portbuild/scripts/zbackup
index 19efddd550d8..7d68d8e1524b 100755
--- a/Tools/portbuild/scripts/zbackup
+++ b/Tools/portbuild/scripts/zbackup
@@ -8,15 +8,18 @@ import zfs, commands, datetime, sys, os, bz2
from signal import *
# List of filesystems to backup
+# XXX MCL
backuplist=["a", "a/nfs", "a/local", "a/portbuild",
"a/portbuild/amd64", "a/portbuild/i386",
"a/portbuild/ia64", "a/portbuild/powerprc",
"a/portbuild/sparc64"]
# Directory to store backups
+# XXX MCL
backupdir="/dumpster/pointyhat/backup"
# How many days between full backups
+# XXX MCL
fullinterval=9
def validate():
diff --git a/Tools/portbuild/scripts/zexpire b/Tools/portbuild/scripts/zexpire
index 22539f899db8..5aa7b21c9c38 100644
--- a/Tools/portbuild/scripts/zexpire
+++ b/Tools/portbuild/scripts/zexpire
@@ -5,6 +5,7 @@
import zfs, commands, datetime, os
# List of filesystems to expire
+# XXX MCL
expirelist=(("a", 14),
("a/nfs", 14),
("a/local", 14),
@@ -16,10 +17,10 @@ expirelist=(("a", 14),
("a/portbuild/sparc64", 14),
("a/snap", 7),
("a/snap/ports", 7),
- ("a/snap/src-6", 7),
- ("a/snap/src-7", 7),
- ("a/snap/src-8", 7),
- ("a/snap/src-9", 7),
+ ("a/snap/src-6/src", 7),
+ ("a/snap/src-7/src", 7),
+ ("a/snap/src-8/src", 7),
+ ("a/snap/src-9/src", 7),
("a/snap/world-amd64-HEAD", 7),
("a/snap/world-i386-HEAD", 7))