move config files to usr/share/talircd/default/x

This commit is contained in:
tali 2024-02-02 17:48:05 -05:00
parent 00eae82eb3
commit 454d27780c
4 changed files with 8 additions and 8 deletions

3
conf.txt Normal file
View File

@ -0,0 +1,3 @@
IRC_MOTD=/etc/talircd.motd
IRC_HOSTNAME=irc.tali.software
IRC_PORT=6667

View File

@ -6,17 +6,16 @@ eval $(opam env)
root=dist/root
rm -rf $root
mkdir -p $root/DEBIAN $root/etc $root/usr/lib/systemd/system
mkdir -p $root/usr/lib/systemd/system $root/DEBIAN
# build ocaml program
opam pin add ./talircd --kind=path --no-action --yes
opam install talircd --destdir=$root/usr --yes
# install helper files
# install service file
install -m 644 talircd/deploy/talircd.service $root/usr/lib/systemd/system
install -m 644 talircd/deploy/talircd.conf $root/etc
# generate package control file

View File

@ -1,4 +0,0 @@
IRC_MOTD=/usr/share/talircd/motd
IRC_HOSTNAME=irc.tali.software
IRC_PORT=6667
LOG_LEVEL=debug

4
dune
View File

@ -1,4 +1,6 @@
(install
(package talircd)
(files (motd.txt as motd))
(files
(motd.txt as default/motd)
(conf.txt as default/conf))
(section share))