PLATFORM_IF_MATCH(linux)
PLATFORM_ELSE
PLATFORM_ENDIF
:
/usr/local/lib/bcfg2/bin/python setup.py build \
--build-base=${builddir}/build
/usr/local/lib/bcfg2/bin/python setup.py install \
--prefix=${ENCAP_SOURCE}/${ENCAP_PKGNAME}/lib/bcfg2
/usr/local/lib/bcfg2/bin/python setup.py clean
&1
printf "*** exec /command/envdir ./env ./bcfg2-client.sh ...\n"
exec /command/envdir ./env ./bcfg2-client.sh
]]>
&1
exec /command/multilog t /usr/local/var/multilog/bcfg2-client
]]>
&1
/command/envdir /usr/local/etc/default/bcfg2-server/env /bin/sh -c '\
printf "*** exec /usr/local/bin/bcfg2-server ${OPTIONS} ...\n"'
exec /command/envdir /usr/local/etc/default/bcfg2-server/env /bin/sh -c '\
exec /usr/local/bin/bcfg2-server ${OPTIONS}'
]]>
&1
exec /command/multilog t /usr/local/var/multilog/bcfg2-server
]]>
${BASEDIR}/postinstall.log 2>&1 3>&1
else
printf "\npostinstall: already ran\n\t${BASEDIR}/b2-regexplace.sh, not running again...\n" >> ${BASEDIR}/postinstall.log
fi
# Make sure log directories exist
test -d /usr/local/var || mkdir /usr/local/var
test -d $MULTILOG || mkdir $MULTILOG
test -d $MULTILOG/bcfg2-client || mkdir $MULTILOG/bcfg2-client
test -d $MULTILOG/bcfg2-server || mkdir $MULTILOG/bcfg2-server
# Make sure environment directories exist
test -d /usr/local/etc || mkdir /usr/local/etc
test -d $DEFAULT || mkdir $DEFAULT
test -d $DEFAULT/bcfg2-client || mkdir $DEFAULT/bcfg2-client
test -d $DEFAULT/bcfg2-client/env || mkdir $DEFAULT/bcfg2-client/env
test -d $DEFAULT/bcfg2-server || mkdir $DEFAULT/bcfg2-server
test -d $DEFAULT/bcfg2-server/env || mkdir $DEFAULT/bcfg2-server/env
# Put in default client environment if it didn't exist
if [ ! -f $DEFAULT/bcfg2-client/.SENTINEL ]; then
touch $DEFAULT/bcfg2-client/.SENTINEL
echo "-q -v -d -n" > $DEFAULT/bcfg2-client/env/OPTIONS
echo "3600" > $DEFAULT/bcfg2-client/env/RUN_INTERVAL_SECONDS
fi
# Put in default server environment if it didn't exist
if [ ! -f $DEFAULT/bcfg2-server/.SENTINEL ]; then
touch $DEFAULT/bcfg2-server/.SENTINEL
echo "-v" > $DEFAULT/bcfg2-server/env/OPTIONS
fi
]]>
description Bcfg2 - Provides a declarative interface to system configuration
prereq pkgspec >= bcfg2-zlib-1.2.3
prereq pkgspec >= bcfg2-libiconv-1.9.2
prereq pkgspec >= bcfg2-gettext-0.14.5
prereq pkgspec >= bcfg2-openssl-0.9.8b
prereq pkgspec >= bcfg2-libstdc++-0.1
prereq pkgspec >= bcfg2-libgcc-0.1
prereq pkgspec >= bcfg2-python-2.4.3
prereq pkgspec >= bcfg2-pyopenssl-0.6
prereq pkgspec >= bcfg2-libxml2-2.6.26
prereq pkgspec >= bcfg2-libxslt-1.1.17
prereq pkgspec >= bcfg2-lxml-1.0.1