[Pdns-users] Building PDNS Debian Package from Source

Dharmesh cutedharmesh at gmail.com
Fri May 2 10:20:10 UTC 2014


Hi,
Thanks for your help. That worked for me.

I have few more queries :

1. How can i build a pdns-static deb package.. do we need to specify some
other options during dpkg-buildpackage

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

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

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

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

How do i resolve this ?? Am i missing some configuration ???

Regards,



On Mon, Apr 28, 2014 at 3:56 PM, Klaus Darilion <
klaus.mailinglists at pernau.at> wrote:

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


-- 
Dharmesh Kumar
Research Engineer
Center for Development of Telematics
Mehrauli, New Delhi-110 030
(M) : +91-8130535993
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20140502/1f78e2f0/attachment.html>


More information about the Pdns-users mailing list