def main(): try: if not os.path.isdir('build/stubs/pyfred/idlstubs'): os.makedirs('build/stubs/pyfred/idlstubs') setup( name="fred-pyfred", version=PACKAGE_VERSION, description= "Component of FRED (Fast Registry for Enum and Domains)", author="Jan Kryl", author_email="*****@*****.**", url="http://fred.nic.cz/", license="GNU GPL", cmdclass={ "config": Config, "install": Install, "install_scripts": Install_scripts, "install_data": Install_data, }, packages=["pyfred", "pyfred.modules"], py_modules=[ 'pyfred.idlstubs', 'pyfred.idlstubs.ccReg', 'pyfred.idlstubs.ccReg__POA' ], #XXX 'requires' option does not work allthough it is described in #official documentation. #requires = ["omniORB", "pgdb(>=3.6)", "dns(>=1.3)", "neo_cgi"], scripts=[ "scripts/fred-pyfred", "scripts/pyfredctl", "scripts/filemanager_admin_client", "scripts/filemanager_client", "scripts/genzone_client", "scripts/check_pyfred_genzone", "scripts/mailer_admin_client", "scripts/mailer_client", "scripts/techcheck_admin_client", "scripts/techcheck_client", ], data_files=[ # create empty directories ( 'LOCALSTATEDIR/run', ), ('LOCALSTATEDIR/lib/pyfred/filemanager', ), ('LIBEXECDIR/pyfred', [ "tc_scripts/authoritative.py", "tc_scripts/autonomous.py", "tc_scripts/existance.py", "tc_scripts/heterogenous.py", "tc_scripts/presence.py", "tc_scripts/recursive4all.py", "tc_scripts/recursive.py", "tc_scripts/dnsseckeychase.py" ]), ('SYSCONFDIR/fred', [ os.path.join("build", "pyfred.conf"), os.path.join("build", "genzone.conf") ]), ], ) return True except Exception, e: log.error("Error: %s", e) return False
def main(directory): try: setup(name=PROJECT_NAME, description='PDF creator module', author='Zdenek Bohm, CZ.NIC', author_email='*****@*****.**', url='http://fred.nic.cz', license='GNU GPL', long_description='The module of the FRED system', cmdclass={ 'install':Install, 'install_scripts':Install_scripts}, scripts=[ PACKAGE_NAME], data_files=[ ('SYSCONFDIR/fred/', [ os.path.join('build', CONFIG_FILENAME)]), ] + all_files_in_4( os.path.join('DATAROOTDIR', PACKAGE_NAME, 'templates'), os.path.join(directory, 'templates')) , ) return True except Exception, e: sys.stderr.write("Error: %s\n" % e) return False
def main(directory): if os.environ.has_key('BDIST_SIMPLE'): APP_SCRIPTS.append(SCRIPT_FILENAME) try: setup(name = PROJECT_NAME, description = 'Client FRED (Free Registry for enum and domain)', author = 'Zdenek Bohm, CZ.NIC', author_email = '*****@*****.**', url = 'http://www.nic.cz', license = 'GNU GPL', packages = ['fred','guiqt4'], package_data={ 'fred': ['INSTALL','LICENSE','CREDITS','*.txt', 'lang/fred_client_cs.po', 'lang/cs/LC_MESSAGES/fred_client.mo'], 'guiqt4': ['*.py','*.png','*.qm'], }, scripts = APP_SCRIPTS, data_files=[ ('DATAROOTDIR/%s' % PACKAGE_NAME, [ 'doc/fred_howto_cs.html', 'doc/niccz_console.ico', 'doc/niccz_gui.ico', 'doc/configure.ico', 'doc/help.ico', 'doc/README_EN.txt', 'doc/README_CS.txt', 'doc/README_CS.html', 'doc/README_QT4_CS.pdf']), ('DATAROOTDIR/%s/ssl' % PACKAGE_NAME, [ 'fred/certificates/test-cert.pem', 'fred/certificates/test-key.pem']), # ('DATADIR/fred-client/schemas', file_util.all_files_in_2('fred/schemas')), # on posix: '/etc/fred/' # on windows: ALLUSERSPROFILE = C:\Documents and Settings\All Users # on windows if ALL... missing: C:\Python25\ #get_etc_config_name() ('SYSCONFDIR/fred', [os.path.join('build', config_name)]) ] + all_files_in_4(os.path.join('DATADIR', PACKAGE_NAME, 'schemas'), get_epp_schema_path(directory)), cmdclass = { 'sdist': EPPClientSDist, 'install': EPPClientInstall, 'install_scripts': EPPClientInstall_scripts, 'install_lib':Install_lib, 'install_data':Install_data, }, ) return True except OSError, msg: message = "%s" % msg log.error("OSError: %s.", message) if 'schemas' in message: log.error("Schemas missing. Use them from the project mod-eppd and " "copy or make symlink fred/schemas.") return False
def main(): srcdir = os.path.dirname(os.path.abspath(__file__)) #XXX: Because of win, we have to create a copy of start script. This should be solved in repository, e.g. Provide # script that will run on win. copy_script = False if 'bdist_wininst' in sys.argv: # We have another set of scripts for win SCRIPTS.extend((WIN_SCRIPT_FILENAME, 'setup_postinstall.py')) SCRIPTS.remove(SCRIPT_FILENAME) copy_script = True elif 'sdist' in sys.argv: SCRIPTS.append(WIN_SCRIPT_FILENAME) copy_script = True if copy_script: win_script = '%s.py' % SCRIPT_FILENAME shutil.copy(os.path.join(srcdir, SCRIPT_FILENAME), os.path.join(srcdir, win_script)) data_files = [ ('share/%s' % PACKAGE_NAME, [ 'doc/fred_howto_cs.html', 'doc/niccz_console.ico', 'doc/configure.ico', 'doc/help.ico', 'doc/README_EN.txt', 'doc/README_CS.txt', 'doc/README_CS.html' ]), ('share/%s/ssl' % PACKAGE_NAME, ['fred/certificates/test-cert.pem', 'fred/certificates/test-key.pem']), ('$sysconf/fred', [os.path.join('conf', config_name)]) ] setup(name=PROJECT_NAME, description='Client FRED (Free Registry for enum and domain)', author='Zdenek Bohm, CZ.NIC', author_email='*****@*****.**', url='http://www.nic.cz', license='GNU GPL', packages=['fred'], package_data={'fred': ['INSTALL', 'LICENSE', 'CREDITS', '*.txt']}, i18n_files=['fred/lang/cs/LC_MESSAGES/fred_client.po'], scripts=SCRIPTS, data_files=data_files, cmdclass={'install': EPPClientInstall}, modify_files={ '$purelib/fred/internal_variables.py': 'update_version', '$purelib/fred/session_config.py': 'update_session_config', '$scripts/%s' % SCRIPT_FILENAME: 'update_script', '$sysconf/fred/%s' % config_name: 'update_config' }) # Remove the copy of a script if copy_script: try: os.unlink(os.path.join(srcdir, win_script)) except IOError: pass
def main(): srcdir = os.path.dirname(os.path.abspath(__file__)) #XXX: Because of win, we have to create a copy of start script. This should be solved in repository, e.g. Provide # script that will run on win. copy_script = False if 'bdist_wininst' in sys.argv: # We have another set of scripts for win SCRIPTS.extend((WIN_SCRIPT_FILENAME, 'setup_postinstall.py')) SCRIPTS.remove(SCRIPT_FILENAME) copy_script = True elif 'sdist' in sys.argv: SCRIPTS.append(WIN_SCRIPT_FILENAME) copy_script = True if copy_script: win_script = '%s.py' % SCRIPT_FILENAME shutil.copy(os.path.join(srcdir, SCRIPT_FILENAME), os.path.join(srcdir, win_script)) data_files = [('share/%s' % PACKAGE_NAME, ['doc/fred_howto_cs.html', 'doc/niccz_console.ico', 'doc/niccz_gui.ico', 'doc/configure.ico', 'doc/help.ico', 'doc/README_EN.txt', 'doc/README_CS.txt', 'doc/README_CS.html', 'doc/README_QT4_CS.pdf']), ('share/%s/ssl' % PACKAGE_NAME, ['fred/certificates/test-cert.pem', 'fred/certificates/test-key.pem']), ('$sysconf/fred', [os.path.join('conf', config_name)])] if EPP_SCHEMAS_PATH: data_files += [(os.path.join('share/%s/schemas' % PACKAGE_NAME, dest), files) for dest, files in find_data_files('.', EPP_SCHEMAS_PATH)] setup(name=PROJECT_NAME, description='Client FRED (Free Registry for enum and domain)', author='Zdenek Bohm, CZ.NIC', author_email='*****@*****.**', url='http://www.nic.cz', license='GNU GPL', packages=['fred', 'guiqt4'], package_data={'fred': ['INSTALL', 'LICENSE', 'CREDITS', '*.txt'], 'guiqt4': ['*.png', '*.qm']}, i18n_files=['fred/lang/cs/LC_MESSAGES/fred_client.po'], scripts=SCRIPTS, data_files=data_files, cmdclass={'install': EPPClientInstall}, modify_files={'$purelib/fred/internal_variables.py': 'update_version', '$purelib/fred/session_config.py': 'update_session_config', '$scripts/%s' % SCRIPT_FILENAME: 'update_script', '$scripts/%s' % QT4SCRIPT_FILENAME: 'update_script', '$sysconf/fred/%s' % config_name: 'update_config'}) # Remove the copy of a script if copy_script: try: os.unlink(os.path.join(srcdir, win_script)) except IOError: pass
def main(): setup( # Distribution meta-data name = PROJECT_NAME, description = 'Library contains wrapper for FRED Logger', author = 'Tomáš Diviš, CZ.NIC', author_email = '*****@*****.**', url = 'http://www.nic.cz/', license = 'GNU GPL', platforms = ['posix'], packages = ['pylogger'] )
def main(directory): if len(directory) == 0: cut = 0 else: cut = directory.count(os.path.sep) + 1 try: setup( name=PROJECT_NAME, description= 'Admin Interface for FRED (Fast Registry for Enum and Domains)', author='David Pospisilik, Tomas Divis, CZ.NIC', author_email='*****@*****.**', url='http://www.nic.cz', packages=[PACKAGE_NAME] + subpackages(directory, PACKAGE_NAME) + subpackages(directory, 'tests'), package_dir={PACKAGE_NAME: PACKAGE_NAME}, data_files=[ ('LOCALSTATEDIR/log/fred-webadmin', ), (os.path.join('LOCALSTATEDIR', 'lib', PROJECT_NAME, 'sessions'), ), ('SBINDIR', ['build/fred-webadmin']), ('SYSCONFDIR/init.d', ['build/fred-webadmin-server']), ('SYSCONFDIR/fred', ['build/webadmin_cfg.py']), ] # + all_files_in( # os.path.join('DATAROOTDIR', PROJECT_NAME, 'www'), # os.path.join(directory, 'www'), # cutSlashes_dst=cut # ) # + all_files_in( # os.path.join('DATAROOTDIR', PROJECT_NAME, 'locale'), # os.path.join(directory, 'locale'), # cutSlashes_dst=cut # ), + all_files_in_4(os.path.join('DATAROOTDIR', PROJECT_NAME, 'locale'), os.path.join(directory, 'locale')) + all_files_in_4(os.path.join('DATAROOTDIR', PROJECT_NAME, 'www'), os.path.join(directory, 'www')), cmdclass={ 'install': FredWebAdminInstall, 'install_data': FredWebAdminInstallData, 'install_lib': FredWebAdminInstallLib, }, ) return True except Exception, e: log.error("Error: %s", e) return False
def main(directory): if len(directory) == 0: cut = 0 else: cut = directory.count(os.path.sep) + 1 try: setup(name = PROJECT_NAME, description = 'Admin Interface for FRED (Fast Registry for Enum and Domains)', author = 'David Pospisilik, Tomas Divis, CZ.NIC', author_email = '*****@*****.**', url = 'http://www.nic.cz', packages = [PACKAGE_NAME] + subpackages(directory, PACKAGE_NAME) + subpackages(directory, 'tests'), package_dir = {PACKAGE_NAME: PACKAGE_NAME}, data_files = [ ('LOCALSTATEDIR/log/fred-webadmin',), (os.path.join('LOCALSTATEDIR', 'lib', PROJECT_NAME, 'sessions'),), ('SBINDIR', ['build/fred-webadmin']), ('SYSCONFDIR/init.d', ['build/fred-webadmin-server']), ('SYSCONFDIR/fred', ['build/webadmin_cfg.py']), ] # + all_files_in( # os.path.join('DATAROOTDIR', PROJECT_NAME, 'www'), # os.path.join(directory, 'www'), # cutSlashes_dst=cut # ) # + all_files_in( # os.path.join('DATAROOTDIR', PROJECT_NAME, 'locale'), # os.path.join(directory, 'locale'), # cutSlashes_dst=cut # ), + all_files_in_4( os.path.join('DATAROOTDIR', PROJECT_NAME, 'locale'), os.path.join(directory, 'locale')) + all_files_in_4( os.path.join('DATAROOTDIR', PROJECT_NAME, 'www'), os.path.join(directory, 'www')), cmdclass = { 'install': FredWebAdminInstall, 'install_data': FredWebAdminInstallData, 'install_lib': FredWebAdminInstallLib, }, ) return True except Exception, e: log.error("Error: %s", e) return False
def main(): "Run freddist setup" setup( # Distribution meta-data name = PROJECT_NAME, author = 'Jan Kryl', author_email = '*****@*****.**', url = 'http://fred.nic.cz/', version = PACKAGE_VERSION, license = 'GNU GPL', platforms = ['posix'], description = 'FRED TransProc', long_description = 'Component of FRED (Fast Registry for Enum and ' 'Domains)', #scripts = ['transproc'], packages = [PACKAGE_NAME], data_files = ( (os.path.join('SYSCONFDIR', 'fred'), ['transproc.conf']), ('DOCDIR', ['backend.xml', 'ChangeLog', 'README']), ('BINDIR', ['transproc']), (os.path.join('LIBEXECDIR', PROJECT_NAME), ['proc_csob_xml.py', 'proc_ebanka_csv.py', 'proc_ebanka.py']), ), modify_files = { 'install_data': (('install.update_config', ['transproc.conf']), ('install.update_transproc_path_to_config', ['transproc']), ), }, cmdclass = { 'install': TransprocInstall, }, )
def main(directory): try: setup( # Distribution meta-data name=PROJECT_NAME, description='Fred Whois', author='David Pospisilik, Zdenek Bohm, CZ.NIC', author_email='*****@*****.**', url='http://www.nic.cz/', license='GNU GPL', platforms=['posix'], long_description='The part of the CZ.NIC CMS web framework.', scripts=[os.path.join('statistics', 'simple_stats.py')], packages=[ PACKAGE_NAME, PACKAGE_NAME + '.captcha', PACKAGE_CAPTCHA, PACKAGE_CAPTCHA + '.Visual', PACKAGE_NAME + '.statistics' ], package_dir={PACKAGE_NAME: '.'}, package_data={ PACKAGE_NAME: ['captcha/pil_missing.jpg'], PACKAGE_CAPTCHA: ['data/fonts/vera/*.*'] }, # Value of the option --config will be join into data_files inside # class FredWhoisData data_files=[ ('DOCDIR', ['README.txt', os.path.join('build', 'apache.conf')]), ('SYSCONFDIR/fred', [os.path.join('build', 'whois.conf')]), (os.path.join('DATAROOTDIR', SHARE_TEMPLATES), all_files_in_2(os.path.join(directory, 'templates'))), (os.path.join('DATAROOTDIR', SHARE_LOCALE), [ 'locale/messages.pot', 'locale/cs_CZ.po', 'locale/localegen.sh', 'locale/C.po' ]), (os.path.join('DATAROOTDIR', SHARE_LOCALE, 'C', 'LC_MESSAGES'), ['locale/C/LC_MESSAGES/whois.mo']), (os.path.join('DATAROOTDIR', SHARE_LOCALE, 'en_US', 'LC_MESSAGES'), ['locale/en_US/LC_MESSAGES/whois.mo']), (os.path.join('DATAROOTDIR', SHARE_LOCALE, 'cs_CZ', 'LC_MESSAGES'), ['locale/cs_CZ/LC_MESSAGES/whois.mo']), (os.path.join('DATAROOTDIR', SHARE_WWW_CLIP), all_files_in_2(os.path.join(directory, '_clip'))), (os.path.join('DATAROOTDIR', SHARE_WWW_IMG), all_files_in_2(os.path.join(directory, '_img'))), (os.path.join('DATAROOTDIR', SHARE_WWW_CSS), all_files_in_2(os.path.join(directory, '_css'))), (os.path.join('DATAROOTDIR', SHARE_WWW_JS), all_files_in_2(os.path.join(directory, '_js'))), (os.path.join('DATAROOTDIR', SHARE_WWW_JS, 'MochiKit'), all_files_in_2(os.path.join(directory, '_js/MochiKit'))) ], cmdclass={ 'install': FredWhoisInstall, 'install_scripts': FredWhoisScripts, 'install_lib': FredWhoisLib, }, ) return True except Exception, e: log.error("Error: %s" % e) return False
def main(): try: if not os.path.isdir('build/stubs/pyfred/idlstubs'): os.makedirs('build/stubs/pyfred/idlstubs') setup(name="fred-pyfred", version=PACKAGE_VERSION, description="Component of FRED (Fast Registry for Enum and Domains)", author = "Jan Kryl", author_email="*****@*****.**", url = "http://fred.nic.cz/", license = "GNU GPL", cmdclass = { "config":Config, "install":Install, "install_scripts":Install_scripts, "install_data":Install_data, }, packages = ["pyfred", "pyfred.modules"], py_modules = ['pyfred.idlstubs', 'pyfred.idlstubs.ccReg', 'pyfred.idlstubs.ccReg__POA'], #XXX 'requires' option does not work allthough it is described in #official documentation. #requires = ["omniORB", "pgdb(>=3.6)", "dns(>=1.3)", "neo_cgi"], scripts = [ "scripts/fred-pyfred", "scripts/pyfredctl", "scripts/filemanager_admin_client", "scripts/filemanager_client", "scripts/genzone_client", "scripts/check_pyfred_genzone", "scripts/mailer_admin_client", "scripts/mailer_client", "scripts/techcheck_admin_client", "scripts/techcheck_client", ], data_files = [ # create empty directories ('LOCALSTATEDIR/run',), ('LOCALSTATEDIR/lib/pyfred/filemanager',), ('LIBEXECDIR/pyfred', [ "tc_scripts/authoritative.py", "tc_scripts/autonomous.py", "tc_scripts/existance.py", "tc_scripts/heterogenous.py", "tc_scripts/presence.py", "tc_scripts/recursive4all.py", "tc_scripts/recursive.py", "tc_scripts/dnsseckeychase.py" ] ), ('SYSCONFDIR/fred', [ os.path.join("build", "pyfred.conf"), os.path.join("build", "genzone.conf") ] ), ], ) return True except Exception, e: log.error("Error: %s", e) return False
# Copyright (C) 2009-2019 CZ.NIC, z. s. p. o. # # This file is part of FRED. # # FRED 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 3 of the License, or # (at your option) any later version. # # FRED 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 FRED. If not, see <https://www.gnu.org/licenses/>. from freddist.core import setup setup(name='fred-distutils', description='Fred Distutils', author='Aleš Doležal, CZ.NIC', author_email='*****@*****.**', url='http://www.nic.cz/', license='GPLv3+', platforms=['posix'], long_description='Fred Distutils, utilities for easier way to build packages.', packages=('freddist', 'freddist.command'), package_data={'freddist': ['README']})
def main(directory): try: setup( # Distribution meta-data name=PROJECT_NAME, description='Fred Whois', author='David Pospisilik, Zdenek Bohm, CZ.NIC', author_email='*****@*****.**', url='http://www.nic.cz/', license='GNU GPL', platforms=['posix'], long_description='The part of the CZ.NIC CMS web framework.', scripts=[os.path.join('statistics', 'simple_stats.py')], packages=[PACKAGE_NAME, PACKAGE_NAME + '.captcha', PACKAGE_CAPTCHA, PACKAGE_CAPTCHA + '.Visual', PACKAGE_NAME + '.statistics'], package_dir={PACKAGE_NAME: '.'}, package_data={PACKAGE_NAME: ['captcha/pil_missing.jpg'], PACKAGE_CAPTCHA: ['data/fonts/vera/*.*']}, # Value of the option --config will be join into data_files inside # class FredWhoisData data_files=[ ('DOCDIR', ['README.txt', os.path.join('build', 'apache.conf')]), ('SYSCONFDIR/fred', [os.path.join('build', 'whois.conf')]), (os.path.join('DATAROOTDIR', SHARE_TEMPLATES), all_files_in_2(os.path.join(directory, 'templates'))), (os.path.join('DATAROOTDIR', SHARE_LOCALE), ['locale/messages.pot', 'locale/cs_CZ.po', 'locale/localegen.sh', 'locale/C.po']), (os.path.join('DATAROOTDIR', SHARE_LOCALE, 'C', 'LC_MESSAGES'), ['locale/C/LC_MESSAGES/whois.mo']), (os.path.join('DATAROOTDIR', SHARE_LOCALE, 'en_US', 'LC_MESSAGES'), ['locale/en_US/LC_MESSAGES/whois.mo']), (os.path.join('DATAROOTDIR', SHARE_LOCALE, 'cs_CZ', 'LC_MESSAGES'), ['locale/cs_CZ/LC_MESSAGES/whois.mo']), (os.path.join('DATAROOTDIR', SHARE_WWW_CLIP), all_files_in_2(os.path.join(directory, '_clip'))), (os.path.join('DATAROOTDIR', SHARE_WWW_IMG), all_files_in_2(os.path.join(directory, '_img'))), (os.path.join('DATAROOTDIR', SHARE_WWW_CSS), all_files_in_2(os.path.join(directory, '_css'))), (os.path.join('DATAROOTDIR', SHARE_WWW_JS), all_files_in_2(os.path.join(directory, '_js'))), (os.path.join('DATAROOTDIR', SHARE_WWW_JS, 'MochiKit'), all_files_in_2(os.path.join(directory, '_js/MochiKit'))) ], cmdclass={ 'install': FredWhoisInstall, 'install_scripts': FredWhoisScripts, 'install_lib': FredWhoisLib, }, ) return True except Exception, e: log.error("Error: %s" % e) return False