Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 30 Jul 2014, 15:19
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Need help with modified package installer script
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
Todd

Joined: 31 Aug 2006
Posts: 310

PostPosted: Fri 13 Jul 2007, 10:42    Post subject:  Need help with modified package installer script  

I am trying to create a modified install script for iPup (http://www.ipup.info/).

This is how far I have gotten, but now I need some help:

Code:
DLG1="
  while [ 1 ];do
   #MU suggested add the 'tail -n 1'...
   ALIENFILE="`Xdialog --title "$MSG9" --stdout --no-buttons --fselect "/root/*" 0 0 | tail -n 1`"
   if [ ! $? -eq 0 ];then
    exit
   fi
   if [ -f $ALIENFILE ];then
    break
   fi
  done
  sync
  cp -af $ALIENFILE /root/.packages/ #copy, leave original.
  sync
  cd /root/.packages
  APKGNAME="`basename $ALIENFILE`"
  #v2.13 test if enough space to expand tarball...
  #EXPFREEK=`df -k | grep ' /$' | tr -s ' ' | cut -f 4 -d ' '`
  EXPFREEB=`stat --filesystem --format=%f /` #no. free blocks.
  EXPFILEB=`stat --format=%b $APKGNAME` #no. blocks.
  EXPNEEDB=`expr $EXPFILEB \* 5` #bz2 can expand up to x3, need twice temp space.
  if [ $EXPNEEDB -gt $EXPFREEB ];then
   if [ ! "$DISABLEDX" = "yes" ];then
    gxmessage -center -name "pet" -bg "#ff8080" -title "PETget: ERROR" "The $APKGNAME package has been downloaded to /root/.packages,
however there is not enough room to uncompress and install it.
The free space is $EXPFREEB blocks but it is estimated you will
need $EXPNEEDB blocks temporarily for the expansion and install.


What I am trying to do is create a script for installing alien packages only with the intent that this script will replace the "petget" script (/usr/sbin/) in iPup.

Todd
Back to top
View user's profile Send private message 
Todd

Joined: 31 Aug 2006
Posts: 310

PostPosted: Fri 13 Jul 2007, 18:42    Post subject: Never mind. . .  

Never mind, I did it. . .

Todd
new_installer.tar.gz
Description 
gz

 Download 
Filename  new_installer.tar.gz 
Filesize  12.54 KB 
Downloaded  215 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0456s ][ Queries: 12 (0.0053s) ][ GZIP on ]