forked from HenriWahl/dhcpy6d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·72 lines (64 loc) · 3.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
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
68
69
70
71
#!/usr/bin/env python
# encoding: utf-8
# dhcpy6d - DHCPv6 server
# Copyright (C) 2012 Henri Wahl <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
from distutils.core import setup
import os.path
CLASSIFIERS = [
'Intended Audience :: System Administrators',
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Operating System :: POSIX :: Linux',
'Operating System :: POSIX',
'Natural Language :: English',
'Programming Language :: Python',
'Topic :: System :: Networking'
]
data_files_custom = [('/var/lib/dhcpy6d', ['var/lib/volatile.sqlite']),\
('/var/log', ['var/log/dhcpy6d.log']),\
('/usr/share/doc/dhcpy6d', ['doc/clients-example.conf',\
'doc/config.sql',\
'doc/dhcpy6d-example.conf',\
'doc/dhcpy6d-minimal.conf',\
'doc/LICENSE',\
'doc/volatile.sql']),\
('/etc', ['etc/dhcpy6d.conf'])]
# RPM creation uses more files as data_files which on Debian are
# installed via debhelpers
# /tmp/DHCPY6D_BUILDING_RPM has been touched by build.sh
if os.path.exists("/tmp/DHCPY6D_BUILDING_RPM"):
scripts_custom = ''
data_files_custom.append(('/usr/sbin', ['dhcpy6d']))
data_files_custom.append(('/etc/logrotate.d', ['etc/logrotate.d/dhcpy6d']))
data_files_custom.append(('/etc/init.d', ['installer/redhat/init.d/dhcpy6d']))
else:
scripts_custom = ['dhcpy6d']
setup(name = 'dhcpy6d',
version = '0.3',
license = 'GNU GPL v2',
description = 'DHCPv6 server daemon',
long_description = 'Dhcpy6d delivers IPv6 addresses for DHCPv6 clients, which can be identified by DUID, hostname or MAC address as in the good old IPv4 days. It allows easy dualstack transistion, addresses may be generated randomly, by range, by arbitrary ID or MAC address. Clients can get more than one address, leases and client configuration can be stored in databases and DNS can be updated dynamically.',
classifiers = CLASSIFIERS,
author = 'Henri Wahl',
author_email = '[email protected]',
url = 'http://dhcpy6d.ifw-dresden.de',
download_url = 'http://dhcpy6d.ifw-dresden.de/download',
py_modules = ['dhcpy6.Helpers', 'dhcpy6.Constants',\
'dhcpy6.Config', 'dhcpy6.Storage'],
data_files = data_files_custom,\
scripts = scripts_custom\
)