Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 42 lines (38 sloc) 1.31 KB
from setuptools import setup
import subprocess
def systemd_unit_path():
try:
command = ["pkg-config", "--variable=systemdsystemunitdir", "systemd"]
try:
path = subprocess.getoutput(command)
except AttributeError:
path = subprocess.check_output(command, stderr=subprocess.STDOUT)
return path.strip()
except (subprocess.CalledProcessError, OSError):
return "/lib/systemd/system"
setup(
name="bley",
version="2.0.0",
description="intelligent greylisting daemon for postfix",
author="Evgeni Golov",
author_email="evgeni@golov.de",
url="http://bley.mx",
license="BSD",
py_modules=['bley', 'bleyhelpers', 'postfix'],
scripts=['bley', 'bleygraph'],
zip_safe=False,
install_requires=['Twisted>=8.1.0', 'pyspf'],
extras_require={
'PostgreSQL backend': ['psycopg2'],
'MySQL backend': ['MySQL-python'],
'publicsuffix.org support': ['publicsuffix'],
},
data_files=[
('/etc/bley', ['bley.conf.example',
'whitelist_recipients.example',
'whitelist_clients.example']),
('/usr/share/man/man1', ['bley.1', 'bleygraph.1']),
('/etc/logcheck/ignore.d.server/', ['bley.logcheck']),
(systemd_unit_path(), ['bley.service'])
]
)