diff options
Diffstat (limited to 'encap/tools/bcfg2-client/m4-1.4.4.sh')
-rwxr-xr-x | encap/tools/bcfg2-client/m4-1.4.4.sh | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/encap/tools/bcfg2-client/m4-1.4.4.sh b/encap/tools/bcfg2-client/m4-1.4.4.sh new file mode 100755 index 000000000..b424007eb --- /dev/null +++ b/encap/tools/bcfg2-client/m4-1.4.4.sh @@ -0,0 +1,74 @@ +#!/bin/sh +# $Id$ + +ENCAP_PKGNAME=m4-1.4.4 +PATH=$PATH:/usr/local/bin +export PATH + +cat > ${ENCAP_PKGNAME}.ep << EOF +<?xml version="1.0"?> + +<encap_profile + profile_ver="1.0" + pkgspec="m4-1.4.4" +> + +<environment + variable="CC" + value="gcc" + type="set" +/> + +<environment + variable="PATH" + value="/usr/local/bin:" + type="prepend" +/> + + +<environment + variable="PATH" + value=":/usr/sfw/bin:/usr/ccs/bin" + type="append" +/> + +<source + url="http://www.pobox.com/users/dclark/mirror/m4/m4-1.4.4.tar.gz + http://ftp.gnu.org/gnu/m4/m4-1.4.4.tar.gz" +> + +</source> + +<prepackage type="set"> +mkdir var 2>/dev/null || exit 0 +mkdir var/encap 2>/dev/null || exit 0 +touch var/encap/${ENCAP_PKGNAME} +</prepackage> + +<encapinfo> +description m4 - GNU implementation of the traditional Unix macro processor +</encapinfo> + +</encap_profile> +EOF + +cat > m4-fake << EOF +#!/bin/sh +cat \$4 +EOF + +chmod 755 m4-fake + +( ${MKENCAP} -m ${PWD}/m4-fake -b -DUP ${ENCAP_PKGNAME}.ep || true ) \ + > ${ENCAP_PKGNAME}.log 2>&1 + +( ${MKENCAP} -m ${PWD}/m4-fake -b -T ${ENCAP_PKGNAME}.ep || true ) \ + >> ${ENCAP_PKGNAME}.log 2>&1 + +( ${MKENCAP} -m ${PWD}/m4-fake -b -CBI ${ENCAP_PKGNAME}.ep ) \ + >> ${ENCAP_PKGNAME}.log 2>&1 + +rm m4-fake +rm ${ENCAP_PKGNAME}.ep + +exit 0 |