rendered paste body#
# Copyright (c) 2005
# All rights reserved
#
class Dist(GroupRecipe):
name = 'group-presence'
version = '0.0.1'
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('presence.rpath.org@rpl:1',
'asterisk.rpath.org@rpl:1',
'conary.rpath.com@rpl:1',
'contrib.rpath.org@rpl:devel')
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('festival')
r.add('festival-lex-CMU')
r.add('festival-vox-kallpc8k')
r.add('libpri')
# grab sqlite2 from the sqlite2 branch
r.add('sqlite:lib', ':sqlite2/2.8.16')
# and the old sqlite needs readline 4
r.add('readline:lib', ':1-compat')
r.add('speech_tools')
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('php')
r.startGroup('group-mysql')
r.add64BitLibs()
r.add('mysql')
r.add('mysql-server')
r.startGroup('group-postgres')
r.add64BitLibs()
r.add('postgresql')
r.startGroup('group-odbc')
r.add64BitLibs()
r.add('unixODBC:lib')
r.startGroup('group-network')
r.add64BitLibs()
r.add('ftp')
r.add('lftp')
r.add('lynx')
r.add('nail')
r.add('nc')
r.add('ngrep')
r.add('ntp')
r.add('postfix')
r.add('tcpdump')
r.add('telnet')
r.add('tethereal')
r.add('tftp')
r.add('tftp-server')
r.add('vsftpd')
r.add('w3m')
r.add('wget')
r.startGroup('group-development')
r.add('alsa-lib')
r.add('binutils')
r.add('ctags')
r.add('curl')
r.add('cvs')
r.add('diffutils')
r.add('gcc', flavor=r.gccFlavor)
r.add('gcc-c++', flavor=r.gccFlavor, source='gcc')
r.add('libgcc', flavor=r.gccFlavor, source='gcc')
r.add('libstdc++', flavor=r.gccFlavor, source='gcc')
r.add('gdb')
r.add('glibc')
if Arch.x86_64:
r.add('glibc:lib', flavor='is: x86(i486,i586,i686)')
r.add('debugedit')
r.add('elfutils')
r.add('krb5')
r.add('libogg')
r.add('libvorbis')
r.add('linux-kernel-headers')
r.add('ltrace')
r.add('make')
r.add('ncurses')
r.add('newt')
r.add('openssl')
r.add('patch')
r.add('perl')
r.add('popt')
r.add('speex')
r.add('strace')
r.add('subversion')
if Arch.x86:
r.add('valgrind')
r.add('unixODBC:devel')
r.add('zlib')
r.startGroup('group-core')
r.add('ash:runtime')
r.add('authconfig:runtime')
r.add('bash:runtime')
r.add('bzip2:runtime')
r.add('chkconfig:runtime')
r.add('conary')
r.add('conary-build')
r.add('conary-policy')
r.add('coreutils:runtime')
r.add('cpio:runtime')
r.add('dev')
r.add('device-mapper:runtime', byDefault=False)
r.add('device-mapper:lib', byDefault=False)
r.add('dhclient:runtime')
r.add('distro-release')
r.add('e2fsprogs:runtime')
r.add('ed:runtime')
r.add('file:runtime')
r.add('filesystem')
r.add('findutils:runtime')
r.add('gawk:runtime')
r.add('libgcc:lib', flavor=r.gccFlavor)
r.add('libstdc++:lib', flavor=r.gccFlavor)
r.add('gdbm:lib')
r.add('glibc:lib')
if Arch.x86_64:
r.add('glibc:lib', flavor='is: x86(i486,i586,i686)')
r.add('glibc:runtime')
r.add('gpm:runtime')
r.add('grep:runtime')
if Arch.x86_64:
# grab the statically linked x86 version for use on x86_64
r.add('grub:data', flavor='grub.static is: x86')
r.add('grub:runtime', flavor='grub.static is: x86')
else:
r.add('grub:data')
r.add('grub:runtime')
r.add('gzip:runtime')
r.add('hdparm:runtime')
r.add('hotplug')
r.add('hwdata')
r.add('info-adm')
r.add('info-bin')
r.add('info-daemon')
r.add('info-disk')
r.add('info-floppy')
r.add('info-kmem')
r.add('info-lp')
r.add('info-sync')
r.add('info-sys')
r.add('info-tty')
r.add('info-users')
r.add('info-utmp')
r.add('info-uucp')
r.add('info-vcsa')
r.add('info-wheel')
r.add('initscripts')
r.add('iproute:runtime')
r.add('iptables:runtime')
r.add('iputils:runtime')
r.add('kbd:runtime')
r.add('kernel', '2.6.13.4', flavor='!kernel.smp')
r.add('kernel', '2.6.13.4', flavor='kernel.smp', byDefault=False)
r.add('kudzu:runtime')
r.add('kudzu:python')
r.add('less:runtime')
r.add('libtermcap')
r.add('logrotate:runtime')
r.add('lvm2', byDefault=False)
r.add('man:runtime')
r.add('mdadm:runtime')
r.add('mingetty:runtime')
r.add('mkinitrd')
r.add('mktemp:runtime')
r.add('module-init-tools:runtime')
r.add('ncurses:runtime')
r.add('net-tools:runtime')
r.add('openssh-client:runtime')
r.add('openssh-server:runtime')
r.add('openssh:runtime')
r.add('pciutils:runtime')
r.add('passwd:runtime')
r.add('procps:runtime')
r.add('psmisc:runtime')
r.add('python:devel')
r.add('python:doc')
r.add('python:lib')
r.add('python:runtime')
r.add('reiserfsprogs:runtime', byDefault=False)
r.add('rhpl')
r.add('rootfiles:runtime')
r.add('screen:runtime')
r.add('sed:runtime')
r.add('setserial:runtime')
r.add('setup')
r.add('slocate:runtime')
r.add('shadow:runtime')
r.add('sox')
r.add('sysklogd:runtime')
r.add('system-config-mouse:runtime')
r.add('sysvinit:runtime')
r.add('tar:runtime')
r.add('termcap:runtime')
r.add('tmpwatch:runtime')
r.add('tzdata:data')
r.add('usermode:runtime')
r.add('util-linux:runtime')
r.add('vixie-cron:runtime')
r.add('which:runtime')
r.add('xfsprogs:runtime', byDefault=False)