forked from dagwieers/mrepo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·77 lines (69 loc) · 2.96 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
72
73
74
75
76
77
#!/usr/bin/python
### This program is free software; you can redistribute it and/or modify
### it under the terms of the GNU Library General Public License as published by
### the Free Software Foundation; version 2 only
###
### 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 Library General Public License for more details.
###
### You should have received a copy of the GNU Library 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.
### Copyright 2004-2006 Dag Wieers <[email protected]>
### FIXME: distutils is pretty clueless for tools (no globs, no renames, ...)
import sys
print 'Distutils installation not enabled. Please use Makefile for now.'
sys.exit(1)
# if someday we want to *require* setuptools, uncomment this:
# (it will cause setuptools to be automatically downloaded)
#import ez_setup
#ez_setup.use_setuptools()
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name = 'mrepo',
version = '0.8.4svn',
description = 'RPM repository mirroring tool',
author = 'Dag Wieers',
author_email ='[email protected]',
url = "http://dag.wieers.com/home-made/mrepo/",
scripts=['mrepo', 'gensystemid'],
data_files=[
('/etc', ['config/mrepo.conf']),
('/etc/init.d', ['config/mrepo']),
('/etc/httpd/conf.d', ['config/httpd/mrepo.conf']),
('/var/cache/mrepo', []),
('/var/www/mrepo', []),
('/var/mrepo/all/local', []),
('/usr/share/mrepo/html', ['html/HEADER.index.shtml', 'html/HEADER.repo.shtml', 'html/README.index.shtml', 'html/README.repo.shtml']),
],
download_url = 'http://dag.wieers.com/home-made/mrepo/mrepo-0.8.4svn.tar.gz',
license = 'GPL',
platforms = 'Posix',
classifiers = [
'Internet :: WWW/HTTP :: Site Management',
'System :: Archiving :: Mirroring',
'System :: Archiving :: Packaging',
'System :: Installation/Setup',
'System :: Software Distribution',
'System :: Software Distribution Tools',
'System :: Systems Administration',
],
long_description = '''
mrepo builds a local APT/Yum RPM repository from local ISO files, downloaded
updates, and extra packages from RHN (Red Hat Network) and 3rd party
repositories. It takes care of setting up the ISO files, downloading the
RPMs, configuring HTTP access, and providing PXE/TFTP resources for remote
installations.
It was primarily intended for doing remote network installations of various
distributions from a laptop without the need for CD media or floppies, but
is equally suitable for an organization's centralized update server.
Depending on the use it may require:
apt, up2date, yum, createrepo, repoview, hardlink and/or hardlink++
''',
)
# vim:ts=4:sw=4