summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-03-02 01:28:07 -0500
committerJesse Luehrs <doy@tozt.net>2018-10-19 02:07:38 -0400
commitdb15d1eb06ff50c9fdbce98012f64b435566c18c (patch)
treef587afc2b22da94a90cc8f5a6b29a8c64b4775c3
parent78a6a52b61b53eeaa6e13074897917b6329b468c (diff)
downloadconf-db15d1eb06ff50c9fdbce98012f64b435566c18c.tar.gz
conf-db15d1eb06ff50c9fdbce98012f64b435566c18c.zip
generate passwords instead of storing them
-rw-r--r--.gitignore2
-rw-r--r--Makefile11
-rw-r--r--mpdscribble/mpdscribble.conf.tmpl (renamed from mpdscribble/mpdscribble.conf)0
3 files changed, 12 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 5dbbbba..12ca5c1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,6 +6,7 @@
/interhack/servers
/interhack/ttyrec
/less
+/mpdscribble/mpdscribble.conf
/mutt/aliases
/mutt/cache
/mutt/extra
@@ -26,3 +27,4 @@ supervise/
/vim/spell/*.spl
/weechat/weechat_fifo_*
/weechat/weechat.log
+/wunderground
diff --git a/Makefile b/Makefile
index 4edafa4..f78dd7c 100644
--- a/Makefile
+++ b/Makefile
@@ -29,6 +29,7 @@ INSTALL = agignore \
tigrc \
tmux.conf \
vimrc \
+ wunderground \
xbindkeysrc \
Xdefaults \
xinitrc \
@@ -78,7 +79,9 @@ BUILD = $(patsubst services/available/%,services/enabled/%,$(wildcard servic
$(addsuffix .dat,$(filter-out %.dat,$(wildcard fortune/*))) \
$(addsuffix tags,$(wildcard vim/pack/*/start/*/doc/)) \
vim/spell/en.utf-8.add.spl \
- less
+ less \
+ wunderground \
+ mpdscribble/mpdscribble.conf
ECHO = @echo
LN = @ln -sf
@@ -133,6 +136,12 @@ fortune/%.dat : fortune/%
less : lesskey
lesskey -o less lesskey
+wunderground :
+ pass show websites/wunderground.com/wunderground@tozt.net > $@
+
+mpdscribble/mpdscribble.conf : mpdscribble/mpdscribble.conf.tmpl
+ perl -E'while (<STDIN>) { if (/^password =/) { say "password = $$ARGV[0]" } else { print } }' "$$(pass show websites/last.fm/doyster)" < $< > $@
+
$(INTO)/Maildir/.notmuch: notmuch
mkdir -p $(INTO)/Maildir
@[ ! -e $@ ] || [ -h $@ ] || mv -f $@ $@.bak
diff --git a/mpdscribble/mpdscribble.conf b/mpdscribble/mpdscribble.conf.tmpl
index c216dfc..c216dfc 100644
--- a/mpdscribble/mpdscribble.conf
+++ b/mpdscribble/mpdscribble.conf.tmpl