All pastes #125510 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-08-10 18:16 UTC
rendered paste body
class Dist(GroupRecipe):
    name = 'group-pound'
    version = 'BusinessEdition_B.1_2'
        
    def startGroup(r, name):
        # creates group named "name", adds it to the toplevel group,
        # and sets the current group to that name.  calls to r.add()
        # will use the current group by default.
        r.createGroup(name, autoResolve=True, depCheck=True)
        r.addNewGroup(name)
        r.currentGroup = name
        
    def add(r, *args, **kwargs):
        # adds a trove to the current group
        kwargs['groupName'] = r.currentGroup
        r.addTrove(*args, **kwargs)
        
    def add64BitLibs(r):
        # we currently can't automatically find these libraries
        # on x86_64.  remove this when this limitation is gone
        if Arch.x86_64:
            r.add('glibc:lib', flavor='is: x86(i486,i586,i686)')
            r.add('libstdc++:lib', flavor=r.gccFlavor, source='gcc')
            r.add('libgcc:lib', flavor=r.gccFlavor, source='gcc')

    def setup(r):
        r.setLabelPath('conary.digium.com@digium:pk-devel',
#                      'conary.digium.com@digium:pk-devel',
#                      'conary.rpath.com@rpl:1',
                       'asterisk.rpath.org@rpl:devel',
                       'conary.rpath.com@rpl:1',
                       'conary.rpath.com@rpl:1-compat',
                       'contrib.rpath.org@rpl:devel',
                       'conary.digium.com@rpl:1')
        
        r.currentGroup = None
        
        if Arch.x86_64:
            # since x86_64 is a multiarch toolchain, we need to add
            # x86 to the flavor
            r.gccFlavor = 'is: x86 x86_64'
        else:
            r.gccFlavor = ''

        r.startGroup('group-editors')
        r.add64BitLibs()
        r.add('jove')
        r.add('nano')
        r.add('vim')

        r.startGroup('group-asterisk')
        r.add64BitLibs()
        r.add('asterisk')
        r.add('cepstral')
        r.add('libpri')
        r.add('asterisk-osp')
        if Arch.x86:
                r.add('lumenvox')
                r.add('res_speech_lumenvox')
        r.add('zaptel')
        r.add('zaptel-modules', flavor='zaptel.smp')
        r.add('zaptel-modules', flavor='!zaptel.smp')

        r.startGroup('group-apache')
        r.add64BitLibs()
        r.add('httpd')
        r.add('httpd:doc')
        r.add('php')
        r.add('php:doc')

#        r.startGroup('group-mysql')
#        r.add64BitLibs()
#        r.add('mysql')
#        r.add('mysql-server')