<div dir="auto">Hello Giovanni,</div><div dir="auto"><br></div><div dir="auto">All looks good!</div><div dir="auto">IIRC you can alter the changelog to create custom names for packages (for easier management).</div><div dir="auto">Also, to simplify the install/update process, I create a custom mega opensips package that has all the modules built in. That’s just my personal preference :)</div><div dir="auto"><br></div><div dir="auto">-ovidiu</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 18, 2021 at 08:07 Giovanni Maruzzelli <<a href="mailto:gmaruzz@gmail.com">gmaruzz@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="ltr">My friends, Ovidiu,<div><br></div><div>so, see the following two scripts, one for first time building deb packages, second script for updating such packages.</div><div><br></div><div>Can you all please give hints, corrections, etc? <br><br>FIRST TIME BUILD DEB PACKAGES:</div><div>#=================</div><div>apt-get install bison debhelper default-libmysqlclient-dev dh-systemd dpkg-dev flex libconfuse-dev libcurl4-gnutls-dev libdb-dev libexpat1-dev libmaxminddb-dev libhiredis-dev libjson-c-dev libldap2-dev liblua5.1-0-dev libmemcached-dev libmicrohttpd-dev libbson-dev base-files libncurses5-dev libpcre3-dev libperl-dev libpq-dev librabbitmq-dev libradcli-dev libsctp-dev libsqlite3-dev libssl-dev lsb-release uuid-dev libxml2-dev pkg-config python python-dev unixodbc-dev xsltproc zlib1g-dev libsnmp-dev libmongoc-dev<br><br>mkdir /usr/src/OPENSIPS_DEBS<br>cd /usr/src/OPENSIPS_DEBS<br><br>git clone <a href="https://github.com/OpenSIPS/opensips.git" target="_blank">https://github.com/OpenSIPS/opensips.git</a> -b 3.1 opensips_3_1<br><br>cd opensips_3_1<br><br>make deb-orig-tar<br>make deb DEBBUILD_EXTRA_OPTIONS="-uc -us"<br><br>cd ..<br>ls<br><br>dpkg -i opensips_3.1.1-1_amd64.deb opensips-dialplan-module_3.1.1-1_amd64.deb opensips-http-modules_3.1.1-1_amd64.deb opensips-lua-module_3.1.1-1_amd64.deb opensips-memcached-module_3.1.1-1_amd64.deb opensips-postgres-module_3.1.1-1_amd64.deb opensips-presence-modules_3.1.1-1_amd64.deb opensips-redis-module_3.1.1-1_amd64.deb opensips-regex-module_3.1.1-1_amd64.deb opensips-restclient-module_3.1.1-1_amd64.deb opensips-sqlite-module_3.1.1-1_amd64.deb opensips-tlsmgm-module_3.1.1-1_amd64.deb opensips-tls-module_3.1.1-1_amd64.deb opensips-wss-module_3.1.1-1_amd64.deb opensips-xml-module_3.1.1-1_amd64.deb opensips-xmlrpc-module_3.1.1-1_amd64.deb<br><br></div><div>#=================<br></div><div><br></div><div>UPDATE DEB PACKAGES (keeping local source changes):</div><div>#=================<br></div><div>cd /usr/src/OPENSIPS_DEBS/opensips_3_1 <br><br>git stash ; git pull ; git stash apply<br><br>make deb-orig-tar<br>make deb DEBBUILD_EXTRA_OPTIONS="-uc -us"<br><br>cd ..<br>ls<br><br>dpkg -i opensips_3.1.1-1_amd64.deb opensips-dialplan-module_3.1.1-1_amd64.deb opensips-http-modules_3.1.1-1_amd64.deb opensips-lua-module_3.1.1-1_amd64.deb opensips-memcached-module_3.1.1-1_amd64.deb opensips-postgres-module_3.1.1-1_amd64.deb opensips-presence-modules_3.1.1-1_amd64.deb opensips-redis-module_3.1.1-1_amd64.deb opensips-regex-module_3.1.1-1_amd64.deb opensips-restclient-module_3.1.1-1_amd64.deb opensips-sqlite-module_3.1.1-1_amd64.deb opensips-tlsmgm-module_3.1.1-1_amd64.deb opensips-tls-module_3.1.1-1_amd64.deb opensips-wss-module_3.1.1-1_amd64.deb opensips-xml-module_3.1.1-1_amd64.deb opensips-xmlrpc-module_3.1.1-1_amd64.deb<br><br></div><div>#=================<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 16, 2021 at 8:41 PM Ovidiu Sas <<a href="mailto:osas@voipembedded.com" target="_blank">osas@voipembedded.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">Hello Giovanni,<br>
<br>
After you clone the repo, you need to build the tar from it:<br>
make deb-orig-tar<br>
You can skip the wget.<br>
<br>
If you modify the source, rebuild the tar and then rebuild the deb package.<br>
<br>
Also, when building the package, use the following options (so you<br>
won't have troubles with signed packages):<br>
make deb DEBBUILD_EXTRA_OPTIONS="-uc -us"<br>
<br>
-ovidiu<br>
<br>
On Sat, Jan 16, 2021 at 2:15 PM Giovanni Maruzzelli <<a href="mailto:gmaruzz@gmail.com" target="_blank">gmaruzz@gmail.com</a>> wrote:<br>
><br>
> Hello my friends,<br>
><br>
> I know I'm slow, it took me much time to find the way to build deb packages from source.<br>
><br>
> So, without further ado, my receipt (on Stretch, may works on Buster too)<br>
> -BOTH git clone AND wget are required, it is not a typo- :<br>
><br>
> =========<br>
><br>
> mkdir /usr/src/OPENSIPS<br>
> cd /usr/src/OPENSIPS<br>
><br>
> git clone <a href="https://github.com/OpenSIPS/opensips.git" rel="noreferrer" target="_blank">https://github.com/OpenSIPS/opensips.git</a> -b 3.1 opensips_3_1<br>
> wget <a href="https://github.com/OpenSIPS/opensips/archive/3.1.tar.gz" rel="noreferrer" target="_blank">https://github.com/OpenSIPS/opensips/archive/3.1.tar.gz</a> -O opensips_3.1.1.orig.tar.gz<br>
><br>
> apt-get install bison debhelper default-libmysqlclient-dev dh-systemd dpkg-dev flex libconfuse-dev libcurl4-gnutls-dev libdb-dev libexpat1-dev libmaxminddb-dev libhiredis-dev libjson-c-dev libldap2-dev liblua5.1-0-dev libmemcached-dev libmicrohttpd-dev libbson-dev base-files libncurses5-dev libpcre3-dev libperl-dev libpq-dev librabbitmq-dev libradcli-dev libsctp-dev libsqlite3-dev libssl-dev lsb-release uuid-dev libxml2-dev pkg-config python python-dev unixodbc-dev xsltproc zlib1g-dev libsnmp-dev libmongoc-dev<br>
><br>
> cd opensips_3_1<br>
><br>
> make deb<br>
> cd ..<br>
><br>
> ls<br>
><br>
> dpkg -i opensips_3.1.1-1_amd64.deb opensips-dialplan-module_3.1.1-1_amd64.deb opensips-http-modules_3.1.1-1_amd64.deb opensips-lua-module_3.1.1-1_amd64.deb opensips-memcached-module_3.1.1-1_amd64.deb opensips-postgres-module_3.1.1-1_amd64.deb opensips-presence-modules_3.1.1-1_amd64.deb opensips-redis-module_3.1.1-1_amd64.deb opensips-regex-module_3.1.1-1_amd64.deb opensips-restclient-module_3.1.1-1_amd64.deb opensips-sqlite-module_3.1.1-1_amd64.deb opensips-tlsmgm-module_3.1.1-1_amd64.deb opensips-tls-module_3.1.1-1_amd64.deb opensips-wss-module_3.1.1-1_amd64.deb opensips-xml-module_3.1.1-1_amd64.deb opensips-xmlrpc-module_3.1.1-1_amd64.deb<br>
><br>
> =========<br>
><br>
> Obviously, you can choose which deb packages to install :)<br>
><br>
> HTH<br>
><br>
> -giovanni<br>
><br>
> --<br>
> Sincerely,<br>
><br>
> Giovanni Maruzzelli<br>
> OpenTelecom.IT<br>
> cell: +39 347 266 56 18<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
<br>
-- <br>
VoIP Embedded, Inc.<br>
<a href="http://www.voipembedded.com" rel="noreferrer" target="_blank">http://www.voipembedded.com</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr">Sincerely,<br><br>Giovanni Maruzzelli<br>OpenTelecom.IT<br>cell: +39 347 266 56 18<br><br></div>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">VoIP Embedded, Inc.<br><a href="http://www.voipembedded.com" target="_blank">http://www.voipembedded.com</a></div>