On 9/13/12 2:40 PM, William G. Scott wrote:
> 
> On Sep 13, 2012, at 2:36 PM, Hanspeter Niederstrasser 
> <f...@snaggledworks.com> wrote:
> 
>> On 9/13/2012 5:31 PM, William G. Scott wrote:
>>>
>>>
>>>
>>> On Sep 13, 2012, at 2:00 PM, Alexander Hansen <alexanderk.han...@gmail.com> 
>>> wrote:
>>>
>>>> On 9/13/12 1:10 PM, William G. Scott wrote:
>>>>> I would like to do this to reduce a 3.3 GB text file database to 1.1 GB:
>>>>>
>>>>>
>>>>> PostInstScript: <<
>>>>> mv %p/share/xtal/ccp4-%v/share/BALBES/Package  
>>>>> %p/share/xtal/ccp4-%v/share/BALBES/Package.tmp
>>>>> /usr/bin/ditto --hfsCompress 
>>>>> %p/share/xtal/ccp4-%v/share/BALBES/Package.tmp   
>>>>> %p/share/xtal/ccp4-%v/share/BALBES/Package/bin/rm -rf 
>>>>> %pshare/xtal/ccp4-%v/share/BALBES/Package.tmp
>>>>> <<
>>>>>
>>>>>
>>>>> Thanks.
>>>>>
>>>>> Bill
>>>>>
>>>>>
>>>>>
>>>>
>>>> I assume that whatever needs this datafile knows how to decompress it to
>>>> read it?  Or at least there will be some user instructions?
>>>>
>>>> As long as -hfsCompress is supported by ditto on all platforms you're
>>>> planning to update I can't think of a good reason why not to do that.
>>>>
>>>> --
>>>> Alexander Hansen, Ph.D.
>>>> Fink User Liaison
>>>> My package updates: http://finkakh.wordpress.com/
>>>
>>> Hi Alexander:
>>>
>>> HFS compression just stuffs data into the resource fork.  From what I 
>>> understand, many of the ascii system files are HFS-compressed since 10.6.  
>>> It is completely transparent to whatever program reads the files.  The only 
>>> way I can detect it is to use du on the directory of HFS-compessed files.  
>>> With textiles like these that have lots of white space (protein data bank 
>>> files), it gives about a factor of 3 compression.
>>
>> Why PostInstScript and not CompileScript or InstallScript?  In 
>> PostInstScript, the deb gets stuck having to deal with the 3.3GB file.
>>
>> Hanspeter
> 
> I tried.  It didn't work.  I wound up with a the original 3.3 GB directory 
> size.  When I do it in the post-install script (it didn't get stuck), I wind 
> up with a 1.1 GB directory size.
> 
> I assume that is because of how the debian utilities handle the copying from 
> the deb file to the disk, but I really don't know.
> 
> 
>>
>>
> 

I guess you could bzip or gzip the text file during the
Compile/InstallScript if you want to make the .deb smaller, and then
undo that and HFS compress it in PostInst to make the file smaller for
runtime.

-- 
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to