forked from nobody43/zabbix-smartmontools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
37 lines (33 loc) · 1.11 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import os
import sys
from setuptools import setup, find_packages
if 'bsd' in sys.platform:
examplesdir = "/usr/local/share/examples/zabbix-smartmontools"
sudoersfile = "Unix/sudoers.d/zabbix"
elif sys.platform.startswith("linux"):
examplesdir = "/usr/local/share/doc/zabbix-smartmontools/examples"
sudoersfile = "Unix/sudoers.d/zabbix"
elif sys.platform == "win32":
examplesdir = r"C:\zabbix-agent\zabbix-smartmontools"
sudoersfile = False
else:
raise NotImplementedError
data_files = [(examplesdir, ['zabbix-smartmontools.conf'])]
if sudoersfile:
data_files.append((os.path.join(examplesdir, "sudoers.d"), [sudoersfile]))
setup(
author="",
name="zabbix-smartmontools",
data_files=data_files,
description="Disk SMART monitoring for Linux, FreeBSD and Windows. LLD, trapper. ",
entry_points = {
'console_scripts':
['zabbix-smartctl = zabbix_smartmontools:main']
},
packages=find_packages(),
project_urls={
"Source Code": "https://github.com/nobodysu/zabbix-smartmontools"
},
tests_require=['parameterized'],
version="1.5.5",
)