Switch from dns-backplane to backplane-dns

This commit is contained in:
Niten 2020-11-11 09:39:00 -08:00
parent a11a2fec3b
commit 9ba9ed308f
3 changed files with 11 additions and 11 deletions

View File

@ -1,10 +1,10 @@
;;;; dns-backplane.asd ;;;; dns-backplane.asd
(asdf:defsystem #:dns-backplane (asdf:defsystem #:backplane-dns
:description "Describe dns-backplane here" :description "Server to listen on Fudo backplane for DNS updates"
:author "Your Name <your.name@example.com>" :author "Niten <niten@fudo.org>"
:license "Specify license here" :license "Specify license here"
:version "0.0.1" :version "0.1.0"
:serial t :serial t
:depends-on (:alexandria :depends-on (:alexandria
:arrows :arrows
@ -15,4 +15,4 @@
:postmodern :postmodern
:trivia) :trivia)
:components ((:file "package") :components ((:file "package")
(:file "dns-backplane"))) (:file "backplane-dns")))

View File

@ -1,6 +1,6 @@
;;;; dns-backplane.lisp ;;;; backplane-dns.lisp
(in-package #:dns-backplane) (in-package #:backplane-dns)
(defun xmpp-connect (hostname username password) (defun xmpp-connect (hostname username password)
(let ((conn (xmpp:connect-tls :hostname hostname))) (let ((conn (xmpp:connect-tls :hostname hostname)))
@ -181,7 +181,7 @@
:mechanism :sasl-plain) :mechanism :sasl-plain)
(funcall f backplane))) (funcall f backplane)))
(defun dns-backplane-listen (xmpp-host (defun backplane-dns-listen (xmpp-host
xmpp-username xmpp-username
xmpp-password xmpp-password
db-host db-host
@ -197,8 +197,8 @@
(let ((input (open filename :if-does-not-exist nil))) (let ((input (open filename :if-does-not-exist nil)))
(read-line input))) (read-line input)))
(defun start-dns-backplane-listener-with-env () (defun start-backplane-dns-listener-with-env ()
(dns-backplane-listen (backplane-dns-listen
(getenv-or-fail "FUDO_DNS_BACKPLANE_XMPP_HOSTNAME" "backplane.fudo.org") (getenv-or-fail "FUDO_DNS_BACKPLANE_XMPP_HOSTNAME" "backplane.fudo.org")
(getenv-or-fail "FUDO_DNS_BACKPLANE_XMPP_USERNAME" "dns") (getenv-or-fail "FUDO_DNS_BACKPLANE_XMPP_USERNAME" "dns")
(read-file-line (getenv-or-fail "FUDO_DNS_BACKPLANE_XMPP_PASSWORD_FILE")) (read-file-line (getenv-or-fail "FUDO_DNS_BACKPLANE_XMPP_PASSWORD_FILE"))

View File

@ -1,6 +1,6 @@
;;;; package.lisp ;;;; package.lisp
(defpackage #:dns-backplane (defpackage #:backplane-dns
(:use #:cl) (:use #:cl)
(:import-from #:arrows (:import-from #:arrows
#:-> #:->