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 Fri 24 Oct 2014, 21:44
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 Posts_count  
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  216 Time(s) 
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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