diff options
author | Peter Palfrader <peter@palfrader.org> | 2007-11-24 11:49:29 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2007-11-24 11:49:29 +0000 |
commit | 8dc59ae2e4ca93acf3a232f1a3f9ca8c9c52b272 (patch) | |
tree | ea3f18f20a172969586a2e9cba107586a26b515e /irssi-MASTER/Makefile | |
parent | 1aad40847c44a6f7c123a345d41cd3f7387bf981 (diff) |
irssi-master
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@308 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'irssi-MASTER/Makefile')
-rw-r--r-- | irssi-MASTER/Makefile | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/irssi-MASTER/Makefile b/irssi-MASTER/Makefile new file mode 100644 index 0000000..ffbbd1c --- /dev/null +++ b/irssi-MASTER/Makefile @@ -0,0 +1,104 @@ +MASTERNICK = weasel +CERT="$(HOME)/.irssi/oftc-weasel.pem" +PKEY="$(HOME)/.irssi/oftc-weasel.key" +CAFILE="$(HOME)/.irssi/oftc.crt" +HOST="asteria.debian.or.at" + +WAIT=1000 + +config: config.tmp + mv -f "$<" "$@" + chmod -w "$@" + +.INTERMEDIATE: config.tmp +config.tmp: config.in servers.tmp chatnets.tmp + cat $? > "$@" + +.INTERMEDIATE: servers.tmp +servers.tmp: ~/.oftc-hosts ~/.oftc-port ~/.oftc-testnet-port Makefile + echo "servers = (" > "$@" + while read name ip; do \ + echo "# $$name" >> "$@" && \ + printf '{ \ + address = "%s"; \ + chatnet = "OFTC-%s"; \ + port = "%d"; \ + use_ssl = "yes"; \ + ssl_cert = $(CERT); \ + ssl_pkey = $(PKEY); \ + ssl_verify = "yes"; \ + ssl_cafile = $(CAFILE); \ + own_host = $(HOST); \ + autoconnect = "no"; \ + },\n' \ + \ + $$ip \ + $$name \ + "`cat ~/.oftc-port`" \ + \ + >> "$@" && \ + \ + \ + printf '{ \ + address = "%s"; \ + chatnet = "TESTNET-%s"; \ + port = "%d"; \ + use_ssl = "yes"; \ + ssl_cert = $(CERT); \ + ssl_pkey = $(PKEY); \ + ssl_verify = "yes"; \ + ssl_cafile = $(CAFILE); \ + own_host = $(HOST); \ + autoconnect = "no"; \ + },\n' \ + \ + $$ip \ + $$name \ + "`cat ~/.oftc-port`" \ + \ + >> "$@" ; \ + \ + done < ~/.oftc-hosts && echo built. + echo ")" >> "$@" + +.INTERMEDIATE: chatnets.tmp +chatnets.tmp: ~/.oftc-hosts ~/.oftc-port ~/.oftc-testnet-port Makefile + echo "chatnets = {" > "$@" + while read name ip; do \ + echo "# $$name" >> "$@" && \ + printf '"OFTC-%s" = { \ + type = "IRC"; \ + autosendcmd = "wait -OFTC-%s $(WAIT)"; \ + cmdmax = "512"; \ + cmdspeed = "10"; \ + max_kicks = "1"; \ + max_msgs = "100"; \ + max_modes = "4"; \ + nick = "$(MASTERNICK)-%s"; \ + };\n' \ + \ + $$name \ + $$name \ + $$name \ + \ + >> "$@" && \ + \ + printf '"TESTNET-%s" = { \ + type = "IRC"; \ + autosendcmd = "wait -TESTNET-%s $(WAIT)"; \ + cmdmax = "512"; \ + cmdspeed = "10"; \ + max_kicks = "1"; \ + max_msgs = "100"; \ + max_modes = "4"; \ + nick = "$(MASTERNICK)-%s"; \ + };\n' \ + \ + $$name \ + $$name \ + $$name \ + \ + >> "$@" ; \ + \ + done < ~/.oftc-hosts && echo built. + echo "}" >> "$@" |