]> TLD Linux GIT Repositories - packages/postgresql.git/commitdiff
- doh, merged too much
authorMarcin Krol <hawk@tld-linux.org>
Mon, 3 Dec 2018 17:32:10 +0000 (17:32 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Mon, 3 Dec 2018 17:32:10 +0000 (17:32 +0000)
postgresql.logrotate [deleted file]
postgresql.spec

diff --git a/postgresql.logrotate b/postgresql.logrotate
deleted file mode 100644 (file)
index 1001b95..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/var/log/postgresql/*.log
-{
-       olddir /var/log/archive/postgresql
-       notifempty
-       missingok
-       copytruncate
-}
index 9f2a18ab02756c9b1b20b3541ad3c0c4520ac959..920b85393b8936c96347361a5277e278e9f01096 100644 (file)
@@ -38,7 +38,6 @@ Source1:      postgresql.init
 Source2:       pgsql-Database-HOWTO-html.tar.gz
 # Source2-md5: 5b656ddf1db41965761f85204a14398e
 Source3:       postgresql.sysconfig
-Source4:       postgresql.logrotate
 Patch0:                postgresql-conf.patch
 Patch1:                postgresql-absolute_dbpaths.patch
 Patch2:                postgresql-ecpg-includedir.patch
@@ -550,7 +549,7 @@ done
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{logrotate.d,rc.d/init.d,sysconfig}} \
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
        $RPM_BUILD_ROOT/var/{lib/postgresql/%{pgsqlversion},log/{archive,}/postgresql,run/postgresql} \
        $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
        $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
@@ -574,7 +573,6 @@ done
 
 sed -e 's,@pgsqlbindir@,%{pgsqllibdir}/bin,g; s,@pgsqlversion@,%{pgsqlversion},g;' %{SOURCE1} >$RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql-%{pgsqlversion}
 sed -e 's,@pgsqlversion@,%{pgsqlversion},g;' %{SOURCE3} >$RPM_BUILD_ROOT/etc/sysconfig/postgresql-%{pgsqlversion}
-cp -a %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/postgresql
 
 install -d howto
 tar zxf %{SOURCE2} -C howto