Repo Maker Script - Help

Here is a little Help if you are useing my Repo Maker Script
a changelog can be found here

Introduction

Repo Maker Script is a little bash script to help you creating your own Cydia Repository

main features are, creating a new repo, making new folders for Apps, Themes and SBSettings Themes, bulk creating deb's and of course upload and update the files to your server (config file needed)

How To's

Here is how to use the script basically

the first thing you have to do after downloading it is to run the script with the -install option, this creates all needed files and folders for you.

cd Downloads
./repo -install

will create the working dirs for the script:
/apt
/apt/apps
/apt/upload
/apt/upload/deb
/apt/updatedebs

If you dont have Fink installed you can get it here: or simple use the dpkg package provided by the scrpts command -getdpkg if you have Fink installed you can skipp this step

to get dpkg from the script you can just type (if you run -install first)

sudo su
repo -getdpkg

the script than downloads the provided package and installs it to /usr/bin (uninstall with -deldpkg)

Now you are ready to use the script

Edit Config

The Script needs a config file for the upload/update and the Despiction functions. This file is normaly generatet when you install the script, but if you have to edit or delete it you can do so, too

to edit an existinng content file (or even make a new one) just type:

repo -conf

and follow the instructions on the screen.

Attention!!!
The config file should look like this:

FTP Server, User and Pass should be your Server, User and Pass
If you are useing a Subdirectory fill it in, if not leave the Sub Dir blank...
Descpiction Path should be the http path to depiction dir ex: http://cytec.us/depictions WITHOUT ending /
Repo GUI, if u hafe a Repo GUI fill in the Identifier of Package ex: us.cytec.repogui
Package id shlould be your Identifier prefix, in my case: us.cytec
Website is the URL to your Website
and Maintainer MUST be in this Format: name <your@mail.com>

You also can edit the config file manually, by typing

open /apt/.data.conf

Here is an example config File:

FTPSERVER="your.server.com"
FTPUSER="username"
FTPPASS="password"
FTPDIR=""
REPOURL="http://cytec.us/depictions"
REPOGUI="us.cytec.repogui"
PKGID="us.cytec"
WEBSITE="http://cytec.us"
MAINTAINER="cytec <cytec@antropie.biz>"


If you have to delete your config file you can do it by type:

repo -delconf

Make new Repo

You also can make a complete new Repository with this script, it generates all the files needed (release, Packages etc.) to make a new Release file for your Repo just type:

repo -new

Then fill in the asked Informations and the script creates the file in /apt/upload for you. For how to use upload/update command please look here

Upload new Repo

So if you createt a new Repo, and also added the first Packages to it, how did you get it to your server? well the answer is very simple ;)
after you createt the Repo release and also have the deb's createt already, just use the -upload command

repo -upload

Note that for this option its neccessary that you have an config file, if no config file is found, the script asks you to create one.
after this the script uploads all your recently generatet stuff to your ftp server.

How ever, if you just added a new deb to your repo, or updated something i recommend you to use the update function, because it uploads only the changes that where made last

Update existing Repo

You createt a Repo and now have to add some new deb's to it, wouldn´t it be nice to just update the changes without haveing to upload all the stuff again? Right, thats what the update command does ;)

if you createt a new Package by the -b command, this is stored temporary in a folder that is used by the update command.

repo -update

Checks the updatedebs folder for debs and uploads these and the new Packages files to your ftp server

Update the Script

I provide a intern update function for my script, so you dont have to check my website if there is a new release or not.

repo -u

checks my server if there is a update availible and downloads it if found

There is also a Beta version of the script, which can be downloaded with the -beta command, if you are on a Beta, you can go back to stable release with -stable