diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-06-08 12:49:07 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-06-08 12:49:07 -0700 |
| commit | 4da9d4e53a7fc0e0badf0c487cad531ba7662046 (patch) | |
| tree | 80d6c0589eca7e7c7c3802665bcb2ac1f708e37d /make-linux.mk | |
| parent | 0ca764968ae0c09510d055390a3cec252caecfae (diff) | |
| download | infinitytier-4da9d4e53a7fc0e0badf0c487cad531ba7662046.tar.gz infinitytier-4da9d4e53a7fc0e0badf0c487cad531ba7662046.zip | |
Fix build against Debian version of libhttp-parser -- its old but it will work.
Diffstat (limited to 'make-linux.mk')
| -rw-r--r-- | make-linux.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/make-linux.mk b/make-linux.mk index 994c6c03..8355909f 100644 --- a/make-linux.mk +++ b/make-linux.mk @@ -46,6 +46,7 @@ ifeq ($(wildcard /usr/include/http_parser.h),) OBJS+=ext/http-parser/http_parser.o else LDLIBS+=-lhttp_parser + DEFS+=-DZT_USE_SYSTEM_HTTP_PARSER endif ifeq ($(wildcard /usr/include/json-parser/json.h),) OBJS+=ext/json-parser/json.o @@ -177,6 +178,9 @@ install: FORCE rm -f $(DESTDIR)/usr/share/man/man1/zerotier-cli.1.gz cat doc/zerotier-cli.1 | gzip -9 >$(DESTDIR)/usr/share/man/man1/zerotier-cli.1.gz cat doc/zerotier-idtool.1 | gzip -9 >$(DESTDIR)/usr/share/man/man1/zerotier-idtool.1.gz + mkdir -p $(DESTDIR)/usr/lib/systemd/system + rm -f $(DESTDIR)/usr/lib/systemd/system/zerotier-one.service + cp -f ext/installfiles/linux/systemd/zerotier-one.service $(DESTDIR)/usr/lib/systemd/system uninstall: FORCE rm -f $(DESTDIR)/var/lib/zerotier-one/zerotier-one @@ -192,6 +196,7 @@ uninstall: FORCE rm -f $(DESTDIR)/usr/share/man/man8/zerotier-one.8.gz rm -f $(DESTDIR)/usr/share/man/man1/zerotier-idtool.1.gz rm -f $(DESTDIR)/usr/share/man/man1/zerotier-cli.1.gz + rm -f $(DESTDIR)/usr/lib/systemd/system/zerotier-one.service debian: distclean debuild -I -i -us -uc |
