Browse Source

cleaned gzip.conf incl. the gzexe path fix

git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2287 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 21 years ago
parent
commit
1b8d7f477f
1 changed files with 11 additions and 5 deletions
  1. +11
    -5
      package/base/gzip/gzip.conf

+ 11
- 5
package/base/gzip/gzip.conf

@ -21,12 +21,18 @@
# --- ROCK-COPYRIGHT-NOTE-END ---
pm_move_to_bin() {
echo "$root/usr/bin/{gzip,gunzip,zcat} -> $root/bin/"
rm -f $root/bin/gzip $root/bin/gunzip $root/bin/zcat
cp $root/usr/bin/gzip $root/bin/
# move gzip to /bin and create gunzip/zcat links
mv -vf $root/usr/bin/gzip $root/bin/
rm -f $root/bin/{gunzip,zcat} $root/usr/bin/{gunzip,zcat}
ln $root/bin/gzip $root/bin/gunzip
ln $root/bin/gzip $root/bin/zcat
rm -f $root/usr/bin/gzip $root/usr/bin/gunzip $root/usr/bin/zcat
# correct the path used in the gzexe script
cp $root/usr/bin/gzexe{,.orig}
sed 's,"/usr/bin"/gzip,"/bin"/gzip,g' < $root/usr/bin/gzexe.orig \
> $root/usr/bin/gzexe
rm -f $root/usr/bin/gzexe.orig
}
postmake="pm_move_to_bin"
hook_add postmake 5 "pm_move_to_bin"

Loading…
Cancel
Save