Skip to content

Commit

Permalink
Update to 1.5-10
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanphilippelevy committed May 13, 2018
1 parent 7383851 commit c215f4f
Show file tree
Hide file tree
Showing 37 changed files with 269 additions and 129 deletions.
1 change: 0 additions & 1 deletion GPL

This file was deleted.

1 change: 1 addition & 0 deletions GPL
43 changes: 22 additions & 21 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ GED := ged
GEDQ := gedq
MODDUMMY := geddummy-1.5.so
MODMYSQL := gedmysql-1.5.so
MODHDB := gedhdb-1.5.so
MODTDB := gedtdb-1.5.so
MOD := $(MODDUMMY) $(MODHDB) $(MODMYSQL)
#MODHDB := gedhdb-1.5.so
#MODTDB := gedtdb-1.5.so
#MOD := $(MODDUMMY) $(MODHDB) $(MODMYSQL)
MOD := $(MODDUMMY) $(MODMYSQL)

# debug preprocessors
GEDDEBUG := -D__GED_DEBUG_SQL__ -D__GED_DEBUG_SEM__
Expand All @@ -46,7 +47,7 @@ LIBS := `pkg-config --libs libgenerics-1.3`
LIBS += `pkg-config --libs glib-2.0`
LIBS += -lssl -lpthread -lgcrypt -lz
MYSQLLIBS := /usr/lib64/mysql/libmysqlclient.so
BDBLIBS := /usr/lib64/libdb.so
#BDBLIBS := /usr/lib64/libdb.so

# paths
SRCCOR := ./src
Expand Down Expand Up @@ -90,7 +91,7 @@ dummy: $(MODDUMMY)

mysql: $(MODMYSQL)

bdb : $(MODHDB) $(MODTDB)
#bdb : $(MODHDB) $(MODTDB)

# generic rules
csocket.o : $(SRCCOR)/csocket.c
Expand Down Expand Up @@ -141,17 +142,17 @@ gedq.o : $(SRCCOR)/gedq.c
@echo "[CC] $<"
@$(CC) $(GEDQFLAGS) -c $<

cgedbackendbdb.o : $(SRCCOR)/cgedbackendbdb.c
@echo "[CC] $<"
@$(CC) $(GEDFLAGS) -o $@ -c $<

cgedbackendhdb.o : $(SRCCOR)/cgedbackendhdb.c
@echo "[CC] $<"
@$(CC) $(GEDFLAGS) -o $@ -c $<
#cgedbackendbdb.o : $(SRCCOR)/cgedbackendbdb.c
# @echo "[CC] $<"
# @$(CC) $(GEDFLAGS) -o $@ -c $<

cgedbackendtdb.o : $(SRCCOR)/cgedbackendtdb.c
@echo "[CC] $<"
@$(CC) $(GEDFLAGS) -o $@ -c $<
#cgedbackendhdb.o : $(SRCCOR)/cgedbackendhdb.c
# @echo "[CC] $<"
# @$(CC) $(GEDFLAGS) -o $@ -c $<
#
#cgedbackendtdb.o : $(SRCCOR)/cgedbackendtdb.c
# @echo "[CC] $<"
# @$(CC) $(GEDFLAGS) -o $@ -c $<

# main targets
$(GED) : $(LIBGED) gedmain.o
Expand Down Expand Up @@ -188,13 +189,13 @@ geddummy-1.5.so : $(SRCCOR)/cgedbackenddummy.c
@echo "[LK] $@"
@$(CC) -shared $(GEDFLAGS) $^ -o $@

gedhdb-1.5.so : cgedbackendbdb.o cgedbackendhdb.o
@echo "[LK] $@"
@$(CC) -shared $(GEDFLAGS) $^ -o $@ $(BDBLIBS)
#gedhdb-1.5.so : cgedbackendbdb.o cgedbackendhdb.o
# @echo "[LK] $@"
# @$(CC) -shared $(GEDFLAGS) $^ -o $@ $(BDBLIBS)

gedtdb-1.5.so : cgedbackendbdb.o cgedbackendtdb.o
@echo "[LK] $@"
@$(CC) -shared $(GEDFLAGS) $^ -o $@ $(BDBLIBS)
#gedtdb-1.5.so : cgedbackendbdb.o cgedbackendtdb.o
# @echo "[LK] $@"
# @$(CC) -shared $(GEDFLAGS) $^ -o $@ $(BDBLIBS)

clean :
@echo -n "cleaning... "
Expand Down
33 changes: 13 additions & 20 deletions etc.in/ged_rss.conf
Original file line number Diff line number Diff line change
@@ -1,29 +1,22 @@
# --- REMOTE_USER
<Directory /srv/eyesofnetwork>
SetEnvIf Cookie "user_name=([^;]+)" REMOTE_USER=admin
#SetEnvIf Cookie "user_name=([^;]+)" REMOTE_USER=$1
</Directory>
# --- END REMOTE_USER
Alias /ged_rss "/srv/eyesofnetwork/ged/var/www/"

Alias /ged_rss /srv/eyesofnetwork/ged/var/www/
<Directory /srv/eyesofnetwork/ged/var/www/>
<Directory "/srv/eyesofnetwork/ged/var/www/">
Options -Indexes
Require all granted

<Files ~ (rss.xml|index.html)>
</Files>
<Files ~ (index.php)>
AuthType Basic
AuthName "Restricted"
AuthFormAuthoritative On
AuthFormMySQLSocket /var/lib/mysql/mysql.sock
AuthFormMySQLUsername eonweb
AuthFormMySQLPassword root66
AuthFormMySQLDB eonweb
AuthFormMySQLTableSID sessions,users,groupright
AuthFormMySQLFieldUID sessions.user_id
AuthFormMySQLTableSIDCondition "`sessions`.`session_id`=$session_id AND `sessions`.`user_id`=$user_id AND `users`.`user_id`=$user_id AND `users`.`user_name`=$user_name AND `users`.`group_id`=$group_id AND `groupright`.`group_id`=$group_id"
AuthFormPageLogin /login.php
AuthFormSessionCookies On
AuthEonAuthoritative On
AuthEonMySQLSocket /var/lib/mysql/mysql.sock
AuthEonMySQLUsername eonweb
AuthEonMySQLPassword root66
AuthEonMySQLDB eonweb
AuthEonMySQLTableSID sessions,users,groupright
AuthEonMySQLFieldUID sessions.user_id
AuthEonMySQLTableSIDCondition "`sessions`.`session_id`=$session_id AND `sessions`.`user_id`=$user_id AND `users`.`user_id`=$user_id AND `users`.`user_name`=$user_name AND `users`.`group_id`=$group_id AND `groupright`.`group_id`=$group_id"
AuthEonPageLogin /login.php
AuthEonSessionCookies On
Require valid-user
</Files>
</Directory>
Empty file modified etc.in/gedd
100644 → 100755
Empty file.
11 changes: 11 additions & 0 deletions etc.in/gedd.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=Generic Event Dispatcher Daemon
After=network.target
After=mariadb.service

[Service]
Type=forking
ExecStart=/srv/eyesofnetwork/ged/bin/ged -c /srv/eyesofnetwork/ged/etc/ged.cfg

[Install]
WantedBy=multi-user.target
1 change: 1 addition & 0 deletions etc.in/purge_ged
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
50 3 * * * * root /srv/eyesofnetwork/ged/scripts/purge_event.sh 86400 > /dev/null 2>&1
Loading

0 comments on commit c215f4f

Please sign in to comment.