This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
/
setup.py
executable file
·67 lines (55 loc) · 2.12 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/python
# Copyright 2015 Red Hat Inc., Durham, North Carolina.
# All Rights Reserved.
#
# openscap-daemon is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 2.1 of the License, or
# (at your option) any later version.
#
# openscap-daemon is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
# You should have received a copy of the GNU Lesser General Public License
# along with openscap-daemon. If not, see <http://www.gnu.org/licenses/>.
#
# Authors:
# Martin Preisler <[email protected]>
import os
import os.path
from openscap_daemon import version
from distutils.core import setup
def get_packages():
# Distutils requires us to list all packages, this is very tedious and prone
# to errors. This method crawls the hierarchy and gathers all packages.
ret = ["openscap_daemon"]
for dirpath, _, files in os.walk("openscap_daemon"):
if "__init__.py" in files:
ret.append(dirpath.replace(os.path.sep, "."))
return ret
setup(
name="openscap_daemon",
version=version.VERSION_STRING,
author="Martin Preisler, Brent Baude and others",
author_email="[email protected]",
description="...",
license="LGPL2.1+",
url="http://www.open-scap.org/",
packages=get_packages(),
scripts=[
os.path.join("bin", "oscapd"),
os.path.join("bin", "oscapd-cli"),
os.path.join("bin", "oscapd-evaluate")
],
data_files=[
(os.path.join("/", "etc", "dbus-1", "system.d"),
["org.oscapd.conf"]),
(os.path.join("/", "usr", "lib", "systemd", "system"),
["oscapd.service"]),
(os.path.join("/", "usr", "share", "doc", "openscap-daemon"),
["README.md", "LICENSE"]),
(os.path.join("/", "usr", "share", "man", "man8"),
["man/oscapd.8", "man/oscapd-cli.8", "man/oscapd-evaluate.8"]),
],
)