Commit Graph

20 Commits

Author SHA1 Message Date
Simon Ser d93251e714 build: improve readability of Go -ldflags 2023-10-21 18:22:56 +02:00
Simon Ser 5475a41917 build: cleanup all man pages 2023-10-21 18:21:06 +02:00
Simon Ser 2ce370d627 makefile: add variable with command list 2023-03-15 18:36:04 +01:00
Simon Ser c183d938ff doc: add man page for sojuctl 2023-03-15 18:34:50 +01:00
Simon Ser 4c8e955946 Move DefaultUnixAdminPath to config package
We can drop the soju package import. This shrinks down sojuctl's
size significantly (18M to 3M).
2023-03-15 17:47:47 +01:00
palm93 478bd2077b build: fix binaries not being built
Without -o, when multiple packages are built, go build discards the
resulting binaries.
2023-02-11 23:28:29 +01:00
Simon Ser 67ccc19fdd build: invoke `go build` once only 2023-02-06 15:26:10 +01:00
Simon Ser 09e1393453 build: don't record DESTDIR in config.DefaultPath 2023-02-06 15:23:54 +01:00
Simon Ser 0cec35a2f8 build: add RUNDIR variable 2023-02-06 15:23:14 +01:00
Simon Ser c0b03b943f build: add sharedstatedir variable 2023-02-06 15:19:08 +01:00
delthas f57492af56 Add cmd/sojuctl
This new command enables communicating with the unix administrative
endpoint (unix+admin) that can be enabled on soju.

The syntax is just that of BouncerServ.

Examples:
    sojuctl -config soju.config help
    sojuctl -config soju.config user status
2023-02-06 15:15:09 +01:00
delthas ab235f0099 sojuctl: rename to sojudb
sojuctl will be used to control the soju deamon directly.

sojudb is a better name because it operates on the database file only.
2023-02-06 15:15:09 +01:00
Simon Ser c031e08d71 Add a default path for the config file 2023-02-06 13:16:55 +01:00
Simon Ser 66a83e6345 makefile: switch to BSD/GNU make
Let's stop using POSIX make, it's too much of a pain.
2022-02-08 16:10:19 +01:00
Simon Ser 81782fefe8 build: don't clobber config file
Use `test -f` instead of `cp -n`, because the former is POSIX.

References: https://github.com/emersion/soju/pull/32
2021-10-08 09:11:31 +02:00
Hubert Hirtz 647fb9ed9e Don't build soju when calling "make install"
Otherwise soju would be rebuilt as the user who runs "make install"
(typically root).
2021-05-25 16:31:06 +02:00
Alexey Yerin bc74478f80 Makefile: mark soju and sojuctl as .PHONY
Otherwise running `make` didn't do anything on a non-clean state. Go
deals with changed files automatically, and there's no real need to
explicitly specify them.
2021-04-27 19:06:16 +02:00
Simon Ser fd365f9480
Add default configuration file 2021-04-21 16:39:51 +02:00
Simon Ser 4ba2a05ebf
Move man page to doc/ 2020-03-27 19:23:41 +01:00
Simon Ser 549fbf62b1
Add basic Makefile 2020-03-19 15:11:43 +01:00