aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2010-06-23 07:48:07 +0800
committerlinimon <linimon@FreeBSD.org>2010-06-23 07:48:07 +0800
commitb4d14e382f4584ed5017ef89aa35d6cb4a073cc6 (patch)
treef6ba43cd9fee9d0e635e5666ed11f21d00324a2f /Tools
parenta691399f728f973bc0051c715a8235abec9e2913 (diff)
downloadfreebsd-ports-gnome-b4d14e382f4584ed5017ef89aa35d6cb4a073cc6.tar.gz
freebsd-ports-gnome-b4d14e382f4584ed5017ef89aa35d6cb4a073cc6.tar.zst
freebsd-ports-gnome-b4d14e382f4584ed5017ef89aa35d6cb4a073cc6.zip
A new file to document some generalization of scripts on a package
building server. For security reasons, the scripts themselves will not be checked in to this repository. Please do not commit to this file without the approval of portmgr. Feature safe: yes
Diffstat (limited to 'Tools')
-rw-r--r--Tools/portbuild/conf/README.dotunnel32
1 files changed, 32 insertions, 0 deletions
diff --git a/Tools/portbuild/conf/README.dotunnel b/Tools/portbuild/conf/README.dotunnel
new file mode 100644
index 000000000000..b3a4fd5a12ab
--- /dev/null
+++ b/Tools/portbuild/conf/README.dotunnel
@@ -0,0 +1,32 @@
+Various package build nodes require us to set up TCP tunnels to talk
+to them. (Some systems don't pass certain ports; some systems have
+firewalls; some systems have multiple nodes on one IP address.)
+
+These have always been hardcoded in crontab lines of the form "while true;
+do <hardcoded-tunnel-stuff>; done". Other than the magic hardcoding,
+there's a problem with this. When the tunnel command exits, such as if
+the host suddenly becoming unreachable, it doesn't send mail -- instead
+it just accumulates a huge file in /var/spool/clientmqueue which never
+gets sent. To add insult to injury, /var is on the root partition on
+pointyhat.
+
+To cure these problems, we now have
+
+ /var/portbuild/conf/<arch>/dotunnel.XXX
+
+where XXX corresponds to one line in the old crontab. Each script sets
+up one tunnel, sends mail to the user(s) in
+
+ /var/portbuild/<arch>/portbuild.conf
+
+once the command exits, and then sleeps.
+
+Why not put it in /var/portbuild/<arch> you ask? That directory is
+propogated to all nodes for that arch. This would be a security leak.
+The intention is that none of the dotunnel files will be checked into
+CVS.
+
+Final note: each script figures out which arch it is for by fiddling
+with its $0, so invoke it with its full pathname.
+
+mcl