Exemplo n.º 1
0
    def __init__(self, config):
        super(ProFTPd, self).__init__('ProFTPd', os.path.dirname(__file__), config)

        self.download_url = 'ftp://ftp.proftpd.org/distrib/source/proftpd-%s.tar.gz' % self.version

        self.dependencies = [
            Dependency('ZLib', cFlags=['-I${INCLUDE_PATH}'], ldFlags=['-L${LIB_PATH}']),
            Dependency('Ncurses', cFlags=['-I${INCLUDE_PATH}'], ldFlags=['-L${LIB_PATH}']),
            Dependency('OpenSSL', cFlags=['-I${INCLUDE_PATH}'], ldFlags=['-L${LIB_PATH}']),
            Dependency('MySQL', cFlags=['-I${INCLUDE_PATH}'], ldFlags=['-L${LIB_PATH}'])
        ]
Exemplo n.º 2
0
    def __init__(self, config):
        super(FreeTDS, self).__init__('FreeTDS', os.path.dirname(__file__),
                                      config)

        self.download_url = 'ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/freetds-%s.tar.gz' % self.version
        self.dependencies = [
            Dependency('OpenSSL',
                       configureFlags=["--with-openssl=${COMPONENT_PATH}"]),
            Dependency('Ncurses',
                       configureFlags=["--with-ncurses=${COMPONENT_PATH}"])
        ]
Exemplo n.º 3
0
    def __init__(self, config):
        super(Apache, self).__init__('Apache', os.path.dirname(__file__), config)

        self.download_url = 'http://mirror.checkdomain.de/apache/httpd/httpd-%s.tar.gz' % self.version

        self.dependencies = [
            Dependency('ZLib', configureFlags=["--with-z=${COMPONENT_PATH}"]),
            Dependency('Expat', configureFlags=["--with-expat=${COMPONENT_PATH}"]),
            Dependency('OpenSSL', configureFlags=["--with-ssl=${COMPONENT_PATH}", "--enable-ssl=shared,${COMPONENT_PATH}"])
        ]

        self.patches = [
            'rm_envvars.patch',
            'ulimit_fix.patch'
        ]
Exemplo n.º 4
0
    def __init__(self, config):
        super(OpenSSL, self).__init__('OpenSSL', os.path.dirname(__file__),
                                      config)

        self.download_url = 'http://www.openssl.org/source/openssl-%s.tar.gz' % self.version
        self.supportsOnPassUniversalBuild = False
        self.dependencies = [Dependency('ZLib')]
Exemplo n.º 5
0
    def __init__(self, config):
        super(LibPNG, self).__init__('LibPNG', os.path.dirname(__file__),
                                     config)

        self.download_url = 'http://switch.dl.sourceforge.net/sourceforge/libpng/libpng-%s.tar.bz2' % self.version

        self.dependencies = [
            Dependency('ZLib',
                       configureFlags=["--with-zlib-prefix=${COMPONENT_PATH}"
                                       ]),
        ]
Exemplo n.º 6
0
    def __init__(self, config):
        super(LibXSLT, self).__init__('LibXSLT', os.path.dirname(__file__),
                                      config)

        self.download_url = 'ftp://xmlsoft.org/libxslt/libxslt-%s.tar.gz' % self.version
        self.dependencies = [
            Dependency('LibXML',
                       configureFlags=[
                           "--with-libxml-prefix=${COMPONENT_PATH}",
                           "--with-libxml-include-prefix=${INCLUDE_PATH}",
                           "--with-libxml-libs-prefix=${LIB_PATH}"
                       ])
        ]
Exemplo n.º 7
0
    def __init__(self, config):
        super(MySQL, self).__init__('MySQL', os.path.dirname(__file__), config)

        (major, minor, patch) = self.version.split('.')

        self.download_url = 'http://ftp.gwdg.de/pub/misc/mysql/Downloads/MySQL-%s.%s/mysql-%s.tar.gz' % (
            major, minor, self.version)
        self.includeDir = 'mysql'

        self.dependencies = [
            Dependency('ZLib',
                       configureFlags=["-DWITH_ZLIB=${COMPONENT_PATH}"])
        ]

        self.patches = ['mysql.server.patch']

        self.buildSteps.extend([self.completeInstallation])
Exemplo n.º 8
0
    def __init__(self, config):
        super(PHP5, self).__init__('PHP5', os.path.dirname(__file__), config)

        self.download_url = 'http://de2.php.net/distributions/php-%s.tar.gz' % self.version

        self.dependencies = [
            Dependency('Apache',
                       configureFlags=["--with-apxs2=${PREFIX}/bin/apxs"]),
            Dependency('Ncurses',
                       configureFlags=["--with-ncurses=${COMPONENT_PATH}"]),
            Dependency('LibJPEG',
                       configureFlags=["--with-jpeg-dir=${COMPONENT_PATH}"]),
            Dependency('LibPNG',
                       configureFlags=["--with-png-dir=${COMPONENT_PATH}"]),
            Dependency(
                'FreeType',
                configureFlags=["--with-freetype-dir=${COMPONENT_PATH}"]),
            Dependency('ZLib',
                       configureFlags=[
                           "--with-zlib=shared",
                           "--with-zlib-dir=${COMPONENT_PATH}"
                       ]),
            Dependency('OpenSSL',
                       configureFlags=["--with-openssl=${COMPONENT_PATH}"]),
            Dependency('Expat',
                       configureFlags=["--with-expat-dir=${COMPONENT_PATH}"]),
            Dependency('LibXSLT',
                       configureFlags=["--with-xsl=shared,${COMPONENT_PATH}"]),
            Dependency('MCrypt',
                       configureFlags=["--with-mcrypt=${COMPONENT_PATH}"]),
            Dependency('MHash',
                       configureFlags=["--with-mhash=${COMPONENT_PATH}"]),
            Dependency('LibXML',
                       configureFlags=["--with-libxml-dir=${COMPONENT_PATH}"]),
            Dependency('FreeTDS',
                       configureFlags=[
                           "--with-mssql=${COMPONENT_PATH}",
                           "--with-pdo-mssql=shared,${COMPONENT_PATH}"
                       ]),
            Dependency(
                'MySQL',
                configureFlags=[
                    "--with-mysql=${COMPONENT_PATH}",
                    "--with-mysql-sock=$PREFIX/var/mysql/mysql.sock",
                    "--with-pdo-mysql=shared,${COMPONENT_PATH}/bin/mysql_config",
                    "--with-mysql=shared,${COMPONENT_PATH}",
                    "--with-mysqli=shared,${COMPONENT_PATH}/bin/mysql_config"
                ])
        ]

        self.patches = [
            'php5_config.patch',
            'php5_uni.patch',
            'apxs-install.patch'  # Redhat bug 181798, this also requires autoconf --force
        ]

        self.buildSteps.insert(self.buildSteps.index("configure"),
                               self.runAutoconf)
        self.buildSteps.insert(self.buildSteps.index("configure"),
                               "setupSandbox")
        self.buildSteps.insert(
            self.buildSteps.index("install") + 1, "tearDownSandbox")