]> granicus.if.org Git - pdns/commitdiff
Replace some hardcoded variables with macros
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 27 Dec 2014 11:46:26 +0000 (12:46 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 12 Jan 2015 16:53:04 +0000 (17:53 +0100)
pdns.spec

index 91bd679bd942174b579b09c805fae2fc67abbc83..28b1f315cb5c08c7feee93a5e9450a49c045286f 100644 (file)
--- a/pdns.spec
+++ b/pdns.spec
@@ -24,21 +24,21 @@ backend'.
 
 %files
 %defattr(-,root,root)
-/usr/sbin/pdns_server
-/usr/bin/pdns_control
-/usr/bin/zone2sql
-/usr/bin/zone2json
-/usr/bin/pdnssec
-#/usr/bin/zone2ldap
-/usr/man/man8/pdns_control.8
-/usr/man/man8/pdns_server.8
-/usr/man/man8/zone2sql.8
-/usr/man/man8/pdnssec.8
-/usr/share/doc/pdns/*.sql
+%{_sbindir}/pdns_server
+%{_bindir}/pdns_control
+%{_bindir}/zone2sql
+%{_bindir}/zone2json
+%{_bindir}/pdnssec
+#%{_bindir}/zone2ldap
+%{_mandir}/man8/pdns_control.8
+%{_mandir}/man8/pdns_server.8
+%{_mandir}/man8/zone2sql.8
+%{_mandir}/man8/pdnssec.8
+%{_datadir}/doc/pdns/*.sql
 
-%dir /etc/powerdns/
-%config(noreplace) /etc/powerdns/pdns.conf
-%config /etc/init.d/pdns
+%dir %{_sysconfdir}/powerdns/
+%config(noreplace) %{_sysconfdir}/powerdns/pdns.conf
+%config %{_sysconfdir}/init.d/pdns
 
 %post
 echo Remember to create a 'pdns' user before starting pdns
@@ -56,20 +56,20 @@ These are the tools
 
 %files -n pdns-tools
 %defattr(-,root,root)
-/usr/bin/dnsbulktest
-/usr/bin/dnsgram
-/usr/bin/dnsreplay
-/usr/bin/dnsscan
-/usr/bin/dnsscope
-/usr/bin/dnsdist
-/usr/bin/dnstcpbench
-/usr/bin/dnswasher
-/usr/bin/notify
-/usr/bin/nproxy
-/usr/bin/nsec3dig
-/usr/bin/saxfr
-/usr/man/man8/dnsreplay.1
-/usr/man/man8/dnsscope.1
-/usr/man/man8/dnswasher.1
-/usr/man/man1/dnstcpbench.1
-/usr/man/man1/dnsdist.1
+%{_bindir}/dnsbulktest
+%{_bindir}/dnsgram
+%{_bindir}/dnsreplay
+%{_bindir}/dnsscan
+%{_bindir}/dnsscope
+%{_bindir}/dnsdist
+%{_bindir}/dnstcpbench
+%{_bindir}/dnswasher
+%{_bindir}/notify
+%{_bindir}/nproxy
+%{_bindir}/nsec3dig
+%{_bindir}/saxfr
+%{_mandir}/man8/dnsreplay.1
+%{_mandir}/man8/dnsscope.1
+%{_mandir}/man8/dnswasher.1
+%{_mandir}/man1/dnstcpbench.1
+%{_mandir}/man1/dnsdist.1