<div dir="ltr">Hi,<br>Thanks for your help. That worked for me.<br><br>I have few more queries :<br><br><div>1. How can i build a pdns-static deb package.. do we need to specify some other options during dpkg-buildpackage<br>

<br>2. What if i want to create a pdns package which will install all the binaries and system libraries at a user defined path say at /pdns <br><br>For this i change the prefix from /usr to /pdns, sysconfdir=/pdns/cfg in debian-pdns/rules file along few other change ( Replacing usr with pdns wherever required especially in install statements ) & debian-pdns/pdns.conffiles is also modified to have a different path(/pdns/cfg/pdns.conf) for pdns.conf file<br>

<br>After doing the changes, the package was build successfully but after installation, powerdns server was not able to start as it was searching for libgpgsqlbackend.so file in /usr/lib/powerdns/libgpgsqlbackend.so whereas as this file is present in /pdns/lib/powerdns/libgpgsqlbackend.so<br>

<br>Also new path of pdns.conf was not working.. pdns_server was still reading the file present at /etc/powerdns/pdns.conf and not at /pdns/cfg/pdns.conf<br><br>How do i resolve this ?? Am i missing some configuration ???<br>

<br>Regards, <br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 28, 2014 at 3:56 PM, Klaus Darilion <span dir="ltr"><<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is how we build our Debian packages:<br>
<br>
<br>
git clone <a href="https://github.com/PowerDNS/pdns" target="_blank">https://github.com/PowerDNS/<u></u>pdns</a><br>
cd pdns<br>
rm -rf debian<br>
ln -s debian-pdns debian<br>
vi debian/rules   ---> remove all backends and debs except<br>
                       pgsql (backends and debs on top of the file)<br>
                  ---> replace line 73 with<br>
                         ---with-modules="geo" \<br>
                          --enable-tools<br>
vi debian/changelog   ---> set the version to x.x-<mycompany>-1<br>
vi debian/control     ---> change Build-Depends on libbotan1.10-dev<br>
                           to libbotan1.8-dev<br>
mkdir pdns/docs/html<br>
autoreconf -i<br>
./bootstrap<br>
fakeroot dpkg-buildpackage -D -B -us -uc<br>
<br>
<br>
<br>
regards<span class="HOEnZb"><font color="#888888"><br>
Klaus</font></span><div><div class="h5"><br>
<br>
<br>
<br>
On 28.04.2014 06:03, Dharmesh wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi all,<br>
<br>
I was trying to build pdns deb package from source code of powerdns but<br>
i am not able to build the deb package properly.<br>
<br>
Following Steps are used by my for creation of deb package :-<br>
1. ./configure --with-modules="gpgsql" --without-lua --prefix=/usr<br>
2. make<br>
3. sudo checkinstall<br>
<br>
After this i get a deb package but the default path of pdns.conf file is<br>
at /usr/etc/ and not at /etc/powerdns/pdns.conf<br>
<br>
what all things i am missing above to make the above change happen.<br>
<br>
Regards,<br>
--<br>
Dharmesh Kumar<br>
Research Engineer<br>
Center for Development of Telematics<br>
Mehrauli, New Delhi-110 030<br>
(M) : +91-8130535993<br>
<br>
<br>
<br></div></div><div class="">
______________________________<u></u>_________________<br>
Pdns-users mailing list<br>
<a href="mailto:Pdns-users@mailman.powerdns.com" target="_blank">Pdns-users@mailman.powerdns.<u></u>com</a><br>
<a href="http://mailman.powerdns.com/mailman/listinfo/pdns-users" target="_blank">http://mailman.powerdns.com/<u></u>mailman/listinfo/pdns-users</a><br>
<br>
</div></blockquote>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Dharmesh Kumar<br>Research Engineer<br>Center for Development of Telematics<br>Mehrauli, New Delhi-110 030<br>(M) : +91-8130535993<br><br>
</div></div>