Hello community,

here is the log from the commit of package aide for openSUSE:Factory checked in 
at 2014-02-02 07:28:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/aide (Old)
 and      /work/SRC/openSUSE:Factory/.aide.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "aide"

Changes:
--------
--- /work/SRC/openSUSE:Factory/aide/aide.changes        2014-01-16 
14:12:34.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.aide.new/aide.changes   2014-02-02 
07:28:56.000000000 +0100
@@ -1,0 +2,5 @@
+Thu Jan 23 08:33:09 UTC 2014 - [email protected]
+
+- seperate a -test package to help with externalized testing.
+
+-------------------------------------------------------------------

New:
----
  aide-test.sh

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ aide.spec ++++++
--- /var/tmp/diff_new_pack.HkZRfp/_old  2014-02-02 07:28:57.000000000 +0100
+++ /var/tmp/diff_new_pack.HkZRfp/_new  2014-02-02 07:28:57.000000000 +0100
@@ -35,6 +35,7 @@
 Source0:        http://www.cs.tut.fi/~rammer/aide-%{version}.tar.bz2
 Source1:        aide.conf
 Source2:        aide-cron_daily.sh
+Source3:        aide-test.sh
 Patch1:         aide-%{version}-as-needed.patch
 Patch2:         aide-no_m4_dir.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -43,6 +44,13 @@
 %description
 AIDE is an intrusion detection system that checks file integrity.
 
+%package test
+Summary:        Simple AIDE testing
+Group:          Productivity/Security
+
+%description test
+Simple AIDE test script for externalized testing.
+
 %prep
 %setup -q
 %patch1 -p1
@@ -70,8 +78,11 @@
 install -m 700 -d $RPM_BUILD_ROOT/var/lib/aide
 install -m 700 -d $RPM_BUILD_ROOT/etc
 install -m 600    %{S:1} $RPM_BUILD_ROOT/etc/aide.conf
+install -m 700 %{S:3} $RPM_BUILD_ROOT/usr/bin/
 mkdir -p doc/examples/etc/cron.daily/
 cp -a %{S:2} doc/examples/etc/cron.daily/aide.sh
+
+%check
 mkdir /var/tmp/aide-test
 export TESTDIR=/var/tmp/aide-test
 make DESTDIR=$TESTDIR install
@@ -98,4 +109,8 @@
 /var/lib/aide
 %config(noreplace) /etc/aide.conf
 
+%files test
+%defattr(-,root,root)
+/usr/bin/aide-test.sh
+
 %changelog

++++++ aide-test.sh ++++++
#!/bin/sh
export TESTDIR=`mktemp -d /tmp/aide.XXXXXX`
install -m 700 -d $TESTDIR/var/lib/aide
install -m 700 -d $TESTDIR/etc
install -m 600  /etc/aide.conf $TESTDIR/etc/aide.conf.new
sed -e "s#/var/lib/aide#$TESTDIR/var/lib/aide#g" <$TESTDIR/etc/aide.conf.new 
>$TESTDIR/etc/aide.conf
/usr/bin/aide -c $TESTDIR/etc/aide.conf --init || exit 1
mv $TESTDIR/var/lib/aide/aide.db.new $TESTDIR/var/lib/aide/aide.db
/usr/bin/aide -c $TESTDIR/etc/aide.conf --check --verbose || exit 1

rm -rf $TESTDIR
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to