Difference between revisions of "Releasing Contribs"
m (oops... typo) |
m (Aargh... plural) |
||
Line 7: | Line 7: | ||
For consistency between contribs it's suggested that you follow these guidelines | For consistency between contribs it's suggested that you follow these guidelines | ||
− | <ol></li><li>Announce your new rpm on the [http:// | + | <ol></li><li>Announce your new rpm on the [http://forums.contribs.org forum], make the subject similar to below |
[ANNOUNCE] rpm name | [ANNOUNCE] rpm name | ||
− | </li><li>Submit a bug to the [http://bugs.contribs.org | + | </li><li>Submit a bug to the [http://bugs.contribs.org bugtracker], for SME Contribs, asking for a new component to be added with your rpm name. Include links to download your rpm including your source RPM. Include a short description, perhaps the description from the spec file,</li></ol> |
Your contrib should preferably be in the [http://mirror.contribs.org/smeserver/releases/7/smedev/i386/repodata/ SME Dev] repository, see below for how to obtain access. | Your contrib should preferably be in the [http://mirror.contribs.org/smeserver/releases/7/smedev/i386/repodata/ SME Dev] repository, see below for how to obtain access. |
Revision as of 13:23, 14 August 2007
Releasing Contribs
Writing
The Developers Manual has information required to write a contrib for SME Server
Releasing
For consistency between contribs it's suggested that you follow these guidelines
- Announce your new rpm on the forum, make the subject similar to below [ANNOUNCE] rpm name
- Submit a bug to the bugtracker, for SME Contribs, asking for a new component to be added with your rpm name. Include links to download your rpm including your source RPM. Include a short description, perhaps the description from the spec file,
Your contrib should preferably be in the SME Dev repository, see below for how to obtain access.
SME Extras Repositories
The SME Extras repository will contain RPMs that have been through a review process, RPMs in the SME Extras repository will be able to be installed directly from the Software Installer panel in the server-manager. Currently the SME Extras repository does not hold any contribs, but this will change in the future.
Sumitting a contrib to the SME Server repository
To get your package in the SME Extras repository it has to go through a review process. The first steps to get your contrib in the SME Extras repository are:
- Submit your contrib for Package Review in the SME Server Extras category of the Bugtracker. Be sure to add the following information:
- (a link to) the SPEC file
- (a link to) the source RPM (SRPM)
- SME Server code is stored in the CVS on SourceForge. To be able to work on your code in the SME Server CVS repository you need an account on SourceForge. With this account the development team can give you access to the CVS repository. More information can be found here:
- After you have created your SourceForge account you can ask the development team to give you developer access. Create a bug in the Bug Tracker as usual.
- After the development team has added you to the list of developers you can create a SSH key which is necessary to get access to the SME Server CVS, more on this can be found here: F02: SSH Key Generation and Usage
- After you have received developer access you will have to download and configure your CVS client to work with the SME Server CVS. More information can be found here: B01: Recommended User Software Configuration (en) . The SME Server development team has decided on using Mezzanine (see next item).
- Install Mezzanine and read up on how to use it in the SME Server's Developers Guide - The SME Server development environment.
- Subscribe yourself to the devinfo mailinglist. This is the place to discuss the developement of the server and contribs. If you have other questions, not regarding development please use the forums.
Having your contrib reviewed
The review process has not been outlined.
Uploading contrib(s) to contribs.org
If you have created a contrib and wish to share with everyone then you can upload to your mirror.contribs.org/smeserver/contribs directory. To do so you can use scp, sftp or rsync to upload to your contrib directory.
Using RSYNC
Make sure you have a working copy of your contrib directory, for example to use rsync we will grab a copy by typing...
rsync -avP username@shell.contribs.org:~username/ /tmp/test/
Now make your /tmp/test directory looks like what you wish to see on your mirror.contribs.org/smeserver/contribs directory, if you wish to remove a contrib from your directory you can do so by typing the following...
rsync -avP --delete /tmp/test/ username@shell.contribs.org:~username/
And that's it now wait for mirrors to sync and have a beer.
Using SFTP
Log in using...
sftp username@shell.contribs.org
Now you will be at the...
sftp>
Now you can create your directory ready for uploading contribs...
sftp> mkdir smecontribs sftp>
Then upload your local copy of your new completed contrib to your contrib directory by typing...
sftp> cd smecontribs sftp>
Show we are in the right directory where we want the contrib to show...
sftp> pwd Remote working directory: /home/byte/smecontribs sftp>
Make sure we have our local server directory set correctly by typing...
sftp> lls anaconda-ks.cfg Desktop install.log install.log.syslog sftp>
Above show's we are not so to move in to our local working directory type...
sftp> lcd /tmp/sftptest sftp> lls smeserver-contrib-1.rpm smeserver-contrib.rpm sftp>
We are ready to upload our 2 new contribs by typing...
sftp> put smeserver-* Uploading smeserver-contrib-1.rpm to /home/username/smecontribs/smeserver-contrib-1.rpm smeserver-contrib-1.rpm 100% 0 0.0KB/s 00:00 Uploading smeserver-contrib.rpm to /home/username/smecontribs/smeserver-contrib.rpm smeserver-contrib.rpm 100% 0 0.0KB/s 00:00 sftp>
And thats it wait for mirrors to sync and sit back/relax.
So for example we would change the permissions on our /tmp/test directory by typing...
chmod 2750 /tmp/test
Now if you haven't already create and change your permissions on the .ssh directory by typing...
mkdir /tmp/test/.ssh chmod 0700 /tmp/test/.ssh
Create your ssh keys and copy the contents of your public key in to the authorized_keys2 and remember to change permissions by typing...
chmod 0644 /tmp/test/.ssh/authorized_keys2
Now you are ready to rsync your new .ssh keys to your contribs directory using your current password, once you have done the final rsync to upload your .ssh keys from now on you can log in using your ssh passphrase.