PLATFORM_IF_MATCH(linux) PLATFORM_ELSE PLATFORM_ENDIF if [ -f setup.py.orig ]; then cp setup.py.orig setup.py; fi cat setup.py \ | sed s:\/usr\/local\/:\/usr\/local\/lib\/bcfg2\/:g \ > setup.py.bcfg2 mv setup.py setup.py.orig cp setup.py.bcfg2 setup.py ./configure \ --prefix="${ENCAP_SOURCE}/${ENCAP_PKGNAME}/lib/bcfg2" \ PLATFORM_IF_MATCH(linux) PLATFORM_ELSE --with-gcc \ PLATFORM_ENDIF --enable-shared=no \ --disable-ipv6 \ --without-cxx lib/bcfg2/lib/python2.4/site-packages/usr-local-lib-bcfg2.pth # Convienience links mkdir bin 2>/dev/null || exit 0 ln -sf ../lib/bcfg2/bin/pydoc bin/b2-pydoc ln -sf ../lib/bcfg2/bin/python bin/b2-python # Remove some big stuff that bcfg2 doesn't need if [ -d lib/bcfg2/lib/python2.4/test ]; then rm -rf lib/bcfg2/lib/python2.4/test; fi if [ -d lib/bcfg2/lib/python2.4/idlelib ]; then rm -rf lib/bcfg2/lib/python2.4/idlelib; fi # Make "this encap is installed" sentinal file available in /usr/local/var/encap test -d var || mkdir var test -d var/encap || mkdir var/encap touch var/encap/${ENCAP_PKGNAME} ]]> description python - scripting language