[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r12232: Add sample makefile and crontab (tor/trunk/contrib/auto-naming)



Author: weasel
Date: 2007-10-27 16:24:33 -0400 (Sat, 27 Oct 2007)
New Revision: 12232

Added:
   tor/trunk/contrib/auto-naming/Sample-Makefile
   tor/trunk/contrib/auto-naming/Sample-crontab
Log:
Add sample makefile and crontab

Added: tor/trunk/contrib/auto-naming/Sample-Makefile
===================================================================
--- tor/trunk/contrib/auto-naming/Sample-Makefile	                        (rev 0)
+++ tor/trunk/contrib/auto-naming/Sample-Makefile	2007-10-27 20:24:33 UTC (rev 12232)
@@ -0,0 +1,20 @@
+
+all: ../approved-routers
+
+update:
+	wget -q -O - http://tor.noreply.org/tor/status-vote/current/consensus | \
+		./process-consensus
+
+.PHONY: approved-routers-auto
+approved-routers-auto:
+	./build-approved-routers > "$@"
+
+.INTERMEDIATE: approved-routers
+approved-routers: approved-routers-auto /etc/tor/approved-routers
+	cat $^ > "$@"
+
+../approved-routers: approved-routers
+	if ! diff -q "$<" "$@"; then \
+		mv "$<" "$@" &&\
+		(! [ -e /var/run/tor/tor.pid ] || kill -HUP `cat /var/run/tor/tor.pid`) ; \
+		fi

Added: tor/trunk/contrib/auto-naming/Sample-crontab
===================================================================
--- tor/trunk/contrib/auto-naming/Sample-crontab	                        (rev 0)
+++ tor/trunk/contrib/auto-naming/Sample-crontab	2007-10-27 20:24:33 UTC (rev 12232)
@@ -0,0 +1,3 @@
+MAILTO=admin
+# cronjob for tor naming
+23 * * * * make -s -C auto-naming update && make -s -C auto-naming