summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2013-09-11 13:37:15 +0000
committerJeroen Roovers <jer@gentoo.org>2013-09-11 13:37:15 +0000
commitebe65ee333c9e2c72c312d4c5b8b5819d86202d7 (patch)
treef36fdde662bc834c0e6bc6503fdfd7052181d120 /www-plugins
parentVersion bump. (diff)
downloadhistorical-ebe65ee333c9e2c72c312d4c5b8b5819d86202d7.tar.gz
historical-ebe65ee333c9e2c72c312d4c5b8b5819d86202d7.tar.bz2
historical-ebe65ee333c9e2c72c312d4c5b8b5819d86202d7.zip
Old.
Package-Manager: portage-2.2.2/cvs/Linux x86_64 Manifest-Sign-Key: 0xA792A613
Diffstat (limited to 'www-plugins')
-rw-r--r--www-plugins/adobe-flash/ChangeLog6
-rw-r--r--www-plugins/adobe-flash/Manifest17
-rw-r--r--www-plugins/adobe-flash/adobe-flash-11.2.202.297.ebuild255
-rw-r--r--www-plugins/adobe-flash/files/memcpy-to-memmove.sh40
4 files changed, 9 insertions, 309 deletions
diff --git a/www-plugins/adobe-flash/ChangeLog b/www-plugins/adobe-flash/ChangeLog
index fc5bd664af24..e7bd6892aa24 100644
--- a/www-plugins/adobe-flash/ChangeLog
+++ b/www-plugins/adobe-flash/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for www-plugins/adobe-flash
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/ChangeLog,v 1.212 2013/09/11 09:04:54 pinkbyte Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/ChangeLog,v 1.213 2013/09/11 13:37:14 jer Exp $
+
+ 11 Sep 2013; Jeroen Roovers <jer@gentoo.org>
+ -adobe-flash-11.2.202.297.ebuild, -files/memcpy-to-memmove.sh:
+ Old.
11 Sep 2013; Sergey Popov <pinkbyte@gentoo.org>
adobe-flash-11.2.202.310.ebuild:
diff --git a/www-plugins/adobe-flash/Manifest b/www-plugins/adobe-flash/Manifest
index 19e96a461eff..d35132bae865 100644
--- a/www-plugins/adobe-flash/Manifest
+++ b/www-plugins/adobe-flash/Manifest
@@ -2,26 +2,17 @@
Hash: SHA256
AUX flashplugin-lahf-fix.c 1038 SHA256 52acc6658eb7d49fb167c848345f7dcb49e4057e2872ca8319bccbff6728df6d SHA512 c56082ca6371176a3454f94a7ee5c00aba2d27c969783b26740b6ff61f42e240a34b7eeacc736f035cc101709141c4786f241f98495654a67f61544a10ce478d WHIRLPOOL f43cc3b836c8d43e6d706d847693bd34a212eb4c4ba3ee698db0f752bf36a7029f81e05664ba3ebbb8190fca414dee3fc109e586fe5e02f1c6263cd6e5bbb8b0
-AUX memcpy-to-memmove.sh 1418 SHA256 08a7203d19ca0d1ecbfaf6c46d915a28e2de81da97e42ef3c56e3d370c380096 SHA512 1686108fc6a1f5438e0d054de55e95829f53e551bb11efbc2632e62cd4432edf93a26dced2409512bbc641d61c840e0d5f241c6716811dbff00f32586f4aaeac WHIRLPOOL 28c8d1cc1f557a812c1bfd078068d7e8fb40604e7060705446d6317dc6e76375cec81190ec42e979f2e6a43516466d0454f45152de31d43f7dd5fc9854db9296
AUX mms.cfg 4420 SHA256 0dd2a9f9aab559243c4d282b5c143ed8876b8d6f8be519bfa8ca6e8fc0c55d9a SHA512 597380071a06176f09df1a56cba24e83a74990c175fe9f167f026eacbf01e66a083d2389ff399ead0a39654a40ae636f8459feed2d6012e51e65c5407fe7fdbd WHIRLPOOL 915b86d717db181a776eb9392aaae2becac4747bc0e551900bfecdeda17f9d0495f54c7173e47adf2ea92567c193c466e302cac78bd2126f10fd9956c204596a
-DIST adobe-flash-11.2.202.297-debug.i386.tar.gz 7401822 SHA256 0a6829a7b43fe2397db508aadd7619d303ca6345127d67a6635c1d9891ddbda8 SHA512 e090cde6345efdcbabc39054bc44f7ed389bd707f03be2b11b2c1fabb0d5822904370bcfdee01eb8d363527780329d73205c961e43d1b483d690ef694f9a4d07 WHIRLPOOL 4858f6858718e499dc8441f6b3ad681854546be83d2fdf261673136f101e69d4808fc859ee99044f7f9bc6aa6fa52efbe6bcfd203cfeda8a49daa2178888097f
-DIST adobe-flash-11.2.202.297.i386.tar.gz 6923530 SHA256 9e20d25df0bc008d02b5fc5d78a972de8f4c7f738e165e3163ef64255611f256 SHA512 8c8770631b4d5ba2094750299ebb379747999af13f32f1d46ebf889eda419da2be889bdeffe72f331ad90e321141a04c12d40de6b9f4bca337450e6725594a8f WHIRLPOOL 59b926bbc36296e2fb0cc43ababa12d7b581e8ac432816107bad596f5260ff0e3d12a94b1669295689f8e26ecb7392b0cecc884aa23550585fc575714a9bf493
-DIST adobe-flash-11.2.202.297.x86_64.tar.gz 7233858 SHA256 085223761c7cc608c60a12851aab8352ec87ae085412566f30f79b6b0a7ed149 SHA512 dfe73e3d6e56dd625ac78a02ac6070b9ca08f76fc312ee8bc7a8c3afb933f256e9f1ea732017ac8cc7526a902d0d98e4de56f78bfa3208a6a17bd67fe0711ae5 WHIRLPOOL 1d7367369281222bc4689e7fe0725483a3f24ee6dfc7344693cf03c5456571c7aa75ecef32e43730ded3fc287a014d62ff34e9ecfa45e153d659c7ea6de7c73d
DIST adobe-flash-11.2.202.310-debug.i386.tar.gz 7403002 SHA256 ac0033a0db826138ba2b6cebc44c3efed8c57c9f696d0aba137f27318ce603b1 SHA512 8d470be8553655091a2bb01e27868b4d5f1cea990b3fc0afff88f2d705365c1d2c7cf6ae82cee35fb53ce265bbd8efc065d3fa9cadb092a96558f6ada4d95705 WHIRLPOOL 5533c98cb7ea2489d922e15d7003c847646abec4941e9fab9835f952166aab50e0ec65a3aae33b3bf486e8c9d4cb4fdd38d9fc5a789731b470c1d414f17e6490
DIST adobe-flash-11.2.202.310.i386.tar.gz 6923724 SHA256 7051aee6bbca66a562c1a8acfa63533744c71cdbe231276f4097462dd24dc061 SHA512 87d340c519e19a4165ff1a16d84b66469707fe49f068da4b717110a8a084a1f35a20c5a7b18e217a40704dfa62ed8f62a929f7894fe1c2fff06a9df612ac2d61 WHIRLPOOL 90ee7bd6c148db110f9e50812587ab0a228daaba13f30477fb718a7e11bfd452cf65dd61d7d635bd46429c1d00179f497ca4322b0bf3953f06152da9bf035f3f
DIST adobe-flash-11.2.202.310.x86_64.tar.gz 7235294 SHA256 f2c7a410b81d044fd619b9bfd5a81522e02fafa1314d61382c21123ae0c9290f SHA512 2882ea869eed270e4b24dc4dffd5e5ac3a3249d6d4e4d985b246314602d72dc3775909dcf43539925b0e821dadf2abade0fd46c4bac068539b71b7a081c0568b WHIRLPOOL 05402df96157bf5237f9265cbaee49aacecef69b6d74018843c2b72a432e80400b924b26b0b3c3e5e88f274f54374575d31a658975a2281dd3a91d049b1924ad
-EBUILD adobe-flash-11.2.202.297.ebuild 7434 SHA256 f409b6fc8c3f0e77f3e130cb4284184b992654226279f80d90f38e87607fb5a8 SHA512 eb2aa9405a959311ad9535990f8646d9e259d76b527f5f8270aa89ec109e65e810fe9b736a8888f097d324c1eb3494d016a46b0ac468c5535a2018532121cb88 WHIRLPOOL a28c9602f74a37f6eb7a6859e589fe8878b2298bd547dee8ee3b66bdcc6bcb53c08e95e5c13c86509f20bc1143985fa23ea005e5cdc25da54e039ad5aea71377
EBUILD adobe-flash-11.2.202.310.ebuild 7324 SHA256 93e7064deaecd96506cebf77a315af5424616caec58db6a60b6699e178e2ac9b SHA512 39dc68a5b2b926287277cd226f54d07208f598be85b388ea020a476b8e4e3e8c8d6b39cf6acfeed5f9815f4339de486cbb4d0fbea338643c5ad4f8df36557474 WHIRLPOOL c594fb3a1cc0ed83b4dae602a74200097b780ec562e10e3945168e5790bfd659088709de5d2ddd6785f7515bfa8e47c912795811b315cd18c0407eb285c69587
-MISC ChangeLog 53258 SHA256 be8c811debc9f8c1aaa4d1c7f8a3dd9f67b5abd4527f7360e8cdf664b133178a SHA512 3a577f74fddaf22461392917c99cd7929d62cb7e57de2788cefa1f73524c5c2c2e213997393267acbbfa7b2348ea117e2d794544480a5576117346c3fe808fd5 WHIRLPOOL aea0cc6d1f3e00283c6b54896532ebbf87170253b09717f199c5fb7f7998244ee56a750c571087dcf6fae1db95c06a24b83b377a77afce78ef057b38c92c7449
+MISC ChangeLog 53373 SHA256 bccd19698155cf0591bc96be12c3ee8859286f8fd6cff3c958091fc0bf24b2dc SHA512 298fc679f3599727a7a818c3fccd441ed817375b69868596853c88de8d54e513b03bd69fc99ef5c3a2b15d887de7a8688eb1971a36fdc4f61344b153c08e2126 WHIRLPOOL 74e999be8b2ac47e711ef79e3d4cac25a41ccc4a953205da47f0edfc1814d3fd6aebd33b9b059ec323bfe5056f2f09d203f8c24d2c7b55829e572b620d1402f8
MISC metadata.xml 616 SHA256 6e1428bd0d59c68629d9d71a04ac2f39cb709ae34f9887d26a04d8dcaafa3e84 SHA512 051cf27faf9edfcd9e5ac12d6936bf87d876bdac9c9389ce414850f77724795401bd4d1d704f45d23a8f0802db1cfa701bbe9384bd94b47879f5c56a50374ff1 WHIRLPOOL 3e8fb952a34307dd571feb013ce5a741d50eeb9420b4a6678e780392bedaecb3e318811a26607f2d4a7717ab2439afb4baccb78f5c01f5c04aa8fc4e33c69ca3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
-iQEcBAEBCAAGBQJSMDHmAAoJECo/aRed9267ou0H/ieXMJN99D5UfEmVrfULCXMl
-pW8VYqkqhzLRokUn/ByLo9HLHgGdgivWArVulFNE4dYqhUMmzQx3rJ4eOBKawvGV
-0M1vt+pnsLKA2KMqXozddrJ6B8Y0bRaJ+HfQCI+IzvHh3nblQ04pzZGqorPSm6JS
-pmJLA+4BNuZHcUEuQOJqZURAadgonJ+CIQWq0wYd8nSx+4v+1xxsul8NJyM+82I2
-ffzAa6wEOe9hnK6YAm4lZ9j2nk/YbCEQeq/eC6xOW2SVSTV9x7EYf9FzOueY7WN6
-Dw3LuiYyA1QrTu4QLvGKNOt8Llano1fyVC0t8+s4PV3RmkgW7TqhdQAGWUNgcm4=
-=DxyU
+iEYEAREIAAYFAlIwcgsACgkQVWmRsqeSphONYACeOrudF0xhpd1izJZXyroW1b+Y
+fQAAnA3T+nat7r9qaElx+vhe4BMcmGAl
+=ebyA
-----END PGP SIGNATURE-----
diff --git a/www-plugins/adobe-flash/adobe-flash-11.2.202.297.ebuild b/www-plugins/adobe-flash/adobe-flash-11.2.202.297.ebuild
deleted file mode 100644
index be37fb18cdff..000000000000
--- a/www-plugins/adobe-flash/adobe-flash-11.2.202.297.ebuild
+++ /dev/null
@@ -1,255 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/adobe-flash-11.2.202.297.ebuild,v 1.3 2013/07/10 05:18:11 ago Exp $
-
-EAPI=5
-inherit nsplugins multilib toolchain-funcs versionator
-
-DESCRIPTION="Adobe Flash Player"
-HOMEPAGE="http://www.adobe.com/products/flashplayer.html"
-
-AF_URI="http://fpdownload.macromedia.com/get/flashplayer/pdc"
-AF_DB_URI="http://fpdownload.macromedia.com/pub/flashplayer/updaters"
-PV_M=$(get_major_version)
-AF_32_URI="${AF_URI}/${PV}/install_flash_player_${PV_M}_linux.i386.tar.gz -> ${P}.i386.tar.gz"
-AF_64_URI="${AF_URI}/${PV}/install_flash_player_${PV_M}_linux.x86_64.tar.gz -> ${P}.x86_64.tar.gz"
-AF_32_DB_URI="${AF_DB_URI}/${PV_M}/flashplayer_${PV_M}_plugin_debug.i386.tar.gz -> ${P}-debug.i386.tar.gz"
-
-SRC_URI="
- x86? (
- !debug? ( ${AF_32_URI} )
- debug? ( ${AF_32_DB_URI} )
- )
- amd64? (
- multilib? (
- 32bit? (
- !debug? ( ${AF_32_URI} )
- debug? ( ${AF_32_DB_URI} )
- )
- 64bit? ( ${AF_64_URI} )
- )
- !multilib? ( ${AF_64_URI} )
- )
-"
-IUSE="-32bit +64bit debug kde multilib selinux sse2 vdpau"
-REQUIRED_USE="sse2"
-SLOT="0"
-
-KEYWORDS="-* amd64 x86"
-LICENSE="AdobeFlash-11.x"
-RESTRICT="strip mirror"
-
-S="${WORKDIR}"
-
-NATIVE_DEPS="x11-libs/gtk+:2
- media-libs/fontconfig
- dev-libs/nss
- net-misc/curl
- vdpau? ( x11-libs/libvdpau )
- kde? ( kde-base/kcmshell )
- >=sys-libs/glibc-2.4"
-
-EMUL_DEPS="vdpau? (
- || (
- x11-libs/libvdpau[abi_x86_32]
- >=app-emulation/emul-linux-x86-xlibs-20110129
- )
- )
- >=app-emulation/emul-linux-x86-gtklibs-20100409-r1
- app-emulation/emul-linux-x86-soundlibs"
-
-DEPEND="amd64? ( multilib? ( !64bit? ( www-plugins/nspluginwrapper ) ) )
- selinux? ( sec-policy/selinux-flash )"
-RDEPEND="x86? ( $NATIVE_DEPS )
- amd64? (
- multilib? (
- 64bit? ( $NATIVE_DEPS )
- 32bit? ( $EMUL_DEPS )
- )
- !multilib? ( $NATIVE_DEPS )
- )
- || ( media-fonts/liberation-fonts media-fonts/corefonts )
- ${DEPEND}"
-
-# Where should this all go? (Bug #328639)
-INSTALL_BASE="opt/Adobe/flash-player"
-
-# Ignore QA warnings in these closed-source binaries, since we can't fix them:
-QA_PREBUILT="opt/*"
-
-any_cpu_missing_flag() {
- local value=$1
- grep '^flags' /proc/cpuinfo | grep -qv "$value"
-}
-
-pkg_setup() {
- if use x86; then
- export native_install=1
- elif use amd64; then
- # amd64 users may unselect the native 64bit binary, if they choose
- # TODO: In future revisions, remove this ability now that 64-bit
- # binaries are officially released and working.
- if ! use multilib || use 64bit; then
- export native_install=1
- else
- unset native_install
- fi
-
- if use multilib && use 32bit; then
- export amd64_32bit=1
- else
- unset amd64_32bit
- fi
-
- if use multilib && ! use 32bit && ! use 64bit; then
- eerror "You must select at least one architecture USE flag (32bit or 64bit)"
- die "No library version selected [-32bit -64bit]"
- fi
-
- unset need_lahf_wrapper
- if [[ $native_install ]]; then
- # 64bit flash requires the 'lahf' instruction (bug #268336)
- if any_cpu_missing_flag 'lahf_lm'; then
- export need_lahf_wrapper=1
- fi
- fi
- fi
-}
-
-src_unpack() {
- if [[ $amd64_32bit ]]; then
- # Since the 32-bit and 64-bit packages collide, put the 32-bit one
- # elsewhere:
- local my_32b_src=${AF_32_URI##*>}
- local my_64b_src=${AF_64_URI##*>}
- if [[ $native_install ]]; then
- unpack $my_64b_src
- fi
- mkdir 32bit
- pushd 32bit >/dev/null
- unpack $my_32b_src
- popd >/dev/null
- else
- default_src_unpack
- fi
-}
-
-src_compile() {
- if [[ $need_lahf_wrapper ]]; then
- # This experimental wrapper, from Maks Verver via bug #268336 should
- # emulate the missing lahf instruction affected platforms.
- $(tc-getCC) -fPIC -shared -nostdlib -lc -oflashplugin-lahf-fix.so \
- "${FILESDIR}/flashplugin-lahf-fix.c" \
- || die "Compile of flashplugin-lahf-fix.so failed"
- fi
-}
-
-src_install() {
- if [[ $native_install ]]; then
- if use x86; then
- local PKGLIB=lib
- else
- local PKGLIB=lib64
- fi
- local BASE=${INSTALL_BASE}
-
- # The plugin itself
- exeinto /${BASE}/flash-plugin
- doexe libflashplayer.so
- inst_plugin /${BASE}/flash-plugin/libflashplayer.so
-
- # The optional KDE4 KCM plugin
- if use kde; then
- exeinto /${BASE}/kde4
- doexe usr/${PKGLIB}/kde4/kcm_adobe_flash_player.so
- dosym /${BASE}/kde4/kcm_adobe_flash_player.so \
- /usr/$(get_libdir)/kde4/kcm_adobe_flash_player.so
- insinto /usr/share/kde4/services
- doins usr/share/kde4/services/kcm_adobe_flash_player.desktop
- else
- # No KDE applet, so allow the GTK utility to show up in KDE:
- sed -i usr/share/applications/flash-player-properties.desktop \
- -e "/^NotShowIn=KDE;/d" || die "sed of .desktop file failed"
- fi
-
- # The userland 'flash-player-properties' standalone app:
- exeinto /${BASE}/bin
- doexe usr/bin/flash-player-properties
- dosym /${BASE}/bin/flash-player-properties \
- usr/bin/flash-player-properties
-
- # Icon and .desktop for 'flash-player-properties'
- for icon in $(find usr/share/icons/ -name '*.png'); do
- insinto /$(dirname $icon)
- doins $icon
- done
- dosym ../icons/hicolor/48x48/apps/flash-player-properties.png \
- usr/share/pixmaps/flash-player-properties.png
- insinto usr/share/applications
- sed -i usr/share/applications/flash-player-properties.desktop \
- -e "s:^Exec=:Exec=/${BASE}/bin/:" || die "sed of .desktop file failed"
- doins usr/share/applications/flash-player-properties.desktop
- fi
-
- if [[ $need_lahf_wrapper ]]; then
- # This experimental wrapper, from Maks Verver via bug #268336 should
- # emulate the missing lahf instruction affected platforms.
- exeinto /${INSTALL_BASE}
- doexe flashplugin-lahf-fix.so
- inst_plugin /${INSTALL_BASE}/flashplugin-lahf-fix.so
- fi
-
- if [[ $amd64_32bit ]]; then
- # Only install the plugin, nothing else for 32-bit.
- local oldabi="${ABI}"
- ABI="x86"
-
- # 32b plugin
- pushd "${S}/32bit"
- exeinto /${INSTALL_BASE}32
- doexe libflashplayer.so
- inst_plugin /${INSTALL_BASE}32/libflashplayer.so
- popd
-
- ABI="${oldabi}"
- fi
-
- # The magic config file!
- insinto "/etc/adobe"
- doins "${FILESDIR}/mms.cfg"
-}
-
-pkg_postinst() {
- if use amd64; then
- if [[ $need_lahf_wrapper ]]; then
- ewarn "Your processor does not support the 'lahf' instruction which is used"
- ewarn "by Adobe's 64-bit flash binary. We have installed a wrapper which"
- ewarn "should allow this plugin to run. If you encounter problems, please"
- ewarn "adjust your USE flags to install only the 32-bit version and reinstall:"
- ewarn " ${CATEGORY}/$PN[+32bit -64bit]"
- elog
- fi
- if has_version 'www-plugins/nspluginwrapper'; then
- if [[ $native_install ]]; then
- # TODO: Perhaps parse the output of 'nspluginwrapper -l'
- # TODO: However, the 64b flash plugin makes
- # TODO: 'nspluginwrapper -l' segfault.
- local FLASH_WRAPPER="${ROOT}/usr/lib64/nsbrowser/plugins/npwrapper.libflashplayer.so"
- if [[ -f ${FLASH_WRAPPER} ]]; then
- einfo "Removing duplicate 32-bit plugin wrapper: Native 64-bit plugin installed"
- nspluginwrapper -r "${FLASH_WRAPPER}"
- fi
- else
- einfo "nspluginwrapper detected: Installing plugin wrapper"
- local oldabi="${ABI}"
- ABI="x86"
- local FLASH_SOURCE="${ROOT}/${INSTALL_BASE}32/libflashplayer.so"
- nspluginwrapper -i "${FLASH_SOURCE}"
- ABI="${oldabi}"
- fi
- elif [[ ! $native_install ]]; then
- elog "To use the 32-bit flash player in a native 64-bit browser,"
- elog "you must install www-plugins/nspluginwrapper"
- fi
- fi
-}
diff --git a/www-plugins/adobe-flash/files/memcpy-to-memmove.sh b/www-plugins/adobe-flash/files/memcpy-to-memmove.sh
deleted file mode 100644
index b1632e583484..000000000000
--- a/www-plugins/adobe-flash/files/memcpy-to-memmove.sh
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/sh
-# Quick and dirty, but inefficient shellscript that
-# turns all memcpy calls into memmove calls
-# From Ray Strode
-
-set -e
-
-INPUT="$1"
-
-MEMCPY=0x$(objdump -S -j .plt $INPUT | grep memcpy |awk '{ print $1 }')
-[ $MEMCPY = "0x" ] && echo "Can't find memcpy call in $INPUT PLT" 1>&2 && exit 1
-
-MEMMOVE=0x$(objdump -S -j .plt $INPUT | grep memmove |awk '{ print $1 }')
-[ $MEMMOVE = "0x" ] && echo "Can't find memmove call in $INPUT PLT" 1>&2 && exit 2
-
-DELTA=$(($MEMMOVE - $MEMCPY))
-MEMCPY="$(printf '%x' $MEMCPY)"
-
-TEMP_OUTPUT="$(mktemp)"
-trap "rm -f $TEMP_OUTPUT" ERR
-
-cp $INPUT $TEMP_OUTPUT
-objdump -S -j .text $INPUT | while read offset e8 byte1 byte2 byte3 byte4 call call_offset rest; do
- test "$call_offset" = "$MEMCPY" || continue;
-
- OFFSET=$(printf "0x%x" $((0x${offset%:} + 1)))
- NUMBER="0x${byte4}${byte3}${byte2}${byte1}"
- echo -n "Changing call at offset $OFFSET from [${byte1} ${byte2} ${byte3} ${byte4}]"
- NUMBER=$(printf "0x%08x" $(($NUMBER + $DELTA)))
-
- BYTE1=$(printf "%02x" $((($NUMBER >> 24) & 0xff)))
- BYTE2=$(printf "%02x" $((($NUMBER >> 16) & 0xff)))
- BYTE3=$(printf "%02x" $((($NUMBER >> 8) & 0xff)))
- BYTE4=$(printf "%02x" $((($NUMBER >> 0) & 0xff)))
-
- echo " to [${BYTE4} ${BYTE3} ${BYTE2} ${BYTE1}]"
- echo -ne "\x$BYTE4\x$BYTE3\x$BYTE2\x$BYTE1" | dd of=$TEMP_OUTPUT bs=1 seek=$(($OFFSET)) count=4 conv=notrunc 2> /dev/null
-done
-
-mv $TEMP_OUTPUT $INPUT