Install system files to the correct places

develop
Sam Black 2017-11-21 20:29:14 +00:00
parent 94793475db
commit 675ba15dff
Signed by: samwwwblack
GPG Key ID: 0FF0223994EA47D8
2 changed files with 11 additions and 0 deletions

View File

@ -1,7 +1,9 @@
# -*- coding: utf-8 -*-
from glob import glob
from setuptools import find_packages
from setuptools import setup
import sponson
from sponson.constants import ETC_DNSMASQ_CONF_DIR
def get_version(fname="sponson/__init__.py"):
@ -27,6 +29,14 @@ setup(
],
zip_safe=False,
include_package_data=True,
data_files=[
("/usr/libexec/sponson", glob("services/libexec/*")),
("/usr/lib/systemd/network", glob("services/systemd/network/*")),
("/usr/lib/systemd/system", glob("services/systemd/service/*")),
("/usr/share/dbus-1/system.d", glob("services/dbus/*")),
("/etc/bash_completion.d", "services/sponson-bash-completion.sh"),
(ETC_DNSMASQ_CONF_DIR, "services/resolv.conf")
],
install_requires=[
"click >= 6.2",
"pyyaml >= 3.11",
@ -50,6 +60,7 @@ setup(
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3 :: Only",
"Topic :: System :: Systems Administration"
]