Page 17 of 51 FirstFirst ... 7121314151617181920212227 ... LastLast
Results 161 to 170 of 504

Thread: How to create a Cydia Repository

  1. #161
    Join Date
    Feb 2008
    Posts
    1,431
    Thanks
    16
    Thanked 164 Times in 132 Posts
    Downloads
    39
    Uploads
    9

    Default

    Quote Originally Posted by Retoocs View Post
    Thanks MrBucket101 for fast replay! Do you maybe know how to do that? Do i need change something in Packages text file or in .deb/X.deb file?
    the bundle identifier is in your control file.

    create a generic scheme and stick to it, i use com.bucket.<packageName>, try something similar.

  2. #162
    Join Date
    Jun 2010
    Location
    /Library/MobileSubstrate/DynamicLibraries
    Posts
    15
    Thanks
    1
    Thanked 3 Times in 1 Post
    Downloads
    1
    Uploads
    0

    Default

    Quote Originally Posted by MrBucket101 View Post
    the bundle identifier is in your control file.

    create a generic scheme and stick to it, i use com.bucket.<packageName>, try something similar.
    Ok, i will try that. Thanks for help MrBucket101 !!!
    Hidden Content iPhone 3G 8GB 3.0 OS RedSn0w JB

    Mobile Substrate addons: ActionMenu, Activator, Backgrounder, CategoriesSB, CyDelete, Downloader, FCSB, GPSSerialHook, GPower, IconSupport, Infinidock, Kirikae, MemoryTap, MobileLogLib, Panorama, PreferenceLoader, SmsHelper, SpringLocker, UAFaker, WinterBoard, YourTube, iPhoneDeliveryMS, libhide, notifier, toneFXinject, yfiselect

  3. #163
    Join Date
    Jun 2010
    Location
    /Library/MobileSubstrate/DynamicLibraries
    Posts
    15
    Thanks
    1
    Thanked 3 Times in 1 Post
    Downloads
    1
    Uploads
    0

    Cool Script for automatic control file edit, updating repository and upload to server

    Ok.. Here is the thing. After aprox 5 days expereiance with Ubuntu, Terminal (commands) and other stuff in this tutorial and posts i have create script for easy editing control file, updating Package file and uploading it on server...

    Everyone must change script with own information. I will put example script and explain what is needed to be changed...

    All this is for existing .deb files (for changing control file, app icons, plist's...), this is not for creating new app/theme package.



    Code:
    #!/bin/bash
    echo "********** REPO CONTROL SCRIPT **********"
    echo "******* CLOSE GEDIT TEXT EDITORS! *******"
    echo "*                                       *"
    
    cd /home/user/Documents
    mkdir -p Original_debs
    mkdir -p Output_debs
    mkdir -p tmp/DEBIAN
    echo -n "Name of File with extension (Example: program.deb) > "
    read FILE
    cp $FILE /home/user/Documents/Original_debs/
    dpkg-deb -x $FILE tmp/
    dpkg-deb --control $FILE tmp/DEBIAN
    echo "DEPACKAGING DONE. OPENING CONTROL FILE FOR EDIT..."
    cd /home/user/Documents/tmp/DEBIAN
    gedit control
    cd /home/user/Documents/
    echo "EDITING DONE."
    
    echo "REPACKAGING..."
    dpkg-deb -b tmp $FILE
    cp $FILE /home/user/Desktop/repository/deb/
    rm -r tmp/
    echo "REPACKAGING COMPLETE. TEMP FILES REMOVED."
    
    
    echo "REBUILDING REPOSITORY INFORMATION..."
    
    cd /home/user/Desktop/repository/
    dpkg-scanpackages -m . /dev/null | bzip2 -9c >Packages.bz2
    dpkg-scanpackages -m . /dev/null | gzip -9c >Packages.gz
    
    echo "REBUILDING REPOSITORY INFORMATION COMPLETE."
    
    
    echo "FTP PROCESS IN PROGRESS...UPDATING REPOSITORY..."
    ftp -n  my.webhost.com<<END_SCRIPT
    quote USER username
    quote PASS password
    cd public_html
    cd deb
    lcd /home/user/Desktop/repository/deb/
    put $FILE
    cd ..
    lcd /home/user/Desktop/repository/
    put Packages.bz2
    put Packages.gz
    put Release
    by
    END_SCRIPT
    echo -n "FTP PROCESS DONE. "
    
    cd /home/user/Documents/
    mv $FILE /home/user/Documents/Output_debs/
    cd /
    echo "REPOSITORY UPDATED!"
    
    echo "*                                       *"
    echo "********** REPO CONTROL SCRIPT **********"
    Expalin of some lines:

    ***** These lines must be changed if you using diferent folders on your PC/Server *****
    LOCAL:

    /home/user/Documents -> this is folder where i put .deb file that i want to change
    /home/user/Desktop/repository/ -> this my local repository folder (where i put Release, Package.bz2 and Package.gz)
    /home/user/Desktop/repository/deb/ -> this is folder where i put changed .deb file that will be on repository (on server)

    SERVER:

    cd public_html -> folder on server where you put Release, Package.bz2/Package.gz
    cd deb -> folder on server where you put .deb files
    NOTE: (Release file and deb folder must be created first wit some ftp or web client)


    ***** These lines must be changed with your webhost account information *****

    my.webhost.com -> replace with your webhost adress
    username -> replace with your user name for your webhost account
    password -> replace with your password for that user name


    ***** Other folders *****

    /home/user/Documents/
    Output_debs/ -> where i put backup of changed .deb files
    /home/user/Documents/Original_debs/ -> where i put backup of original .deb files



    ***** Script activation *****
    After you change all necessary lines open terminal and type:

    cd /bin
    sudo nano repocontrol
    enter your password
    copy/paste all lines in terminal
    save and close (CTRL+O = save, CTRL+X = close for those who don't know)
    type sudo chmod +x repocontrol
    enter your password (if it appeared)

    And that's it!!! Next time when you whant to change something in original package copy .deb file in /home/user/Documents (see above info) open terminal, type repocontrol and follow instruction on screen.



    IMPORTANT:
    ************
    Before starting script all gedit text editors must be closed. If there not, script will continue after line gedit control and changes to control file will not apply. If you follow that rule your script will be working fine.

    While control file is open for editing you my use this time to change something else you want for that .deb (.plist, icons...) file. All decompressed files is in /home/user/Documents/tmp/ . When all changes are completed save control file and close gedit and script will continue working.
    ************

    I hope it will be useful to someone...


    P.S. Sorry for my bad English...
    Last edited by Retoocs; 06-08-2010 at 01:39 PM.
    Hidden Content iPhone 3G 8GB 3.0 OS RedSn0w JB

    Mobile Substrate addons: ActionMenu, Activator, Backgrounder, CategoriesSB, CyDelete, Downloader, FCSB, GPSSerialHook, GPower, IconSupport, Infinidock, Kirikae, MemoryTap, MobileLogLib, Panorama, PreferenceLoader, SmsHelper, SpringLocker, UAFaker, WinterBoard, YourTube, iPhoneDeliveryMS, libhide, notifier, toneFXinject, yfiselect

  4. The Following 3 Users Say Thank You to Retoocs For This Useful Post:

    malni63 (10-02-2010),maXimus (06-12-2010),Vendeta34 (07-15-2011)

  5. #164
    Join Date
    Feb 2008
    Location
    18º24'N ~ 66º05'W
    Posts
    11,479
    Thanks
    503
    Thanked 1,251 Times in 854 Posts
    Downloads
    165
    Uploads
    738

    Default

    Retoocs, this is really good info that I am definitely going to have to experiment with. I am always looking for better ways to automate the repo process. Great job!

  6. #165
    Join Date
    May 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Downloads
    5
    Uploads
    0

    Default

    Hey, so far i have followed all your instructions but when i get up to this step the following occurs:

    ubuntu@ubuntu:~/cydia/upload$ dpkg-scanpackages -m . /dev/null | gzip -9c >Packages.gz
    bash: /usr/bin/dpkg-scanpackages: Permission denied
    ubuntu@ubuntu:~/cydia/upload$

    Could you please tell me what i have done wrong and in simple terms as i am a noob at this stuff haha

  7. #166
    Join Date
    Feb 2008
    Location
    18º24'N ~ 66º05'W
    Posts
    11,479
    Thanks
    503
    Thanked 1,251 Times in 854 Posts
    Downloads
    165
    Uploads
    738

    Default

    Are you logged in as administrator? Try typing "sudo" first. It should prompt you for your password. It's definitely a Linux issue and not a repo issue.

  8. #167
    Join Date
    May 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Downloads
    5
    Uploads
    0

    Default

    hi thanks for responding earlier, appreciate it . I have been reading through these pages and alot of the times it says to run as administrator while creating .debs etc. Could you please explain to me what you mean by this? thanks.

  9. #168
    Join Date
    Feb 2008
    Location
    18º24'N ~ 66º05'W
    Posts
    11,479
    Thanks
    503
    Thanked 1,251 Times in 854 Posts
    Downloads
    165
    Uploads
    738

    Default

    In Step 5 make sure you ran "sudo" before the commands like it says in the instructions to run as administrator.

  10. #169
    Join Date
    May 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Downloads
    5
    Uploads
    0

    Default

    thank-you so much maXimus i really appreciate it

  11. #170
    Join Date
    May 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Downloads
    5
    Uploads
    0

    Default

    hi, when i preview the deb file, it says that the architecture is wrong, is this normal or not? thanks.

Thread Information

Users Browsing this Thread

There are currently 3 users browsing this thread. (0 members and 3 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •