All pastes #402372 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-03-19 21:35 UTC
rendered paste body
class AsteriskPackage(CPackageRecipe):
    name = 'asterisk-addons'
    version = '1.4'

    buildRequires = ['groff:runtime', 'mysql:devel', 'openssl:devel', 'zlib:devel']

    def setup(r):
        r.macros.version = r.macros.version.replace('_', '-')
        r.addAction('svn co http://origsvn.digium.com/svn/asterisk-addons/branches/1.4 .')
        r.addAction('svn cat http://origsvn.digium.com/svn/asterisk/branches/1.4/include/asterisk.h > asterisk.h')
        r.macros.cflags  += ' -I/usr/kerberos/include'
        r.Replace('\/usr\/lib\/', '%(libdir)s/', 'format_mp3/Makefile')
        r.Replace('\/usr\/lib\/', '%(libdir)s/', 'asterisk-ooh323c/Makefile.in')
        r.Configure()
        r.Make()
        r.MakeDirs('%(libdir)s/asterisk/modules')
        r.MakeInstall()
        r.Make('samples DESTDIR=%(destdir)s')
        r.Install('asterisk-ooh323c/h323.conf.sample', '%(sysconfdir)s/asterisk/ooh323.conf')
        for files in [ '%(libdir)s/asterisk/modules/app_addon_sql_mysql.so',
                       '%(libdir)s/asterisk/modules/cdr_addon_mysql.so',
                       '%(libdir)s/asterisk/modules/res_config_mysql.so',
                       '/etc/asterisk/cdr_mysql.conf',  '/etc/asterisk/res_mysql.conf' ]:
                r.ComponentSpec('mysql', '%s' % files )
        r.ComponentSpec('format_mp3', '%(libdir)s/asterisk/modules/format_mp3.so')
        r.PackageSpec('ooh323c', '%(libdir)s/asterisk/modules/chan_ooh323.so')
        r.PackageSpec('ooh323c', '%(sysconfdir)s/asterisk/ooh323.conf')
        for files in ['src/chan_h323.h', 'src/ooh323cDriver.h', 'ooh323c/src/ooCmdChannel.h',
                      'ooh323c/src/ooLogChan.h', 'ooh323c/src/ooUtils.h', 'ooh323c/src/ooGkClient.h',
                      'ooh323c/src/ooCommon.h', 'ooh323c/src/ooDateTime.h', 'ooh323c/src/memheap.h',
                      'ooh323c/src/ooasn1.h', 'ooh323c/src/ootrace.h', 'ooh323c/src/oochannels.h',
                      'ooh323c/src/ooh245.h', 'ooh323c/src/oohdr.h', 'ooh323c/src/ooper.h',
                      'ooh323c/src/ooports.h', 'ooh323c/src/ooq931.h', 'ooh323c/src/ooCapability.h',
                      'ooh323c/src/ooSocket.h', 'ooh323c/src/ootypes.h', 'ooh323c/src/eventHandler.h',
                      'ooh323c/src/ooCalls.h', 'ooh323c/src/ooStackCmds.h', 'ooh323c/src/ooh323.h',
                      'ooh323c/src/ooh323ep.h', 'ooh323c/src/printHandler.h', 'ooh323c/src/rtctype.h',
                      'ooh323c/src/ooTimer.h', 'ooh323c/src/h323/H235-SECURITY-MESSAGES.h',
                      'ooh323c/src/h323/H323-MESSAGES.h', 'ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROL.h']:
                sfiles = files
                sfiles = sfiles.replace('ooh323c/src/h323/','')
                sfiles = sfiles.replace('ooh323c/src/','')
                sfiles = sfiles.replace('src/','')
                r.Install('asterisk-ooh323c/%s' %files , '%%(includedir)s/asterisk/ooh323/%s' %sfiles)
        r.PackageSpec('ooh323c', '%(includedir)s/asterisk/ooh323/*.h')
        r.ComponentSpec('saycountpl', '%(libdir)s/asterisk/modules/app_saycountpl.so')


I get ...

Created component: asterisk-addons:debuginfo /poundkey.digium.com@pk:devel//local@local:COOK/1.4-2-0.1 is: x86_64
Created component: asterisk-addons:devel /poundkey.digium.com@pk:devel//local@local:COOK/1.4-2-0.1 is: x86_64
Created component: asterisk-addons:doc /poundkey.digium.com@pk:devel//local@local:COOK/1.4-2-0.1 is: x86_64
Created component: asterisk-addons:format_mp3 /poundkey.digium.com@pk:devel//local@local:COOK/1.4-2-0.1 is: x86_64
Created component: asterisk-addons:mysql /poundkey.digium.com@pk:devel//local@local:COOK/1.4-2-0.1 is: x86_64
Created component: asterisk-addons:saycountpl /poundkey.digium.com@pk:devel//local@local:COOK/1.4-2-0.1 is: x86_64
Created component: ooh323c:lib /poundkey.digium.com@pk:devel//local@local:COOK/1.4-2-0.1 is: x86_64
Created component: ooh323c:runtime /poundkey.digium.com@pk:devel//local@local:COOK/1.4-2-0.1 is: x86_64