Author Topic: Setting up a local package feed  (Read 1814 times)

pauln

  • Newbie
  • *
  • Posts: 2
    • View Profile
Setting up a local package feed
« on: February 03, 2004, 04:26:30 am »
Hi,

I was wanting to setup a local package feed on my PC, for my 5500, either a WinXP or Linux PC, I have access to both.  However all the docs when I google seem to point to servers that are no longer around.  Does anyone have the info to hand or know where I can get hold of it.

Thanks

Paul.

lpotter

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
    • http://qtopia.net
Setting up a local package feed
« Reply #1 on: February 04, 2004, 05:33:14 am »
there is a script named mkPackages in opie and also in qtopia that can be run in a dir with ipkg and create the Packages file needed for the feed.
Code: [Select]
#!/bin/sh                                                                                                                                                                            

                                                                                                                                                                                      

# for each package in current directory, scan and create a Packages file                                                                                                              

# describing the ipkgs in the current directory                                                                                                                                      

                                                                                                                                                                                      

for i in *.ipk                                                                                                                                                                        

do                                                                                                                                                                                    

        packagename=${i%%_*}                                                                                                                                                          

        #echo >&2 "$packagename..."                                                                                                                                                  

        GOOD=y                                                                                                                                                                        

        for other in ${packagename}_*.ipk                                                                                                                                            

        do                                                                                                                                                                            

            if [ $i != $other -a $other -nt $i ]                                                                                                                                      

            then                                                                                                                                                                      

                GOOD=                                                                                                                                                                

                break                                                                                                                                                                

            fi                                                                                                                                                                        

        done                                                                                                                                                                          

        if [ -n "$GOOD" ]                                                                                                                                                            

        then                                                                                                                                                                          

            tar xfOz $i ./control.tar.gz | tar xfOz - ./control                                                                                                                      

            echo                                                                                                                                                                      

        else                                                                                                                                                                          

            echo >&2 "Deleting old file: $i ($other is newer)"                                                                                                                        

            rm $i                                                                                                                                                                    

        fi                                                                                                                                                                            

done >Packages
Software Engineer, Systems Group, MES, Trolltech
irc.freenode.net #qtopia
http://qtopia.net