tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkgsrc/mk/extract/extract
Hi,
I have a question about pkgsrc/mk/extract/extract- script...
I tried to extract "OpenFoam-1.7.1.gtgz" for work on a package but that didn't
work directly.
After I modified pkgsrc/mk/extract/extract it seems to work but I don't know if
that is a _clean_ way to do the job.
If that _is_ a clean way could that be imported into pkgsrc?
Backround:
My question at the software-distributor was answered as following...
------------------
> why are you use *.gtgz instead *.tgz or *.tar.gz for your
> OpenFoam-archive?
Because we specifically require the use of GNU tar rather than the system tar on
Solaris and other non-GNU UNIX operating systems. The reason for this is that
ancient tar implementations have a built-in path length limit of typically 99
characters and this is not sufficient for packing OpenFOAM. If SUN, IBM, HP
etc. can be persuaded to give-up their legacy UNIX operating systems and adopt
Linux or at least drop their ancient UNIX utilities and ship the GNU versions
these issues will disappear.
> I want work on a package that make OpenFoam available for pkgsrc-users.
The name of the file is simply a convention, you can unpack it with:
tar -xzf file.gtgz
-----------------
I attached a diff with my changes from pkgsrc/mk/extract/extract to this mail.
Greetings,
Helge
--
GMX DSL SOMMER-SPECIAL: Surf & Phone Flat 16.000 fÃr nur 19,99 Euro/mtl.!*
http://portal.gmx.net/de/go/dsl
--- extract 2010-09-04 11:03:14.000000000 +0200
+++ extract.bak 2010-09-04 11:01:53.000000000 +0200
@@ -179,7 +179,7 @@ esac
# Derive the compression format of the archive based on the file extension.
case "$distfile" in
-*.gz|*.tgz|*.gtgz|*.z) _cformat=gzip ;;
+*.gz|*.tgz|*.z) _cformat=gzip ;;
*.bz2|*.tbz|*.tbz2|*.bz) _cformat=bzip ;;
*.lzma) _cformat=lzma ;;
*.xz) _cformat=xz ;;
@@ -202,7 +202,7 @@ esac
# Derive the format of the archive based on the file extension.
case "$distfile" in
-*.tar.gz|*.tgz|*-tar.gz|*_tar.gz|*.tar.bz2|*.tbz|*.tbz2|*.tar.lzma|*.tar.xz|*.tar.Z|*.tar.z|*.tar|*.tar.bz|*.gtgz)
+*.tar.gz|*.tgz|*-tar.gz|*_tar.gz|*.tar.bz2|*.tbz|*.tbz2|*.tar.lzma|*.tar.xz|*.tar.Z|*.tar.z|*.tar|*.tar.bz)
_format=tar ;;
*.cpio|*.cpio.gz|*.cpio.bz2)
_format=cpio ;;
Home |
Main Index |
Thread Index |
Old Index