Line 13: |
Line 13: |
| http://www.openfusion.net/linux/mocking_rpms<br /> | | http://www.openfusion.net/linux/mocking_rpms<br /> |
| http://fedoraproject.org/wiki/Projects/Mock<br /> | | http://fedoraproject.org/wiki/Projects/Mock<br /> |
− |
| |
− | https://sourceforge.net/apps/trac/sourceforge/wiki/Register%20a%20user%20account<br />
| |
− | https://sourceforge.net/apps/trac/sourceforge/wiki/CVS<br />
| |
− | https://sourceforge.net/apps/trac/sourceforge/wiki/SSH%20keys<br />
| |
| | | |
| | | |
Line 75: |
Line 71: |
| ===USING CVS - GETTING SOURCE CODES=== | | ===USING CVS - GETTING SOURCE CODES=== |
| CVS is used for maintaining code and packages. | | CVS is used for maintaining code and packages. |
− | We first need to download (with CVS this is called retrieving) the code for the package to be modified from the SME Server CVS repository at SourceForge (we can also retrieve the CVS for the smecontribs tree). | + | We first need to download (with CVS this is called retrieving) the code for the package to be modified from the SME Server CVS repository at shell.koozali.org(we can also retrieve the CVS for the smecontribs tree). |
| | | |
| Two cases with CVS: | | Two cases with CVS: |
| | | |
− | * To be able to work on your code in the SME Server CVS repository you need an account on SourceForge. If you do not have an account at CVS, retrieving is performed as an anonymous user and changes cannot be saved. | + | * To be able to work on your code in the SME Server CVS repository you need an account on koozali.org. If you do not have an account at CVS, retrieving is performed as an anonymous user and changes cannot be saved. |
| slogin -p 22 chris\@192.168.xx.12 | | slogin -p 22 chris\@192.168.xx.12 |
| Note: If at a later stage you obtain a valid account with CVS, you will need to edit ALL packages /CVS/Root in order to save your work in CVS. As an example, for package "e-smith-backup", CVS/Root will need to be edited to be exactly as shown below: | | Note: If at a later stage you obtain a valid account with CVS, you will need to edit ALL packages /CVS/Root in order to save your work in CVS. As an example, for package "e-smith-backup", CVS/Root will need to be edited to be exactly as shown below: |
| [chris@build-system testsf]$ cat e-smith-backup/CVS/Root | | [chris@build-system testsf]$ cat e-smith-backup/CVS/Root |
− | :ext:smeserver.cvs.sourceforge.net:/cvsroot/smeserver | + | :ext:shell.koozali.org:/cvs/smeserver |
| [ok - CVS/Root uses 'ext' which should be SSH access] | | [ok - CVS/Root uses 'ext' which should be SSH access] |
| | | |
| * To retrieve a package or a full tree as an anonymous user, cd into a work directory and issue following commands: | | * To retrieve a package or a full tree as an anonymous user, cd into a work directory and issue following commands: |
− | cvs -z3 -d:pserver:anonymous@smeserver.cvs.sourceforge.net:/cvsroot/smeserver checkout -P e-smith-backup | + | for smeserver |
− | cvs -z3 -d:pserver:anonymous@smeserver.cvs.sourceforge.net:/cvsroot/smeserver co -P rpms | + | cvs -z3 -d:pserver:anonymous@shell.koozali.org:/cvs/smeserver checkout -P e-smith-backup |
| + | cvs -z3 -d:pserver:anonymous@shell.koozali.org:/cvs/smeserver co -P rpms |
| + | or for smecontribs |
| + | cvs -z3 -d:pserver:anonymous@shell.koozali.org:/cvs/smecontribs checkout -P e-smith-backup |
| + | cvs -z3 -d:pserver:anonymous@shell.koozali.org:/cvs/smecontribs co -P rpms |
| | | |
| * To retrieve a package or a full tree as a registered user, cd into a work directory and issue following commands: | | * To retrieve a package or a full tree as a registered user, cd into a work directory and issue following commands: |
− | cvs -z3 -d:ext:smeserver.cvs.sourceforge.net:/cvsroot/smeserver co -P e-smith-backup | + | for smeserver |
− | cvs -z3 -d:ext:smeserver.cvs.sourceforge.net:/cvsroot/smeserver co -P rpms | + | cvs -z3 -d:ext:shell.koozali.org:/cvs/smeserver co -P e-smith-backup |
| + | cvs -z3 -d:ext:shell.koozali.org:/cvs/smeserver co -P rpms |
| + | or for smecontribs |
| + | cvs -z3 -d:ext:shell.koozali.org:/cvs/smecontribs co -P smeserver-diskusage |
| + | cvs -z3 -d:ext:shell.koozali.org:/cvs/smecontribs co -P rpms |
| | | |
| ===PACKAGE MODIFICATION=== | | ===PACKAGE MODIFICATION=== |
Line 100: |
Line 104: |
| [chris@build-system ~]$ mkdir work | | [chris@build-system ~]$ mkdir work |
| [chris@build-system ~]$ cd work/ | | [chris@build-system ~]$ cd work/ |
− | [chris@build-system testsf]$ cvs -z3 -d:ext:smeserver.cvs.sourceforge.net:/cvsroot/smeserver co -P e-smith-backup | + | [chris@build-system testsf]$ cvs -z3 -d:ext:shell.koozali.org:/cvs/smeserver co -P e-smith-backup |
| | | |
| * To refresh run the following from the rpms directory, or any lower directory with a CVS dir | | * To refresh run the following from the rpms directory, or any lower directory with a CVS dir |
Line 165: |
Line 169: |
| | | |
| [chris@build-system sme9]$ make mockbuild | | [chris@build-system sme9]$ make mockbuild |
| + | |
| + | {{Note box|msg=Mock will determine which configuration to use, but you can specify it if wanting to build for a different architecture for instance. |
| + | * IF 32 BITS SYSTEM: |
| + | BUILDARCH=i386 make mockbuild |
| + | * IF 64 BITS SYSTEM: |
| + | BUILDARCH=x86_64 make mockbuild}} |
| | | |
| * Check built packages: | | * Check built packages: |
Line 228: |
Line 238: |
| [chris@build-system ~]$ cd work/ | | [chris@build-system ~]$ cd work/ |
| | | |
− | [chris@build-system work]$ cvs -z3 -d:ext:smeserver.cvs.sourceforge.net:/cvsroot/smeserver co -P e-smith-radiusd | + | [chris@build-system work]$ cvs -z3 -d:ext:shell.koozali.org:/cvs/smeserver co -P e-smith-radiusd |
| | | |
| cvs checkout: Updating e-smith-radiusd | | cvs checkout: Updating e-smith-radiusd |
Line 384: |
Line 394: |
| | | |
| *Get package from CVS | | *Get package from CVS |
− | [chris@build-system work]$ cvs -z3 -d:ext:smeserver.cvs.sourceforge.net:/cvsroot/smeserver co -P qpsmtpd | + | [chris@build-system work]$ cvs -z3 -d:ext:shell.koozali.org:/cvs/smeserver co -P qpsmtpd |
− | [chris@build-system work]$ cvs -z3 -d:ext:smeserver.cvs.sourceforge.net:/cvsroot/smeserver co -P smeserver-qpsmtpd | + | [chris@build-system work]$ cvs -z3 -d:ext:shell.koozali.org:/cvs/smeserver co -P smeserver-qpsmtpd |
| | | |
| [chris@build-system work]$ ls | | [chris@build-system work]$ ls |
Line 447: |
Line 457: |
| [chris@build-system sme8]$ cvs diff -u qpsmtpd.spec | | [chris@build-system sme8]$ cvs diff -u qpsmtpd.spec |
| Index: qpsmtpd.spec | | Index: qpsmtpd.spec |
− | RCS file: /cvsroot/smeserver/rpms/qpsmtpd/sme8/qpsmtpd.spec,v | + | RCS file: /cvs/smeserver/rpms/qpsmtpd/sme8/qpsmtpd.spec,v |
| retrieving revision 1.31 | | retrieving revision 1.31 |
| diff -r1.31 qpsmtpd.spec | | diff -r1.31 qpsmtpd.spec |
Line 461: |
Line 471: |
| > * Tue Apr 23 2013 chris burnat <devlist@burnat.com> 0.84-4.sme | | > * Tue Apr 23 2013 chris burnat <devlist@burnat.com> 0.84-4.sme |
| > - qpsmtpd allows the spamassassin plugin to read the size limit | | > - qpsmtpd allows the spamassassin plugin to read the size limit |
− | > from its arguments, patch by Daniel [SME: 7541 | + | > from its arguments, patch by Daniel [SME: 7541] |
| | | |
| | | |
Line 566: |
Line 576: |
| Subject: rpms/qpsmtpd/sme8 0039-qpsmtpd-0.84-spamassassin_size_limit.patch, NONE, 1.1 qpsmtpd.spec, 1.31, 1.32 | | Subject: rpms/qpsmtpd/sme8 0039-qpsmtpd-0.84-spamassassin_size_limit.patch, NONE, 1.1 qpsmtpd.spec, 1.31, 1.32 |
| Date: Tue, 23 Apr 2013 05:30:08 +0000 | | Date: Tue, 23 Apr 2013 05:30:08 +0000 |
− | From: xxxxxxx <xxxxx@users.sourceforge.net> | + | From: xxxxxxx <xxxxx@users.shell.shell.koozali.org> |
− | To: smeserver-cvscommits@lists.sourceforge.net | + | To: smeserver-cvscommits@lists.shell.shell.koozali.org |
| | | |
| [ok] | | [ok] |
Line 600: |
Line 610: |
| /home/chris/work | | /home/chris/work |
| | | |
− | [chris@bui work]$ cvs -z3 -d:pserver:anonymous@smeserver.cvs.sourceforge.net:/cvsroot/smeserver checkout -P e-smith-base | + | [chris@bui work]$ cvs -z3 -d:pserver:anonymous@shell.koozali.org:/cvs/smeserver checkout -P e-smith-base |
| | | |
| [chris@build-system work]$ cd e-smith-base/sme8/ | | [chris@build-system work]$ cd e-smith-base/sme8/ |
Line 664: |
Line 674: |
| Index: e-smith-base.spec | | Index: e-smith-base.spec |
| =================================================================== | | =================================================================== |
− | RCS file: /cvsroot/smeserver/rpms/e-smith-base/sme8/e-smith-base.spec,v | + | RCS file: /cvs/smeserver/rpms/e-smith-base/sme8/e-smith-base.spec,v |
| retrieving revision 1.142 | | retrieving revision 1.142 |
| diff -r1.142 e-smith-base.spec | | diff -r1.142 e-smith-base.spec |
Line 720: |
Line 730: |
| | | |
| * Get package | | * Get package |
− | [chris@build-system work]$ cvs -z3 -d:ext:smeserver.cvs.sourceforge.net:/cvsroot/smeserver co -P e-smith-openssh | + | [chris@build-system work]$ cvs -z3 -d:ext:shell.koozali.org:/cvs/smeserver co -P e-smith-openssh |
| | | |
| * Get patch from workstation to build: | | * Get patch from workstation to build: |
Line 787: |
Line 797: |
| Index: e-smith-openssh.spec | | Index: e-smith-openssh.spec |
| =================================================================== | | =================================================================== |
− | RCS file: /cvsroot/smeserver/rpms/e-smith-openssh/sme9/e-smith-openssh.spec,v | + | RCS file: /cvs/smeserver/rpms/e-smith-openssh/sme9/e-smith-openssh.spec,v |
| retrieving revision 1.3 | | retrieving revision 1.3 |
| diff -u -r1.3 e-smith-openssh.spec | | diff -u -r1.3 e-smith-openssh.spec |
Line 915: |
Line 925: |
| /home/chris/work | | /home/chris/work |
| | | |
− | [chris@build-system work]$ cvs -z3 -d:ext:smeserver.cvs.sourceforge.net:/cvsroot/smeserver co -P qpsmtpd | + | [chris@build-system work]$ cvs -z3 -d:ext:shell.koozali.org:/cvs/smeserver co -P qpsmtpd |
| | | |
| * Update | | * Update |
Line 938: |
Line 948: |
| Index: qpsmtpd.spec | | Index: qpsmtpd.spec |
| | | |
− | RCS file: /cvsroot/smeserver/rpms/qpsmtpd/sme8/qpsmtpd.spec,v | + | RCS file: /cvs/smeserver/rpms/qpsmtpd/sme8/qpsmtpd.spec,v |
| retrieving revision 1.33 | | retrieving revision 1.33 |
| diff -r1.33 qpsmtpd.spec | | diff -r1.33 qpsmtpd.spec |
Line 950: |
Line 960: |
| cvs commit: Examining . | | cvs commit: Examining . |
| Checking in qpsmtpd.spec; | | Checking in qpsmtpd.spec; |
− | /cvsroot/smeserver/rpms/qpsmtpd/sme8/qpsmtpd.spec,v <-- qpsmtpd.spec | + | /cvs/smeserver/rpms/qpsmtpd/sme8/qpsmtpd.spec,v <-- qpsmtpd.spec |
| new revision: 1.34; previous revision: 1.33 | | new revision: 1.34; previous revision: 1.33 |
| done | | done |
− | Mailing smeserver-cvscommits@lists.sourceforge.net... | + | Mailing smeserver-cvscommits@lists.shell.shell.koozali.org... |
| Generating notification message... | | Generating notification message... |
| Generating notification message... done. | | Generating notification message... done. |
Line 962: |
Line 972: |
| Subject: rpms/qpsmtpd/sme8 qpsmtpd.spec,1.33,1.34 | | Subject: rpms/qpsmtpd/sme8 qpsmtpd.spec,1.33,1.34 |
| Date: Thu, 25 Apr 2013 02:16:36 +0000 | | Date: Thu, 25 Apr 2013 02:16:36 +0000 |
− | From: xxxxxxxxxxxx <xxxxxx@users.sourceforge.net> | + | From: xxxxxxxxxxxx <xxxxxx@users.shell.shell.koozali.org> |
− | To: smeserver-cvscommits@lists.sourceforge.net | + | To: smeserver-cvscommits@lists.shell.shell.koozali.org |
| | | |
− | Update of /cvsroot/smeserver/rpms/qpsmtpd/sme8 | + | Update of /cvs/smeserver/rpms/qpsmtpd/sme8 |
− | In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv13622 | + | In directory sfp-cvs-1.v30.ch3.shell.shell.koozali.org:/tmp/cvs-serv13622 |
| | | |
| Modified Files: | | Modified Files: |
Line 975: |
Line 985: |
| Index: qpsmtpd.spec | | Index: qpsmtpd.spec |
| =================================================================== | | =================================================================== |
− | RCS file: /cvsroot/smeserver/rpms/qpsmtpd/sme8/qpsmtpd.spec,v | + | RCS file: /cvs/smeserver/rpms/qpsmtpd/sme8/qpsmtpd.spec,v |
| retrieving revision 1.33 | | retrieving revision 1.33 |
| retrieving revision 1.34 | | retrieving revision 1.34 |
Line 1,127: |
Line 1,137: |
| | | |
| BUILDARCH=i386 make mockbuild | | BUILDARCH=i386 make mockbuild |
− | | + | BUILDARCH=x86_64 make mockbuild |
| This works for everything except for kernel modules on SME <= 8.0. I'll have | | This works for everything except for kernel modules on SME <= 8.0. I'll have |
| to go through my notes for how to build kmods for i686 kernel using i386 config | | to go through my notes for how to build kmods for i686 kernel using i386 config |