diff --git a/control b/control index 6086600..ebc3257 100644 --- a/control +++ b/control @@ -8,7 +8,8 @@ X-Python-Version: current Package: mandaye-cam Architecture: all -Depends: ${misc:Depends}, ${python:Depends}, - python-mandaye (>= 0.7) +Depends: ${misc:Depends}, ${python:Depends}, memcached, + python-memcache, python-raven, python-crypto, + python-mandaye (>= 0.8) Description: CAM is a Mandaye project, modular reverse proxy to authentic diff --git a/dirs b/dirs new file mode 100644 index 0000000..881b76a --- /dev/null +++ b/dirs @@ -0,0 +1,6 @@ +var/lib/mandaye-cam +var/lib/mandaye-cam/data +var/lib/mandaye-cam/sessions +var/run/mandaye-cam +var/log/mandaye-cam +usr/share/mandaye-cam diff --git a/install b/install index 4be9bc3..5e140f6 100644 --- a/install +++ b/install @@ -1 +1 @@ -debian/local_config.py /etc/mandaye-cam/ +debian/config.ini /etc/mandaye-cam/ diff --git a/local_config.py b/local_config.py deleted file mode 100644 index 4f627a5..0000000 --- a/local_config.py +++ /dev/null @@ -1,54 +0,0 @@ -import logging - -## Virtual hosts configuration -hosts = { - 'archimed.montpellier.entrouvert.org': [ - {'path': r'/', - 'target': 'http://ermes2.montpellier-agglo.com', - 'mapping': 'cam.configs.archimed_saml.archimed_mapping' - }, - ], -} - -## SQL Backend config -# http://docs.sqlalchemy.org/en/rel_0_7/core/engines.html -# rfc 1738 https://tools.ietf.org/html/rfc1738 -# dialect+driver://username:password@host:port/database -db_url = 'sqlite:///var/lib/mandaye-cam/cam.db' - -## Logging configuration -debug = False -log_file = '/var/log/mandaye-cam/mandaye.log' -log_level = logging.INFO - -## PATH -# Static url -static_url = '/static' -# Static folder -static_root = '/usr/share/mandaye-cam/static' -# Data directory -data_dir = '/var/lib/mandaye-cam/data' - -## Email notification configuration -email_notification = True -smtp_host = 'localhost' -smtp_port = 25 -email_from = 'admin+mandaye-cam@entrouvert.com' -email_to = ['admin+mandaye-cam@entrouvert.com'] - - -## Session configuration -# http://beaker.readthedocs.org/en/latest/configuration.html#options-for-sessions-and-caching -session_opts = { - 'session.type': 'file', - 'session.cookie_expires': True, - 'session.timeout': 3600, - 'session.data_dir': '/var/lib/mandaye-cam/sessions' -} - -## Encrypt service provider passwords with a secret -# You should install pycypto to use this feature -encrypt_sp_password = True -# Must be a 16, 24, or 32 bytes long -encrypt_secret = 'CHANGEME' - diff --git a/rules b/rules index 4eb38ca..a63ae2b 100755 --- a/rules +++ b/rules @@ -7,13 +7,4 @@ BUILD_DIR := 'debian/mandaye-cam' override_dh_install: dh_install - for ver in $(shell pyversions -vr); do \ - ln -s /etc/mandaye-cam/local_config.py $(BUILD_DIR)/usr/lib/python$$ver/dist-packages/cam/; \ - done - install -d -m 0755 $(BUILD_DIR)/var/lib/mandaye-cam - install -d -m 0755 $(BUILD_DIR)/var/lib/mandaye-cam/data - install -d -m 0755 $(BUILD_DIR)/var/lib/mandaye-cam/sessions - install -d -m 0755 $(BUILD_DIR)/var/run/mandaye-cam - install -d -m 0755 $(BUILD_DIR)/var/log/mandaye-cam - install -d -m 0755 $(BUILD_DIR)/usr/share/mandaye-cam cp -R cam/static $(BUILD_DIR)/usr/share/mandaye-cam