forked from ARGOeu/nagios-plugins-argo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
36 lines (32 loc) · 1.04 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
from distutils.core import setup
import glob, sys
NAME='nagios-plugins-argo'
NAGIOSPLUGINS='/usr/libexec/argo-monitoring/probes/argo'
def get_ver():
try:
for line in open(NAME+'.spec'):
if "Version:" in line:
return line.split()[1]
except IOError:
print "Make sure that %s is in directory" % (NAME+'.spec')
sys.exit(1)
setup(name=NAME,
version=get_ver(),
license='ASL 2.0',
author='SRCE, GRNET',
author_email='[email protected], [email protected]',
description='Package include probes for ARGO components',
platforms='noarch',
long_description='''
This package includes probes for ARGO components.
Currently it supports the following components:
- ARGO Consumer log
- ARGO Messaging Service
- ARGO Web API
- POEM
''',
url='http://argoeu.github.io/',
data_files=[(NAGIOSPLUGINS, glob.glob('src/*'))],
packages=['nagios_plugins_argo'],
package_dir={'nagios_plugins_argo': 'modules/'},
)