File: setup.py

package info (click to toggle)
dhcpy6d 0.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 416 kB
  • ctags: 213
  • sloc: python: 2,387; sh: 231; sql: 34; makefile: 15
file content (79 lines) | stat: -rwxr-xr-x 3,390 bytes parent folder | download
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
72
73
74
75
76
77
78
79
#!/usr/bin/env python
# encoding: utf-8

# dhcpy6d - DHCPv6 server 
# Copyright (C) 2012 Henri Wahl <h.wahl@ifw-dresden.de>
# 
# 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
# 51 Franklin Street, Fifth Floor
# Boston, MA 02110-1301
# 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']),\
              ('/usr/share/man/man5', ['man/man5/dhcpy6d.conf.5',\
                                       'man/man5/dhcpy6d-clients.conf.5']),
              ('/usr/share/man/man8', ['man/man8/dhcpy6d.8']),\
              ('/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', ['redhat/init.d/dhcpy6d']))
else:
    scripts_custom = ['dhcpy6d']

setup(name = 'dhcpy6d',
    version = '0.4.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 = 'h.wahl@ifw-dresden.de',
    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\
    )