audit:moved into main repo for pisi 2.0

This commit is contained in:
2016-03-21 08:17:48 +02:00
parent f7c32373c4
commit 4d2b7becd3
6 changed files with 199 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def setup():
autotools.autoreconf("-vif")
autotools.configure("--with-libcap-ng=yes \
--enable-gssapi-krb5=no \
--enable-systemd=no \
--with-python=yes \
--disable-static")
def build():
autotools.make()
def check():
autotools.make("-j1 check")
def install():
autotools.rawInstall('DESTDIR="%s"' % get.installDIR())
# remove RH specific bits
pisitools.removeDir("/etc/sysconfig")
pisitools.removeDir("/etc/rc.d")
# Create data directories
pisitools.dodir("/var/log/audit")
pisitools.dodir("/var/spool/audit")
# Disable zos-remote plugin to get rid of deps. like cyrus-sasl
pisitools.remove("/usr/share/man/man8/audispd-zos-remote.8")
pisitools.remove("/usr/share/man/man5/zos-remote.conf.5")
pisitools.dodoc("AUTHORS", "ChangeLog", "THANKS", "TODO", "README", "COPYING")
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
os.system("ln -s /usr/sbin/audispd /sbin/audispd")
os.system("ln -s /usr/sbin/auditd /sbin/auditd")
os.system("/bin/systemctl enable auditd.service")
+24
View File
@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
from comar.service import *
serviceType = "server"
serviceDesc = _({"en": "AUDIT Daemon",
"tr": "AUDIT Servisi"})
serviceDefault = "on"
@synchronized
def start():
reply = startService(command="/usr/sbin/auditd",
pidfile="/run/auditd.pid",
donotify=True)
if reply == 0:
run("/usr/sbin/auditctl -R /etc/audit/rules.d/audit.rules")
@synchronized
def stop():
stopService(pidfile="/run/auditd.pid",
donotify=True)
run("/usr/sbin/auditctl -D")
def status():
return isServiceRunning("/run/auditd.pid")
@@ -0,0 +1,25 @@
diff -Nuar audit-2.3.6.orig/audisp/plugins/Makefile.am audit-2.3.6/audisp/plugins/Makefile.am
--- audit-2.3.6.orig/audisp/plugins/Makefile.am 2014-04-11 22:49:23.000000000 +0300
+++ audit-2.3.6/audisp/plugins/Makefile.am 2014-05-17 01:46:10.260461732 +0300
@@ -22,7 +22,7 @@
CONFIG_CLEAN_FILES = *.loT *.rej *.orig
-SUBDIRS = builtins zos-remote remote
+SUBDIRS = builtins remote
#SUBDIRS = builtins zos-remote
if HAVE_PRELUDE
SUBDIRS += prelude
diff -Nuar audit-2.3.6.orig/configure.ac audit-2.3.6/configure.ac
--- audit-2.3.6.orig/configure.ac 2014-04-11 22:49:33.000000000 +0300
+++ audit-2.3.6/configure.ac 2014-05-17 01:44:36.753791021 +0300
@@ -291,7 +291,7 @@
AC_SUBST(LIBPRELUDE_CFLAGS)
AC_SUBST(LIBPRELUDE_LDFLAGS)
-AC_OUTPUT(Makefile lib/Makefile lib/test/Makefile auparse/Makefile auparse/test/Makefile src/Makefile src/mt/Makefile src/libev/Makefile src/test/Makefile swig/Makefile docs/Makefile init.d/Makefile audisp/Makefile audisp/plugins/Makefile audisp/plugins/builtins/Makefile audisp/plugins/prelude/Makefile audisp/plugins/remote/Makefile audisp/plugins/zos-remote/Makefile bindings/Makefile bindings/python/Makefile tools/Makefile tools/aulast/Makefile tools/aulastlog/Makefile tools/ausyscall/Makefile tools/auvirt/Makefile)
+AC_OUTPUT(Makefile lib/Makefile lib/test/Makefile auparse/Makefile auparse/test/Makefile src/Makefile src/mt/Makefile src/libev/Makefile src/test/Makefile swig/Makefile docs/Makefile init.d/Makefile audisp/Makefile audisp/plugins/Makefile audisp/plugins/builtins/Makefile audisp/plugins/prelude/Makefile audisp/plugins/remote/Makefile bindings/Makefile bindings/python/Makefile tools/Makefile tools/aulast/Makefile tools/aulastlog/Makefile tools/ausyscall/Makefile tools/auvirt/Makefile)
echo .
echo "
+83
View File
@@ -0,0 +1,83 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>audit</Name>
<Homepage>http://people.redhat.com/sgrubb/audit/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2+</License>
<IsA>app:console</IsA>
<IsA>library</IsA>
<IsA>service</IsA>
<Summary>User space tools for kernel auditing</Summary>
<Description>audit contains the user space utilities for storing and searching the audit records generated by the audit subsystem in the Linux 2.6 kernel.</Description>
<Archive sha1sum="423d181dc668d2cdecc66c5b5308ed6c4f301476" type="targz">http://people.redhat.com/sgrubb/audit/audit-2.3.7.tar.gz</Archive>
<BuildDependencies>
<Dependency>python-devel</Dependency>
<Dependency>kernel-headers</Dependency>
<Dependency>libcap-ng-devel</Dependency>
<Dependency>tcp-wrappers-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">without_openldap.patch</Patch>
</Patches>
</Source>
<Package>
<Name>audit</Name>
<RuntimeDependencies>
<Dependency>libcap-ng</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="executable">/usr/sbin</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="data">/var/log/audit</Path>
<Path fileType="data">/var/spool/audit</Path>
</Files>
<Provides>
<COMAR script="service.py">System.Service</COMAR>
<COMAR script="package.py">System.Package</COMAR>
</Provides>
</Package>
<Package>
<Name>python-audit</Name>
<Summary>Python bindings for audit</Summary>
<RuntimeDependencies>
<Dependency release="current">audit</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib/python*</Path>
</Files>
</Package>
<Package>
<Name>audit-devel</Name>
<PartOf>system.devel</PartOf>
<Summary>Development files for audit</Summary>
<RuntimeDependencies>
<Dependency release="current">audit</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="man">/usr/share/man/man3</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2016-03-21</Date>
<Version>2.3.7</Version>
<Comment>Version bump.</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
</History>
</PISI>
+18
View File
@@ -0,0 +1,18 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>audit</Name>
<Summary xml:lang="tr">Linux çekirdeğinin 2.6 sürümü için inceleme/denetleme araçları</Summary>
<Description xml:lang="tr">audit Linux çekirdeğinin 2.6 sürümünün inceleme altyapısı tarafından üretilen inceleme kayıtlarını aramak ve saklamak için kullanılan araçları içerir.</Description>
</Source>
<Package>
<Name>python-audit</Name>
<Summary xml:lang="tr">audit için Python bağlayıcısı</Summary>
</Package>
<Package>
<Name>audit-devel</Name>
<Summary xml:lang="tr">audit için geliştirme dosyaları</Summary>
</Package>
</PISI>