Personal tools
ViewsHow To Create A Cydia RepositoryFrom ModMyi - WikiThis guide is reprinted with permission from its original author, maXimus, which was posted here first. After spending a lot of time searching the internet for a guide on how to set up a Cydia Repository, and not finding any one thing totally useful, I decide to consolidate everything I learned from my readings and from my conversations with persons familiar with Cydia and/or Debian APT into one easy-to-understand guide. I have tried to make this guide as simple and straight-forward as possible but you need to already have some good computer skills to attempt this. This guide has 20+ screenshots. Some might say it's too many and some might say it's not enough! Personally, I like screenshots. I prefer to know what I should be seeing rather than to assume what I am doing is correct. Some of the screenshots are from Linux and some are from Windows. I will do my best to alert you as to which is which, but it should be obvious. This thread will be closed for posting but if you have questions or comments, please open a new thread. I will try to update this guide as things progress so feel free to alert me to changes.
[edit] I. CreditsJay Freeman (saurik) - http://www.saurik.com - for writing Cydia and writing the first guide on setting up a Cydia repository. Kyle Matthews (poetic_folly) - ModMyi.com - for showing me how to build .deb files with the iPhone! Who knew the iPhone could do more than make calls!?!? MrBucket101 - iPhoneModding.com - for teaching me the basics of Linux and for his script-writing skills. [edit] II. Needed before beginning1. Internet access - the faster the better! 2. A computer with Linux/Ubuntu 8.10 installed - you can partition your hard drive and set up your computer to dual-boot your current operating system and Linux like I did. You could also run it from a virtual machine. Google is your friend on these subjects. I won't get into them here. BTW, I'm using version 8.10. 3. A website - where you have FTP access for hosting the repository. 4. THIS package - it contains files that you will copy to two directories on your Linux machine. 5. Your app or theme - for the purpose of this guide, I will be using a fictitious theme called MyProgram. 6. A fair amount of patience and time!
[edit] III. Please read!How to Host a Cydiaâ„¢ Repository by Jay Freeman (saurik) [edit] IV. Creating the Repo[edit] Step 1You need to have an app or theme that you want to put on your repo for others to install. *At this point I am working from Windows 7 although you may work from whatever OS makes you comfortable. Example 1 In the example below I have created a theme called MyProgram. I have created a folder with the same name which will contain all the files. In that folder is a sub-folder called DEBIAN (all caps). Every app or theme will have this folder. The control file, which we will discuss later, is located here. The other subfolder Library is configured exactly how you want the files to appear on your iPhone. In the following example the iPhone will get a new Phone icon, a new Settings icon, a new dock and finally a new springboard wallpaper.
Example 2 In this example I have created a fictitious app and LaunchDaemon to install on the phone. As you can see, the DEBIAN folder with control file is there as required.
[edit] Step 2The control file is a text file with name and value pairs separated by a colon.
Here are brief descriptions of each field:
*At this point, I switched over to Linux. [edit] Step 3Download the zipped archive with the two files to extract to the Desktop.
[edit] Step 4After extracting the files from the archive, you should have a folder with two files: dpkg-scanpackages
[edit] Step 5Now open a Terminal window. In Terminal you'll copy the two files to their respective locations.
[edit] Step 6Type the following commands ("sudo" is necessary since will need to run as administrator) to copy the dpkg-scanpackages file to the /usr/bin folder and make it executable: sudo cp /home/username/Desktop/cydia-repo/dpkg-scanpackages /usr/bin
[edit] Step 7Notice that after running the first command, you'll be prompted for your password before continuing to the second.
[edit] Step 8Type the following commands to copy the dpkg-gettext.pl file to the /etc/perl folder and make it executable: sudo cp /home/username/Desktop/cydia-repo/dpkg-gettext.pl /etc/perl
Here is the /usr/bin folder:
Here is the /etc/perl folder:
[edit] Step 9Now create a folder called cydia in your home folder (or where ever you want, just be sure to make appropriate changes where necessary).
[edit] Step 10In the upload sub-folder, create a sub-folder called deb for your packages .deb files.
[edit] Step 11Place your app or theme in the apps folder.
[edit] Step 12Open Terminal again and type the following commands to change to the apps directory and build the .deb file: cd /home/username/cydia/apps *You must type the package name exactly as it appears in the name of the directory (capitalization counts).
Browse to your apps folder and you will see the newly created .deb file:
[edit] Step 13Move the .deb file to the /home/username/cydia/upload/deb sub-folder.
[edit] Step 14Go back to Terminal and type the following commands to build the Packages file: cd /home/username/cydia/upload
[edit] Step 15Browse to the upload folder and you should find your Packages file.
[edit] Step 16Right-click the Packages file and choose Open with "Text Editor" so you can see the contents of the file. Check that Filename: says ./deb/MyProgram.deb. This is important since it will be the location of your .deb files on your repository.
[edit] Step 17Right-click the Packages file and choose "Create archive...". ***IT SAYS .gz BUT IT MUST BE .BZ2 TO WORK***
Now you shoud have a Packages.bz2 archive. You can upload all three files to your website repo easily from Linux.
*At this point I returned to Windows 7. [edit] Step 18Create a text file called Release with your repository information.
Here are brief descriptions of each field:
[edit] Step 19Upload the Release file to your repository to the same location as the deb folder, Package file and Package.gz archive.
[edit] Step 20Now you should test your repo in Cydia. Open Cydia and select Manage at the bottom of the screen. Now select Sources, Edit then Add. Here you will put the URL of your repository. Once you've correctly entered the information, click Add Source. If all goes well, your repository will appear in the list of Entered by User!
Best of luck! |





