dev.fron.io rc / 6b5fede
services: biboumi: fix biboumi Tony Olagbaiye 5 months ago
2 changed file(s) with 13 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
6969 (let* ((out (assoc-ref outputs "out")))
7070 (substitute* "CMakeLists.txt"
7171 (("/etc/biboumi")
72 (string-append out "/etc/biboumi")))))))
72 (string-append out "/etc/biboumi"))))))
73 (add-after 'install 'fix-starlink
74 (lambda* (#:key outputs #:allow-other-keys)
75 (let* ((out (assoc-ref outputs "out")))
76 (with-current-output-file
77 (string-append
78 out
79 "/etc/biboumi/irc.starlink-irc.org.policy.txt")
80 (lambda _
81 (display "verify_certificate = false\n")))))))
7382 #:tests? #f))
7483 (native-inputs `(("python-sphinx" ,python-sphinx)
7584 ("python" ,python-wrapper)))
3737 (requirement '(networking))
3838 (start #~(lambda _
3939 (mkdir-p "/var/lib/biboumi")
40 (with-output-to-file "/var/log/biboumi.log"
41 (lambda _ (newline)))
4042 (let ((pwd (getpwnam "biboumi")))
43 (chown "/var/log/biboumi.log" (passwd:uid pwd) (passwd:gid pwd))
4144 (chown "/var/lib/biboumi" (passwd:uid pwd) (passwd:gid pwd)))
4245 (fork+exec-command
4346 (list #$(file-append biboumi "/bin/biboumi")