diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..8789095 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,10 @@ +kind: pipeline +name: default + +steps: +- name: Build + image: gcc + commands: + - apt update && apt install -y libcjson-dev libpcre3-dev libfcgi-dev + - cp config.def.h config.h + - make \ No newline at end of file diff --git a/Makefile b/Makefile index 9a32a50..33fe5d1 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ DIST = dist/ PREFIX ?= /usr/local TARGET = treebird -MASTODONT_URL = https://fossil.nekobit.net/mastodont-c +MASTODONT_URL = https://git.froth.zone/mirrors/mastodont-c all: $(MASTODONT_DIR) dep_build $(TARGET) apache: all apache_start @@ -40,7 +40,7 @@ $(PAGES_DIR)/%.ctmpl: $(PAGES_DIR)/%.tmpl ./template $< $(notdir $*) 2> $(PAGES_DIR)/$(notdir $*).c 1> $@ $(MASTODONT_DIR): - cd ..; fossil clone $(MASTODONT_URL) || true + cd ..; git clone $(MASTODONT_URL) || true cd treebird; ln -s ../mastodont-c . install: $(TARGET)