{"id":402,"date":"2011-03-30T09:41:35","date_gmt":"2011-03-30T07:41:35","guid":{"rendered":""},"modified":"2018-11-01T01:14:44","modified_gmt":"2018-11-01T00:14:44","slug":"building-debian-packages-openimscore","status":"publish","type":"post","link":"https:\/\/nil.uniza.sk\/en\/building-debian-packages-openimscore\/","title":{"rendered":"Building debian packages for OpenIMSCore"},"content":{"rendered":"<p>Based on guide from <a href=\"http:\/\/www.openimscore.org\/debian_packages\">http:\/\/www.openimscore.org\/debian_packages<\/a><\/p>\n<h3>Update source.list<\/h3>\n<p>Allows in sources.list non free packages to allow java installation<\/p>\n<pre>deb http:\/\/ftp.antik.sk\/debian\/ squeeze main non-free\ndeb-src http:\/\/ftp.antik.sk\/debian\/ squeeze main non-free\n<\/pre>\n<p>then install packages required for compilation (bison and libcurl4-dev have to be added compare to original guide)<\/p>\n<pre>apt-get install subversion bison libcurl4-dev debhelper cdbs lintian build-essential fakeroot devscripts pbuilder dh-make \ndebootstrap dpatch flex libxml2-dev libmysqlclient15-dev sun-java6-jdk ant docbook-to-man<\/pre>\n<h3>Get OpenIMScore sources<\/h3>\n<p>go to your preferred folder where the sources will be downloaded<\/p>\n<pre>cd \/root\nmkdir openimscore\nsvn checkout <a title=\"http:\/\/svn.berlios.de\/svnroot\/repos\/openimscore\/ser_ims\/trunk\" href=\"http:\/\/svn.berlios.de\/svnroot\/repos\/openimscore\/ser_ims\/trunk\">http:\/\/svn.berlios.de\/svnroot\/repos\/openimscore\/ser_ims\/trunk<\/a> openimscore \nmkdir openimscore-fhoss \nsvn checkout <a title=\"http:\/\/svn.berlios.de\/svnroot\/repos\/openimscore\/FHoSS\/trunk\" href=\"http:\/\/svn.berlios.de\/svnroot\/repos\/openimscore\/FHoSS\/trunk\">http:\/\/svn.berlios.de\/svnroot\/repos\/openimscore\/FHoSS\/trunk<\/a> openimscore-fhoss<\/pre>\n<div class=\"h3\">\n<h3>Copy the debian folder from pkg folder<\/h3>\n<p>Browse with a terminal to openimscore (or openimscore-fhoss) folder and use the following command to copy the debian folder. It contain files with definition for pkg package building.<\/p>\n<pre>cd openimscore\ncp -a pkg\/debian .\/debian<\/pre>\n<\/div>\n<h3>Update changelog file<\/h3>\n<p>Changelog file should be updated in order to build up to date packages (distinguish among many packages version).  The following command will update the changelog file in debian folder.  Feel free to change svnversion to the SVN revision number and comment.<\/p>\n<p>In debian we using dch<\/p>\n<pre class=\"code\">dch -v $(svnversion) \"...\"<\/pre>\n<h3>Building packages for imscore<\/h3>\n<pre>cd openismcore\npkg-buildpackage -rfakeroot<\/pre>\n<p>if we have conflicts, install missing packages.<\/p>\n<p>Done! we have following packages (1064 is the svn version).<\/p>\n<pre>dpkg-deb: building package `openimscore' in `..\/openimscore_1064_i386.deb'.\ndpkg-deb: building package `openimscore-pcscf' in `..\/openimscore-pcscf_1064_i386.deb'.\ndpkg-deb: building package `openimscore-icscf' in `..\/openimscore-icscf_1064_i386.deb'.\ndpkg-deb: building package `openimscore-scscf' in `..\/openimscore-scscf_1064_i386.deb'.\n<\/pre>\n<p>The main package is openimscore_1064_i386.deb . Every package depends on this one except for openimscore-dnsconf<\/p>\n<h3>Building packages for hss<\/h3>\n<pre>cd openismcore-fhoss\ndch -v $(svnversion) \"...\"\npkg-buildpackage -rfakeroot<\/pre>\n<p>done, openimscore-fhoss_1064_i386.deb<\/p>\n<p>Final<\/p>\n<p>in one folder upper we have all packages<\/p>\n<pre>drwxr-xr-x 21 root root    12288 Mar 30 10:36 openimscore\n-rw-r--r--  1 root root      622 Mar 30 10:35 openimscore_1064.dsc\n-rw-r--r--  1 root root     2543 Mar 30 10:42 openimscore_1064_i386.changes\n-rw-r--r--  1 root root  1954078 Mar 30 10:42 openimscore_1064_i386.deb\n-rw-r--r--  1 root root 11171488 Mar 30 10:35 openimscore_1064.tar.gz\n-rw-r--r--  1 root root     4206 Mar 30 10:42 openimscore-dnsconf_1064_i386.deb\ndrwxr-xr-x 15 root root     4096 Mar 30 10:46 openimscore-fhoss\n-rw-r--r--  1 root root      606 Mar 30 10:46 openimscore-fhoss_1064.dsc\n-rw-r--r--  1 root root     1661 Mar 30 10:46 openimscore-fhoss_1064_i386.changes\n-rw-r--r--  1 root root 17658664 Mar 30 10:46 openimscore-fhoss_1064_i386.deb\n-rw-r--r--  1 root root 36418549 Mar 30 10:46 openimscore-fhoss_1064.tar.gz\n-rw-r--r--  1 root root   274682 Mar 30 10:46 openimscore-fhoss-doc_1064_i386.deb\n-rw-r--r--  1 root root    87382 Mar 30 10:42 openimscore-icscf_1064_i386.deb\n-rw-r--r--  1 root root   256454 Mar 30 10:42 openimscore-pcscf_1064_i386.deb\n-rw-r--r--  1 root root   200298 Mar 30 10:42 openimscore-scscf_1064_i386.deb\n\n<\/pre>","protected":false},"excerpt":{"rendered":"<p>Based on guide from <a href=\"http:\/\/www.openimscore.org\/debian_packages\">http:\/\/www.openimscore.org\/debian_packages<\/a><\/p>\n<h3>Update source.list<\/h3>\n<p>Allows in sources.list non free packages to allow java installation<\/p>\n<pre>\r\ndeb http:\/\/ftp.antik.sk\/debian\/ squeeze main non-free\r\ndeb-src http:\/\/ftp.antik.sk\/debian\/ squeeze main non-free\r\n<\/pre>\n<p>then install packages required for compilation (bison and libcurl4-dev have to be added compare to original guide)<\/p>","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[685,733],"tags":[],"class_list":["post-402","post","type-post","status-publish","format-standard","hentry","category-linux_-_howto-en","category-ngn-ims-openimscore"],"taxonomy_info":{"category":[{"value":685,"label":"Linux - HOWTO"},{"value":733,"label":"OpenIMSCore"}]},"featured_image_src_large":false,"author_info":{"display_name":"admin","author_link":"https:\/\/nil.uniza.sk\/en\/author\/admin\/"},"comment_info":0,"category_info":[{"term_id":685,"name":"Linux - HOWTO","slug":"linux_-_howto-en","term_group":0,"term_taxonomy_id":683,"taxonomy":"category","description":"","parent":0,"count":71,"filter":"raw","cat_ID":685,"category_count":71,"category_description":"","cat_name":"Linux - HOWTO","category_nicename":"linux_-_howto-en","category_parent":0},{"term_id":733,"name":"OpenIMSCore","slug":"ngn-ims-openimscore","term_group":0,"term_taxonomy_id":731,"taxonomy":"category","description":"","parent":729,"count":5,"filter":"raw","cat_ID":733,"category_count":5,"category_description":"","cat_name":"OpenIMSCore","category_nicename":"ngn-ims-openimscore","category_parent":729}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts\/402","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/comments?post=402"}],"version-history":[{"count":0,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts\/402\/revisions"}],"wp:attachment":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/media?parent=402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/categories?post=402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/tags?post=402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}