diff options
author | jbj <devnull@localhost> | 2001-05-13 17:55:58 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2001-05-13 17:55:58 +0000 |
commit | 87c15895a05f100b8a6eb26c17f8742f2b1b3df2 (patch) | |
tree | b3bf9931465e77863fcb330eb12856bbb3cff6c1 /rpm.spec.in | |
parent | 1da20d37d8db366a0607614a2a030dc408f97b91 (diff) | |
download | rpm-87c15895a05f100b8a6eb26c17f8742f2b1b3df2.tar.gz rpm-87c15895a05f100b8a6eb26c17f8742f2b1b3df2.tar.bz2 rpm-87c15895a05f100b8a6eb26c17f8742f2b1b3df2.zip |
- add cron/logrotate scripts to save installed package filenames.
CVS patchset: 4777
CVS date: 2001/05/13 17:55:58
Diffstat (limited to 'rpm.spec.in')
-rw-r--r-- | rpm.spec.in | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/rpm.spec.in b/rpm.spec.in index 5e547a454..d4ba89e25 100644 --- a/rpm.spec.in +++ b/rpm.spec.in @@ -131,11 +131,22 @@ rm -rf $RPM_BUILD_ROOT make DESTDIR="$RPM_BUILD_ROOT" install +%ifos linux + +# Save list of packages through cron +mkdir -p ${RPM_BUILD_ROOT}/etc/cron.daily +install -m 755 scripts/rpm.daily ${RPM_BUILD_ROOT}/etc/cron.daily/rpm + +mkdir -p ${RPM_BUILD_ROOT}/etc/logrotate.d +install -m 755 scripts/rpm.log ${RPM_BUILD_ROOT}/etc/logrotate.d/rpm + mkdir -p $RPM_BUILD_ROOT/etc/rpm cat << E_O_F > $RPM_BUILD_ROOT/etc/rpm/macros.db1 %%_dbapi 1 E_O_F +%endif + %if %{with_apidocs} gzip -9n apidocs/man/man*/* || : %endif @@ -208,8 +219,14 @@ fi %defattr(-,root,root) %doc RPM-PGP-KEY RPM-GPG-KEY CHANGES GROUPS doc/manual/[a-z]* %attr(0755, @RPMUSER@, @RPMGROUP@) /bin/rpm + +%ifos linux +%config(missingok) /etc/cron.daily/rpm +%config(missingok) /etc/logrotate.d/rpm %dir /etc/rpm %config(missingok) /etc/rpm/macros.db1 +%endif + %attr(0755, @RPMUSER@, @RPMGROUP@) %{__prefix}/bin/rpm2cpio %attr(0755, @RPMUSER@, @RPMGROUP@) %{__prefix}/bin/gendiff %attr(0755, @RPMUSER@, @RPMGROUP@) %{__prefix}/bin/rpmdb @@ -228,6 +245,7 @@ fi %attr(0755, @RPMUSER@, @RPMGROUP@) %{__prefix}/lib/rpm/convertrpmrc.sh %attr(0644, @RPMUSER@, @RPMGROUP@) %{__prefix}/lib/rpm/macros %attr(0755, @RPMUSER@, @RPMGROUP@) %{__prefix}/lib/rpm/mkinstalldirs +%attr(0755, @RPMUSER@, @RPMGROUP@) %{__prefix}/lib/rpm/rpm.* %attr(0755, @RPMUSER@, @RPMGROUP@) %{__prefix}/lib/rpm/rpm[deiukqv] %attr(0644, @RPMUSER@, @RPMGROUP@) %{__prefix}/lib/rpm/rpmpopt* %attr(0644, @RPMUSER@, @RPMGROUP@) %{__prefix}/lib/rpm/rpmrc |