Changes

From SME Server
Jump to navigationJump to search
3,424 bytes added ,  23:03, 9 April 2014
Line 296: Line 296:  
  make commit tag build
 
  make commit tag build
    +
====import of perl-Passwd-Unix in CVS====
 +
One important part is updating the 'modules' file in CVS to allow the buildsys to build to correctly.
   −
[[Category:Howto]][[Category:SME9-Development]] [[Category:SME Server Development Framework]]
+
To import a brand new package from an SRPM like  perl-Passwd-Unix
[[Category:Development Tools]]
+
presuming that the SME Server RPMs are checkout to ~/rpms
 +
 
 +
mkdir -p ~/rpms/perl-Passwd-Unix/sme8
 +
cd ~/rpms
 +
cvs add perl-Passwd-Unix
 +
cd perl-Passwd-Unix
 +
cvs add sme8
 +
cd sme8
 +
 
 +
===== need to get the common directory & Makefile there=====
 +
cp -R ~/rpms/dar/sme8/common ~/rpms/perl-Passwd-Unix/sme8
 +
cp -R ~/rpms/dar/sme8/Makefile ~/rpms/perl-Passwd-Unix/sme8
 +
 
 +
=====Update the name in the Makefile=====
 +
Retrieve the SRPM
 +
wget http://---somewhere---/perl-Passwd-Unix-0.71-1.src.rpm
 +
 
 +
=====Import the SRPM=====
 +
./common/cvs-import.sh -b sme8 -m 'Initial import'  perl-Passwd-Unix-0.71-1.src.rpm
 +
 
 +
====For perl-Struct-Compare-1.0.1-1.src.rpm====
 +
 
 +
mkdir -p ~/rpms/perl-Struct-Compare/sme8
 +
cd ~/rpms
 +
cvs add perl-Struct-Compare
 +
cd perl-Struct-Compare
 +
cvs add sme8
 +
cd sme8
 +
 
 +
===== need to get the common directory & Makefile there=====
 +
cp -R ~/rpms/dar/sme8/common ~/rpms/perl-Struct-Compare/sme8
 +
cp -R ~/rpms/dar/sme8/Makefile ~/rpms/perl-Struct-Compare/sme8
 +
 
 +
Update the name in the Makefile
 +
=====Retrieve the SRPM=====
 +
wget http://---somewhere---/perl-Struct-Compare-1.0.1-1.src.rpm
 +
 
 +
=====Import the SRPM=====
 +
./common/cvs-import.sh -b sme8 -m 'Initial import'  perl-Struct-Compare-1.0.1-1.src.rpm
 +
 
 +
The modules file needs to be updated before the buildsys will build them.
 +
 
 +
====import  openssl====
 +
From /build/smeserver/repo/8.0/smeupdates/SRPMS/openssl-0.9.8e-27.el5_10.1.src.rpm
 +
 
 +
mkdir -p ~/rpms/openssl/sme8
 +
cd ~/rpms
 +
cvs add openssl
 +
cd openssl
 +
cvs add sme8
 +
cd sme8
 +
 
 +
===== need to get the common directory & Makefile there=====
 +
cp -R ~/rpms/dar/sme8/common ~/rpms/openssl/sme8
 +
cp -R ~/rpms/dar/sme8/Makefile ~/rpms/openssl/sme8
 +
 
 +
Update the name in the Makefile
 +
=====Retrieve the SRPM=====
 +
cp  /build/smeserver/repo/8.0/smeupdates/SRPMS/openssl-0.9.8e-27.el5_10.1.src.rpm ~/rpms/openssl/sme8
 +
 
 +
=====Import the SRPM=====
 +
./common/cvs-import.sh -b sme8 -m 'Initial import'  openssl-0.9.8e-27.el5_10.1.src.rpm
 +
 
 +
The modules file needs to be updated before the buildsys will build them.
 +
 
 +
=====tag it as upstream=====
 +
Once all the files are checked out (cvs update -dPA may be needed) then tag it as upstream
 +
 
 +
cvs tag -b upstream
 +
 
 +
====import perl-Mojolicious and enable it in bugzilla====
 +
 
 +
=====Start on buildsys=====
 +
 
 +
mkdir -p ~/rpms/perl-Mojolicious/sme9
 +
cd ~/rpms
 +
cvs add perl-Mojolicious
 +
cd perl-Mojolicious
 +
cvs add sme9
 +
cd sme9
 +
 
 +
===== need to get the common directory & Makefile there=====
 +
cp -R ~/rpms/dar/sme9/common ~/rpms/perl-Mojolicious/sme9
 +
cp -R ~/rpms/dar/sme9/Makefile ~/rpms/perl-Mojolicious/sme9
 +
 
 +
===== Update the name in the Makefile=====
 +
perl -p -i -e 's/dar/perl-Mojolicious/g' Makefile
 +
 
 +
===== Retrieve the SRPM=====
 +
wget http://bugs.contribs.org/attachment.cgi?id=4589 -O  perl-Mojolicious-4.91-1.el6.src.rpm
 +
 
 +
=====Import the SRPM !! You have to press enter during this script =====
 +
./common/cvs-import.sh -b sme9 -m 'Initial import'  perl-Mojolicious-4.91-1.el6.src.rpm
 +
 
 +
End on buildsys
 +
 
 +
 
 +
=====Update the CVS module list=====
 +
 
 +
The /cvsroot/smeserver/CVSROOT/modules file needs to be updated before the buildsys will build them.
 +
Add this line, note it will have 2 tabs not spaces.
 +
 
 +
perl-Mojolicious    rpms/perl-Mojolicious &common
 +
 
 +
### --- ###
 +
 
 +
 
 +
=====Update bugzilla=====
 +
 
 +
Add a new package to bugzilla
 +
http://bugs.contribs.org/editvalues.cgi?action=add&field=cf_package
 +
 
 +
[[Category:Howto]]
    
[[Category:Developer]]
 
[[Category:Developer]]

Navigation menu