aboutsummaryrefslogtreecommitdiff
path: root/config.def.mk
diff options
context:
space:
mode:
authorMiquel Lionel <lionel@les-miquelots.net>2021-07-18 12:04:08 +0100
committerMiquel Lionel <lionelmiquel@sfr.fr>2021-07-18 16:03:51 +0100
commitd55095b26b988192a209218fd00af872d9811302 (patch)
tree9b0055cc402383893696158a1e7977a9c1f7f92b /config.def.mk
parentde854ac0a8fe72a1b0d0137c351b39de25e0adfe (diff)
downloadgpigeon-d55095b26b988192a209218fd00af872d9811302.tar.gz
gpigeon-d55095b26b988192a209218fd00af872d9811302.zip
Added file upload support and others fixes
- Added support for file upload from master branch - Adjusted gpigeonctl.def file for BINPREFIX variable - Did cleanup of dead variables and functions. Moved text in their script, no need to do complicated sed. $text_strings use is justified in gpigeon.cgi, not in link-tmpl.cgi. - Fixed seds in the Makefile - Removed NotifIfDefined function, found a simpler way for displaying/not displaying notifs. - Removing $argon2id_hash variable. Unused and has its place in the mono-user version of gpigeon.
Diffstat (limited to 'config.def.mk')
-rw-r--r--config.def.mk15
1 files changed, 9 insertions, 6 deletions
diff --git a/config.def.mk b/config.def.mk
index 931671f..f860bf3 100644
--- a/config.def.mk
+++ b/config.def.mk
@@ -1,20 +1,23 @@
# Customize below to fit your system
# prefixes
-BINPREFIX = /usr/local/bin
PREFIX = /usr/share
+BINPREFIX = /usr/bin
WWWPREFIX = /var/www
# system stuff
WWWUSER = 'www-data'
+WWWGROUP = 'www-data'
# paths
-COOKIES_DIR = $(PREFIX)/gpigeon/cookies
-_GPG_HOMEDIR = $(PREFIX)/gpigeon/gnupg
-WWWDIR = $(WWWPREFIX)/gpigeon
-LINK_TEMPLATE_PATH = $(PREFIX)/gpigeon/link-tmpl.cgi
+GPIGEON_DIR=$(PREFIX)/gpigeon
+COOKIES_DIR = $(GPIGEON_DIR)/cookies
+UPLOAD_TMPDIR = $(GPIGEON_DIR)/tmp/
+LINK_TEMPLATE_PATH = $(GPIGEON_DIR)/link-tmpl.cgi
+DB_PATH=$(GPIGEON_DIR)/the.db
+_GPG_HOMEDIR = $(GPIGEON_DIR)/gnupg
GPIGEON_PATH = $(WWWDIR)/cgi-bin/gpigeon.cgi
-DB_PATH=$(PREFIX)/gpigeon/the.db
+WWWDIR = $(WWWPREFIX)/gpigeon
# one time gpg form tuning
MSG_FORM_CHAR_LIMIT = 3000