summaryrefslogtreecommitdiff
path: root/accel-pptpd/triton
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2010-10-06 16:43:14 +0400
committerKozlov Dmitry <dima@server>2010-10-06 16:43:14 +0400
commitb6a1268714671904e96a49b88680dc3ff07aaa1c (patch)
tree60424372b94312710b9f583b1bcc641de4020316 /accel-pptpd/triton
parent5cf93f33f2350ed3b92f73ead1d2829a6883810a (diff)
downloadaccel-ppp-b6a1268714671904e96a49b88680dc3ff07aaa1c.tar.gz
accel-ppp-b6a1268714671904e96a49b88680dc3ff07aaa1c.zip
project cleanup and prepare to release
Diffstat (limited to 'accel-pptpd/triton')
-rw-r--r--accel-pptpd/triton/CMakeLists.txt9
-rw-r--r--accel-pptpd/triton/loader.c2
-rw-r--r--accel-pptpd/triton/log.c2
-rw-r--r--accel-pptpd/triton/mempool.c1
4 files changed, 10 insertions, 4 deletions
diff --git a/accel-pptpd/triton/CMakeLists.txt b/accel-pptpd/triton/CMakeLists.txt
index 95ab4160..3e5e068a 100644
--- a/accel-pptpd/triton/CMakeLists.txt
+++ b/accel-pptpd/triton/CMakeLists.txt
@@ -1,4 +1,3 @@
-SET(target triton)
SET(sources_c
md.c
timer.c
@@ -9,7 +8,13 @@ SET(sources_c
mempool.c
event.c
)
+
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
-ADD_LIBRARY(${target} SHARED ${sources_c})
+ADD_DEFINITIONS(-DMODULE_PATH="${CMAKE_INSTALL_PREFIX}/usr/lib/accel-pptp")
+
+ADD_LIBRARY(triton SHARED ${sources_c})
+INSTALL(TARGETS triton
+ LIBRARY DESTINATION usr/lib/accel-pptp
+)
diff --git a/accel-pptpd/triton/loader.c b/accel-pptpd/triton/loader.c
index 0fef03da..b6c1914e 100644
--- a/accel-pptpd/triton/loader.c
+++ b/accel-pptpd/triton/loader.c
@@ -15,7 +15,7 @@ int load_modules(const char *name)
struct conf_sect_t *sect;
struct conf_option_t *opt;
char *fname;
- char *path=".";
+ char *path = MODULE_PATH;
sect = conf_get_section(name);
if (!sect) {
diff --git a/accel-pptpd/triton/log.c b/accel-pptpd/triton/log.c
index 7bb55598..c7e6b7fe 100644
--- a/accel-pptpd/triton/log.c
+++ b/accel-pptpd/triton/log.c
@@ -46,6 +46,8 @@ static void do_log(FILE *f, const char *fmt, va_list ap)
fprintf(f, "[%s.%i]", date, (int)tv.tv_usec / 1000);
vfprintf(f, fmt,ap);
pthread_mutex_unlock(&lock);
+
+ fflush(f);
}
void triton_log_error(const char *fmt,...)
{
diff --git a/accel-pptpd/triton/mempool.c b/accel-pptpd/triton/mempool.c
index 16d6ab3c..c96c3ba2 100644
--- a/accel-pptpd/triton/mempool.c
+++ b/accel-pptpd/triton/mempool.c
@@ -177,4 +177,3 @@ static void __init init(void)
{
signal(35, sigclean);
}
-