~qpfiffer/wheypi

3362d543b555d271dc237b34337f2e5a02fa3db1 — Quinlan Pfiffer a month ago d5cc439
v0.1

* Init script
* Prefix corrections
* Latest 38-Moths.
2 files changed, 10 insertions(+), 1 deletions(-)

M Makefile
M wheypi.init
M Makefile => Makefile +9 -0
@@ 4,6 4,10 @@ LIBS=-lrt -l38moths -lm `pkg-config --libs libpq`
NAME=wheypi
COMMON_OBJ=db.o parson.o api_views.o views.o

DESTDIR?=
PREFIX?=/usr/local
INSTALL_BIN=$(DESTDIR)$(PREFIX)/sbin


all: $(NAME)



@@ 16,3 20,8 @@ clean:

$(NAME): $(COMMON_OBJ) main.o
	$(CC) $(CLAGS) $(LIB_INCLUDES) $(INCLUDES) -o $(NAME) $^ $(LIBS)

install: all
	@mkdir -p $(INSTALL_BIN)
	@install $(NAME) $(INSTALL_BIN)
	@echo "wheypi installed to $(DESTDIR)$(PREFIX) :^)."

M wheypi.init => wheypi.init +1 -1
@@ 1,5 1,5 @@
#!/sbin/openrc-run
command="/usr/sbin/wheypi"
command="/usr/local/sbin/wheypi"
command_args="-s /srv/wheypi"
supervisor="supervise-daemon"