diff --git a/Makefile b/Makefile index 7cca0e0..92483f5 100644 --- a/Makefile +++ b/Makefile @@ -11,24 +11,24 @@ config_path := $(DESTDIR)/$(SYSCONFDIR)/soju/config goflags := $(GOFLAGS) \ -ldflags="-X 'git.sr.ht/~emersion/soju/config.DefaultPath=$(config_path)'" -all: soju sojuctl doc/soju.1 +all: soju sojudb doc/soju.1 soju: $(GO) build $(goflags) ./cmd/soju -sojuctl: - $(GO) build $(goflags) ./cmd/sojuctl +sojudb: + $(GO) build $(goflags) ./cmd/sojudb doc/soju.1: doc/soju.1.scd $(SCDOC) doc/soju.1 clean: - $(RM) -f soju sojuctl doc/soju.1 + $(RM) -f soju sojudb doc/soju.1 install: mkdir -p $(DESTDIR)$(PREFIX)/$(BINDIR) mkdir -p $(DESTDIR)$(PREFIX)/$(MANDIR)/man1 mkdir -p $(DESTDIR)/$(SYSCONFDIR)/soju mkdir -p $(DESTDIR)/var/lib/soju - cp -f soju sojuctl $(DESTDIR)$(PREFIX)/$(BINDIR) + cp -f soju sojudb $(DESTDIR)$(PREFIX)/$(BINDIR) cp -f doc/soju.1 $(DESTDIR)$(PREFIX)/$(MANDIR)/man1 [ -f $(config_path) ] || cp -f config.in $(config_path) -.PHONY: soju sojuctl clean install +.PHONY: soju sojudb clean install diff --git a/cmd/sojuctl/main.go b/cmd/sojudb/main.go similarity index 97% rename from cmd/sojuctl/main.go rename to cmd/sojudb/main.go index 09308e3..4a5c8d8 100644 --- a/cmd/sojuctl/main.go +++ b/cmd/sojudb/main.go @@ -16,7 +16,7 @@ import ( "git.sr.ht/~emersion/soju/database" ) -const usage = `usage: sojuctl [-config path] [options...] +const usage = `usage: sojudb [-config path] [options...] create-user [-admin] Create a new user change-password Change password for a user diff --git a/doc/getting-started.md b/doc/getting-started.md index dd3db21..c05e1bc 100644 --- a/doc/getting-started.md +++ b/doc/getting-started.md @@ -7,7 +7,7 @@ Alternatively, you can compile it from source (see the [README]). To create an admin user and start soju, run these commands: - sojuctl create-user -admin + sojudb create-user -admin soju -listen irc+insecure://127.0.0.1:6667 soju will listen for unencrypted IRC connections on the default port. This is