feeling: ngircd stuff

This commit is contained in:
dtb 2024-01-22 23:57:39 -07:00
parent f0ed5dd17b
commit eed4880edd
6 changed files with 109 additions and 0 deletions

29
feeling/Makefile Normal file
View File

@ -0,0 +1,29 @@
include alpine.mk
MKDIR = mkdir -p
PREFIX = /usr/local/murderu.us
/etc/motd: $(PREFIX)/src/feeling/motd.unix
ln -sf $(PREFIX)/src/feeling/motd.unix $@
/etc/ngircd: $(PREFIX)/bin/ngircd
$(MKDIR) $@.tmp/ephemeral
ln -sf $(PREFIX)/src/feeling/ngircd.conf $@.tmp/
ln -sf $(PREFIX)/src/feeling/motd.irc $@.tmp/motd
cp $(PREFIX)/src/feeling/secrets.conf $@.tmp/ephemeral/
mv $@.tmp $@
@ printf '%s\n' "Configure /etc/ngircd/ngircd.conf."
@ printf '%s\n' "Configure /etc/ngircd/ephemeral/secrets.conf."
/etc/prosody: $(PREFIX)/bin/prosody
/srv/http/www: $(PREFIX)/bin/darkhttpd $(PREFIX)/src
$(MKDIR) /srv/http/
ln -s $(PREFIX)/src/www $@
$(PREFIX):
$(MKDIR) $(PREFIX)
$(PREFIX)/src: $(PREFIX) $(PREFIX)/bin/git
git clone https://git.sr.ht/~trinity/murderu.us $@.tmp
mv $@.tmp $@

25
feeling/alpine.mk Normal file
View File

@ -0,0 +1,25 @@
/bin/darkhttpd:
apk add darkhttpd
/usr/bin/git:
apk add git
/usr/bin/ngircd:
apk add ngircd
rc-update add ngircd
/usr/bin/prosody:
apk add prosody
rc-update add prosody
$(PREFIX)/bin:
$(MKDIR) $(PREFIX)/bin
$(PREFIX)/bin/darkhttpd: $(PREFIX)/bin /usr/bin/darkhttpd
ln -s /usr/bin/darkhttpd $(PREFIX)/bin/darkhttpd
$(PREFIX)/bin/git: $(PREFIX)/bin /usr/bin/git
ln -s /usr/bin/git $(PREFIX)/bin/git
$(PREFIX)/bin/ngircd: $(PREFIX)/bin /usr/bin/ngircd
ln -s /usr/bin/ngircd $(PREFIX)/bin/ngircd

1
feeling/motd.irc Normal file
View File

@ -0,0 +1 @@
i heard dead men tell no tales /// i'm feeling.murderu.us

48
feeling/ngircd.conf Normal file
View File

@ -0,0 +1,48 @@
[Global]
AdminEMail = # CHANGE ME
AdminInfo1 = # CHANGE ME
AdminInfo2 = # CHANGE ME
Info = # CHANGE ME
MotdFile = /etc/ngircd/motd
Name = # CHANGE ME
Network = # CHANGE ME
PidFile = /var/run/ngircd.pid
Ports = 6667, 6668, 6669
ServerUID = # CHANGE ME
ServerGID = # CHANGE ME
[Limits]
MaxJoins = 20
MaxNickLength = 9
PingTimeout = 120
PongTimeout = 120
[Options]
AllowRemoteOper = yes
CloakHostModeX = %x.cloak
DefaultUserModes = wx
DNS = no
Ident = no
IncludeDir = /etc/ngircd/ephemeral
MorePrivacy = yes
OperCanUseMode = yes
OperChanPAutoOp = yes
PAM = no
[SSL]
CertFile = # CHANGE ME
DHFile = /etc/ssl/dhparam
KeyFile = # CHANGE ME
Ports = 6697, 9999
[Channel]
Name = #subgeneral
Topic = under the radar
[Channel]
Name = #media
Topic = memetics research group
[Channel]
Name = #lontokilen
Topic = subgeneral

6
feeling/secrets.conf Normal file
View File

@ -0,0 +1,6 @@
[Options]
CloakHostSalt = # CHANGE ME
[Operator]
Name = # CHANGE ME
Password = # CHANGE ME