* To configure native mode use: configure --with-restconf=native, changed from: configure --with-restconf=evhtp
This commit is contained in:
parent
d874a696f7
commit
d8be601606
22 changed files with 76 additions and 70 deletions
|
|
@ -78,7 +78,7 @@ endif
|
|||
# even though it may exist in $(libdir). But the new version may not have been installed yet.
|
||||
LIBDEPS = $(top_srcdir)/lib/src/$(CLIXON_LIB)
|
||||
|
||||
LIBS = -L$(top_srcdir)/lib/src $(top_srcdir)/lib/src/$(CLIXON_LIB) @LIBS@ #-lpthread
|
||||
LIBS = -L$(top_srcdir)/lib/src $(top_srcdir)/lib/src/$(CLIXON_LIB) @LIBS@
|
||||
|
||||
|
||||
INCLUDES = -I. -I$(top_srcdir)/lib -I$(top_srcdir)/include -I$(top_srcdir) @INCLUDES@
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ HOST_VENDOR = @host_vendor@
|
|||
# XXX why is not wwwdir under prefix?
|
||||
wwwdir = @wwwdir@
|
||||
wwwuser = @wwwuser@
|
||||
# one of fcgi or evhtp:
|
||||
# one of fcgi or native:
|
||||
with_restconf = @with_restconf@
|
||||
|
||||
SH_SUFFIX = @SH_SUFFIX@
|
||||
|
|
@ -89,10 +89,10 @@ INCLUDES = -I. -I$(top_srcdir)/lib/src -I$(top_srcdir)/lib -I$(top_srcdir)/inclu
|
|||
# Application
|
||||
APPL = clixon_restconf
|
||||
|
||||
# Common source - not accessible from plugin - independent of restconf package (fcgi|evhtp)
|
||||
# Common source - not accessible from plugin - independent of restconf package (fcgi|native)
|
||||
APPSRC =
|
||||
APPSRC += restconf_api.c # maybe empty
|
||||
APPSRC += restconf_api_$(with_restconf).c # cant be .so since libevhtp is a.
|
||||
APPSRC += restconf_api_$(with_restconf).c
|
||||
APPSRC += restconf_err.c
|
||||
APPSRC += restconf_methods.c
|
||||
APPSRC += restconf_methods_post.c
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# Clixon Restconf
|
||||
|
||||
* [Evhtp](#evhtp)
|
||||
* [Native](#native)
|
||||
* [Nginx](#nginx)
|
||||
* [Streams](#streams)
|
||||
* [Nchan Streams](#nchan)
|
||||
|
|
@ -8,9 +8,9 @@
|
|||
|
||||
There are two installation instructions: for libevhtp and nginx.
|
||||
|
||||
## Evhtp
|
||||
## Native
|
||||
|
||||
Download, build and install libevhtp from source. Prereqs: libevent and cmake.
|
||||
Download, build and install libevhtp from source. Prereqs: libevent and ssl
|
||||
```
|
||||
sudo git clone https://github.com/clicon/clixon-libevhtp.git
|
||||
cd clixon-libevhtp
|
||||
|
|
@ -19,9 +19,9 @@ Download, build and install libevhtp from source. Prereqs: libevent and cmake.
|
|||
sudo make install
|
||||
```
|
||||
|
||||
Configure clixon with evhtp:
|
||||
Configure clixon with native restconf:
|
||||
```
|
||||
./configure --with-restconf=evhtp
|
||||
./configure --with-restconf=native
|
||||
```
|
||||
|
||||
Ensure www-data is member of the CLICON_SOCK_GROUP (default clicon). If not, add it:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue