<div dir="ltr"><div><div><div><div><div>Hi Sebastian,<br><br></div>Thank you for your reply. I did that and packages were compiled. This also require to update rules script. <br></div><br>But the 2nd part is still complaining.<br></div><div>I pushed these packages to local repo server and issues command</div><div><br></div><div><span style="font-family:monospace,monospace">dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz</span></div><div><br></div><div>While installing through my local apt repo on a fresh debian machine, i included my debian repo path in sources.list.<br><br></div>apt-get update ; apt-get install kamailio503<br><br></div>its still asking for kamailio-mysql-modules:amd64 :(<br><br></div>It worked when i disable all other repos. But as soon as i enable other repos for installing dependencies, apt-get also try to fetch kamailio packages from public repos.<div><div><div><div class="gmail_extra"><br></div><div class="gmail_extra">What am i missing?<div><div class="gmail_signature"><div><font size="2"><span style="font-family:verdana,sans-serif"><span style="color:rgb(39,78,19)"><br></span></span></font></div><div><font size="2"><span style="font-family:verdana,sans-serif"><span style="color:rgb(39,78,19)">--<br>regards,</span></span></font></div><font size="2"><span style="font-family:verdana,sans-serif"><span style="color:rgb(39,78,19)"><br>abdul basit<br></span></span></font></div></div>
<br><div class="gmail_quote">On 13 October 2017 at 13:28, Sebastian Damm <span dir="ltr"><<a href="mailto:damm@sipgate.de" target="_blank">damm@sipgate.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">If you rename your packages in your control file, then you of course<br>
need to change the dependencies as well.<br>
<br>
Example:<br>
<br>
Original:<br>
Package: kamailio-mysql-modules<br>
Architecture: linux-any<br>
Multi-Arch: same<br>
Pre-Depends: ${misc:Pre-Depends}<br>
Depends: kamailio (= ${binary:Version}),<br>
         default-mysql-client | virtual-mysql-client,<br>
         ${misc:Depends},<br>
         ${shlibs:Depends}<br>
Description: MySQL database connectivity module for Kamailio<br>
 Kamailio is a very fast and flexible SIP (RFC3261)<br>
 server. Written entirely in C, Kamailio can handle thousands calls<br>
 per second even on low-budget hardware.<br>
 .<br>
 This package provides the MySQL database driver for Kamailio.<br>
<br>
Must be changed to:<br>
Package: kamailio503-mysql-modules<br>
Architecture: linux-any<br>
Multi-Arch: same<br>
Pre-Depends: ${misc:Pre-Depends}<br>
Depends: kamailio503 (= ${binary:Version}),<br>
         default-mysql-client | virtual-mysql-client,<br>
         ${misc:Depends},<br>
         ${shlibs:Depends}<br>
Description: MySQL database connectivity module for Kamailio<br>
 Kamailio is a very fast and flexible SIP (RFC3261)<br>
 server. Written entirely in C, Kamailio can handle thousands calls<br>
 per second even on low-budget hardware.<br>
 .<br>
 This package provides the MySQL database driver for Kamailio.<br>
<br>
HTH<br>
<span class="gmail-HOEnZb"><font color="#888888">Sebastian<br>
</font></span><div class="gmail-HOEnZb"><div class="gmail-h5"><br>
<br>
On Thu, Oct 12, 2017 at 12:08 PM, Abdul Basit <<a href="mailto:basit.engg@gmail.com">basit.engg@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> Yes. I can see the debian folder that contain the control and rules files.<br>
> I have managed to build and install the custom kamailio packages by updating<br>
> control and rules files.<br>
> But now i am stuck with the issues that while install with apt-get install<br>
> kamailio503*<br>
><br>
> its also ask to install kamailio-* packages from public repo.<br>
><br>
> Like i want to install kamailio503-mysql-modules.deb but in addition to that<br>
> apt-get also installs kamailio-mysql-modules:amd64<br>
> To prevent that, i created my own local repo and removed all other entries<br>
> from /etc/apt/source.list<br>
><br>
> echo "deb <a href="http://192.168.10.23/packages/amd64/" rel="noreferrer" target="_blank">http://192.168.10.23/packages/<wbr>amd64/</a> /" > /etc/apt/sources.list<br>
><br>
> Now getting below errors:<br>
><br>
> dpkg: dependency problems prevent configuration of<br>
> kamailio-mysql-modules:amd64:<br>
>  kamailio-mysql-modules:amd64 depends on kamailio (= 5.0.3-1); however:<br>
>   Package kamailio is not configured yet.<br>
><br>
> dpkg: error processing package kamailio-mysql-modules:amd64 (--configure):<br>
>  dependency problems - leaving unconfigured<br>
><br>
> How can i avoid this situation?<br>
> Where to make changes to limit to my customized packages only even public<br>
> repo is available in "/etc/apt/sources.list"<br>
><br>
> I am almost stuck here. Kindly help.<br>
><br>
><br>
> --<br>
> regards,<br>
><br>
> abdul basit | p: <a href="tel:%2B92%2032%201416%204196" value="+923214164196">+92 32 1416 4196</a> | o: <a href="tel:%2B92%2030%200841%201445" value="+923008411445">+92 30 0841 1445</a><br>
><br>
> On 6 October 2017 at 20:02, Sebastian Damm <<a href="mailto:damm@sipgate.de">damm@sipgate.de</a>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> did you see that there are debian folders coming with your kamailio<br>
>> source code? I think all you have to do is symlink the correct folder<br>
>> to the root project folder so it is accessible under<br>
>> /path/to/kamailio-sources/<wbr>debian and you should be ready to go. Then<br>
>> your dpkg-buildpackage command should have everything you need.<br>
>><br>
>> HTH<br>
>> Sebastian<br>
>><br>
>> On Mon, Oct 2, 2017 at 10:31 PM, Abdul Basit <<a href="mailto:basit.engg@gmail.com">basit.engg@gmail.com</a>> wrote:<br>
>> > Hi All,<br>
>> ><br>
>> > I am trying to compile custom .deb package from kamailio source that<br>
>> > will<br>
>> > install dependencies like mysql-server, lua, rtpproxy, etc. and will<br>
>> > install<br>
>> > few custom scripts along with additional db tables from<br>
>> > tables-create.sql<br>
>> > files.<br>
>> ><br>
>> > I am able to create kamailio_x-amd64.deb package that I installed on<br>
>> > fresh<br>
>> > machine<br>
>> > dpkg -i  kamailio_x-amd64.deb<br>
>> ><br>
>> > This package installed kamailio config files and modules in appropriate<br>
>> > locations but it didn't created default, init.d and kamailio.service<br>
>> > files.<br>
>> > Nor it asked for installing the dependencies which I mentioned in<br>
>> > control<br>
>> > file.<br>
>> ><br>
>> > OS: Debian GNU/Linux 8.9 (jessie)<br>
>> > Kamailio: 5.0.3 through git clone<br>
>> ><br>
>> > I am creating .deb package for the very 1st time. Can anyone point me to<br>
>> > the<br>
>> > right direction?<br>
>> ><br>
>> > --<br>
>> > regards,<br>
>> ><br>
>> > abdul basit<br>
>> ><br>
<br>
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</div></div></blockquote></div><br></div></div></div></div></div>