Make RPMs to include new sample files.
authorBo Peng <pengbo@sraoss.co.jp>
Tue, 11 Aug 2020 08:34:49 +0000 (17:34 +0900)
committerBo Peng <pengbo@sraoss.co.jp>
Tue, 11 Aug 2020 08:34:49 +0000 (17:34 +0900)
src/pgpool.spec

index 63e24f61578332a7ea8be2f217c0f96045800c15..4b16415fe6a8d37c9679425928d804cd94b5e756 100644 (file)
@@ -135,6 +135,7 @@ mv %{buildroot}%{_sysconfdir}/%{short_name}/pcp.conf.sample %{buildroot}%{_sysco
 mv %{buildroot}%{_sysconfdir}/%{short_name}/pgpool.conf.sample %{buildroot}%{_sysconfdir}/%{short_name}/pgpool.conf
 mv %{buildroot}%{_sysconfdir}/%{short_name}/pool_hba.conf.sample %{buildroot}%{_sysconfdir}/%{short_name}/pool_hba.conf
 touch %{buildroot}%{_sysconfdir}/%{short_name}/pool_passwd
+touch %{buildroot}%{_sysconfdir}/%{short_name}/pgpool_node_id
 
 %if %{systemd_enabled}
 install -d %{buildroot}%{_unitdir}
@@ -254,10 +255,12 @@ fi
 %{_initrddir}/pgpool
 %endif
 %defattr(600,postgres,postgres,-)
-%{_sysconfdir}/%{short_name}/pgpool.conf.sample-master-slave
+%{_sysconfdir}/%{short_name}/pgpool.conf.sample-logical
+%{_sysconfdir}/%{short_name}/pgpool.conf.sample-raw
 %{_sysconfdir}/%{short_name}/pgpool.conf.sample-replication
+%{_sysconfdir}/%{short_name}/pgpool.conf.sample-slony
+%{_sysconfdir}/%{short_name}/pgpool.conf.sample-snapshot
 %{_sysconfdir}/%{short_name}/pgpool.conf.sample-stream
-%{_sysconfdir}/%{short_name}/pgpool.conf.sample-logical
 %defattr(755,postgres,postgres,-)
 %{_sysconfdir}/%{short_name}/failover.sh.sample
 %{_sysconfdir}/%{short_name}/follow_master.sh.sample
@@ -266,6 +269,7 @@ fi
 %{_sysconfdir}/%{short_name}/recovery_2nd_stage.sample
 %attr(600,postgres,postgres) %config(noreplace) %{_sysconfdir}/%{short_name}/*.conf
 %attr(600,postgres,postgres) %config(noreplace) %{_sysconfdir}/%{short_name}/pool_passwd
+%attr(600,postgres,postgres) %config(noreplace) %{_sysconfdir}/%{short_name}/pgpool_node_id
 %config(noreplace) %{_sysconfdir}/sysconfig/pgpool
 
 %files devel