]> git.ipfire.org Git - thirdparty/pdns.git/blob - build-scripts/rpm-build-instruction
make static building work again
[thirdparty/pdns.git] / build-scripts / rpm-build-instruction
1 #!/bin/sh
2 #LIBS="-lkrb5 -lk5crypto -lpgport -lgssapi_krb5 -lkrb5support -lgssapi_krb5 -lcom_err -lnsl -lresolv" \
3 CC="ccache gcc" CXX="ccache g++" ./configure \
4 --with-modules="mysql gmysql gpgsql gsqlite gsqlite3 pipe pdns geo" \
5 --with-dynmodules="" \
6 --enable-static-binaries \
7 --with-pgsql-lib=/opt/postgresql/lib --with-pgsql-includes=/opt/postgresql/include \
8 --prefix=/usr \
9 --sysconfdir=/etc/powerdns \
10 --mandir=/usr/man/ \
11 && make clean && make && \
12 fakeroot /bin/sh -c "rm -rf /tmp/pdns ; DESTDIR=/tmp/pdns make install-strip" &&
13 fakeroot rm /tmp/pdns/usr/lib/*.a /tmp/pdns/usr/lib/*.la &&
14 fakeroot mkdir -p /tmp/pdns/etc/init.d &&
15 fakeroot cp pdns/pdns /tmp/pdns/etc/init.d/pdns &&
16 fakeroot mkdir -p /tmp/pdns/etc/powerdns &&
17 fakeroot mv /tmp/pdns/etc/powerdns/pdns.conf-dist /tmp/pdns/etc/powerdns/pdns.conf &&
18 fakeroot rm /tmp/pdns/usr/bin/zone2ldap &&
19 fakeroot rpmbuild -bb pdns.spec
20