From f8eca49a51c1c3c8803c272d69182e0f7c7e3365 Mon Sep 17 00:00:00 2001 From: Daniel Joseph Barnhart Clark Date: Mon, 17 Jul 2006 02:53:50 +0000 Subject: Change patch to be bcfg2- package git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1960 ce84e21b-d406-0410-9b95-82705330c041 --- encap/Makefile | 2 +- encap/bcfg2-0.8.2pre10.profile | 2 +- encap/bcfg2-patch-2.5.9.profile | 68 +++++++++++++++++++++++++++++++++++++++++ encap/patch-2.5.9.profile | 48 ----------------------------- encap/patches/usr-local.diff | 15 +-------- 5 files changed, 71 insertions(+), 64 deletions(-) create mode 100644 encap/bcfg2-patch-2.5.9.profile delete mode 100644 encap/patch-2.5.9.profile (limited to 'encap') diff --git a/encap/Makefile b/encap/Makefile index ec95085f9..345cd026f 100644 --- a/encap/Makefile +++ b/encap/Makefile @@ -17,7 +17,7 @@ ZLIB = bcfg2-zlib-1.2.3 LIBICONV = bcfg2-libiconv-1.9.2 GETTEXT = bcfg2-gettext-0.14.5 PKG-CONFIG = bcfg2-pkg-config-0.20 -PATCH = patch-2.5.9 +PATCH = bcfg2-patch-2.5.9 OPENSSL = bcfg2-openssl-0.9.8b LIBSTDCXX = bcfg2-libstdc++-0.1 LIBGCC = bcfg2-libgcc-0.1 diff --git a/encap/bcfg2-0.8.2pre10.profile b/encap/bcfg2-0.8.2pre10.profile index 49c6a5773..673390675 100644 --- a/encap/bcfg2-0.8.2pre10.profile +++ b/encap/bcfg2-0.8.2pre10.profile @@ -57,7 +57,7 @@ from_dir="src/sbin" /> diff --git a/encap/bcfg2-patch-2.5.9.profile b/encap/bcfg2-patch-2.5.9.profile new file mode 100644 index 000000000..b41e3bf14 --- /dev/null +++ b/encap/bcfg2-patch-2.5.9.profile @@ -0,0 +1,68 @@ + + + + + + + + + + +PLATFORM_IF_MATCH(linux) +PLATFORM_ELSE + +PLATFORM_ENDIF + + + + + + + + + + +mkdir bin 2>/dev/null || exit 0 +ln -sf ../lib/bcfg2/bin/patch bin/b2patch +mkdir var 2>/dev/null || exit 0 +mkdir var/encap 2>/dev/null || exit 0 +touch var/encap/${ENCAP_PKGNAME} + + + +description patch - Apply a diff file to an original + + + diff --git a/encap/patch-2.5.9.profile b/encap/patch-2.5.9.profile deleted file mode 100644 index e357bd028..000000000 --- a/encap/patch-2.5.9.profile +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - -PLATFORM_IF_MATCH(linux) -PLATFORM_ELSE - -PLATFORM_ENDIF - - - - - - -mkdir var 2>/dev/null || exit 0 -mkdir var/encap 2>/dev/null || exit 0 -touch var/encap/${ENCAP_PKGNAME} - - - -description patch - Apply a diff file to an original - - - diff --git a/encap/patches/usr-local.diff b/encap/patches/usr-local.diff index 969841d0f..2110ccf6f 100644 --- a/encap/patches/usr-local.diff +++ b/encap/patches/usr-local.diff @@ -1,16 +1,3 @@ -Index: encap/bcfg2-0.8.2pre10.profile -=================================================================== ---- encap/bcfg2-0.8.2pre10.profile (revision 1958) -+++ encap/bcfg2-0.8.2pre10.profile (working copy) -@@ -57,7 +57,7 @@ - /> - - - Index: src/lib/Options.py =================================================================== --- src/lib/Options.py (revision 1957) @@ -33,7 +20,7 @@ Index: src/lib/Server/Plugins/Cfg.py dfile.write(delta.data) dfile.close() - ret = os.system("patch -uf %s < %s > /dev/null 2>&1"%(basefile.name, dfile.name)) -+ ret = os.system("/usr/local/bin/patch -uf %s < %s > /dev/null 2>&1"%(basefile.name, dfile.name)) ++ ret = os.system("/usr/local/bin/b2patch -uf %s < %s > /dev/null 2>&1"%(basefile.name, dfile.name)) output = open(basefile.name, 'r').read() [os.unlink(fname) for fname in [basefile.name, dfile.name]] if ret >> 8 != 0: -- cgit v1.2.3-1-g7c22