diff options
author | Jorge Barroso | 2015-06-15 21:28:12 +0200 |
---|---|---|
committer | Jorge Barroso | 2015-06-15 21:28:12 +0200 |
commit | 7be38634f71744c2726dceae2f48da4177f09819 (patch) | |
tree | 10003745235e8cad420b0242bb5db5cb8875466a | |
download | aur-7be38634f71744c2726dceae2f48da4177f09819.tar.gz |
Initial import
-rw-r--r-- | .AURINFO | 16 | ||||
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 51 | ||||
-rw-r--r-- | ccs-auditd.service | 10 | ||||
-rw-r--r-- | ccs-tools.install | 14 | ||||
-rw-r--r-- | tomoyo.logrotate | 7 |
6 files changed, 117 insertions, 0 deletions
diff --git a/.AURINFO b/.AURINFO new file mode 100644 index 000000000000..a2279c0144fd --- /dev/null +++ b/.AURINFO @@ -0,0 +1,16 @@ +pkgbase = ccs-tools + pkgdesc = TOMOYO Linux 1.8.x userspace tools + pkgver = 1.8.3.20140601 + pkgrel = 1 + url = http://tomoyo.sourceforge.jp/ + install = ccs-tools.install + arch = any + license = GPL + depends = ncurses + conflicts = tomoyo-tools + source = http://sourceforge.jp/frs/redir.php?f=/tomoyo/49693/ccs-tools-1.8.3-20140601.tar.gz + source = ccs-auditd.service + source = tomoyo.logrotate + +pkgname = ccs-tools + diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..22a24b221b1b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = ccs-tools + pkgdesc = TOMOYO Linux 1.8.x userspace tools + pkgver = 1.8.3.20140601 + pkgrel = 1 + url = http://tomoyo.sourceforge.jp/ + install = ccs-tools.install + arch = any + license = GPL + depends = ncurses + conflicts = tomoyo-tools + source = http://sourceforge.jp/frs/redir.php?f=/tomoyo/49693/ccs-tools-1.8.3-20140601.tar.gz + source = ccs-auditd.service + source = tomoyo.logrotate + sha512sums = 3e4d3a0abaa2bebcad7388522bcd40a2979a6579ce271e2d61fc37c4a47f5b010ae730658c975c17c9917a28a5e1fb95361931ab757e9cd7c18d3cd8e55c7f29 + sha512sums = 4052b12950027a45ae7b061fb8da20fd3abca567f38aa8aefb0f2b9b77decd3c14f7f543ced315e065ca885dee431dd424602434a84f07fbbf3c8d7100b26164 + sha512sums = 8965822d88ce23eb6a0ed9f2be98cab703d3baa0235d31edb7ae053206f7a30a65ce737bb55570aabe6dd81ca5e2c3516e25078eea44fd8410417cedf00a0667 + +pkgname = ccs-tools + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..aff70069d52a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +#! /bin/bash +# Maintainer: jorge_barroso <jorge.barroso.11@gmail.com> + +pkgname=ccs-tools +_basever=1.8.3 +_timestamp=20140601 +pkgver=${_basever}.${_timestamp} +pkgrel=1 +pkgdesc='TOMOYO Linux 1.8.x userspace tools' +arch=('any') +url='http://tomoyo.sourceforge.jp/' +license=('GPL') +depends=('ncurses') +conflicts=('tomoyo-tools') +install=ccs-tools.install +_url_ccs="http://sourceforge.jp/frs/redir.php?f=/tomoyo/49693" +source=("${_url_ccs}/${pkgname}-${_basever}-${_timestamp}.tar.gz" + "ccs-auditd.service" + "tomoyo.logrotate") +sha512sums=('3e4d3a0abaa2bebcad7388522bcd40a2979a6579ce271e2d61fc37c4a47f5b010ae730658c975c17c9917a28a5e1fb95361931ab757e9cd7c18d3cd8e55c7f29' + '4052b12950027a45ae7b061fb8da20fd3abca567f38aa8aefb0f2b9b77decd3c14f7f543ced315e065ca885dee431dd424602434a84f07fbbf3c8d7100b26164' + '8965822d88ce23eb6a0ed9f2be98cab703d3baa0235d31edb7ae053206f7a30a65ce737bb55570aabe6dd81ca5e2c3516e25078eea44fd8410417cedf00a0667') + +build() { + cd "${srcdir}/ccs-tools" + make +} + +package() { + cd "${srcdir}/ccs-tools" + + make INSTALLDIR="${pkgdir}" install + + # place example programs in /usr/share/ccs/examples + install -m755 -d "${pkgdir}/usr/share/ccs/examples" + for i in examples/*.c; do + install -m644 ${i} "${pkgdir}/usr/share/ccs/${i}" + done + + # install systemd service + install -m755 -d "${pkgdir}/lib/systemd/system" + install -m644 "${srcdir}/ccs-auditd.service" \ + "${pkgdir}/lib/systemd/system/ccs-auditd.service" + + # install logrotate file + install -m755 -d "${pkgdir}/etc/logrotate.d" + install -m644 "${srcdir}/tomoyo.logrotate" "${pkgdir}/etc/logrotate.d/tomoyo" + + # create log folder + install -m700 -d "${pkgdir}/var/log/tomoyo" +}
\ No newline at end of file diff --git a/ccs-auditd.service b/ccs-auditd.service new file mode 100644 index 000000000000..0bcb0bd1f3a7 --- /dev/null +++ b/ccs-auditd.service @@ -0,0 +1,10 @@ +[Unit] +Description=TOMOYO Linux Auditing Daemon + +[Service] +Type=forking +ExecStart=/usr/sbin/ccs-auditd +ExecRestart=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target diff --git a/ccs-tools.install b/ccs-tools.install new file mode 100644 index 000000000000..58de9721f4a0 --- /dev/null +++ b/ccs-tools.install @@ -0,0 +1,14 @@ +#! /bin/bash + +post_install () { + echo + echo " * Add 'ccs-auditd' to DAEMONS to enable logging" + echo + echo " * systemd users can use the ccs-auditd.service unit" + echo + echo " * The configuration file for this daemon is located in" + echo " /etc/ccs/tools/auditd.conf" + echo + echo " * Logrotate options can be changed in /etc/logrotate.d/tomoyo" + echo +} diff --git a/tomoyo.logrotate b/tomoyo.logrotate new file mode 100644 index 000000000000..eb6345b216e5 --- /dev/null +++ b/tomoyo.logrotate @@ -0,0 +1,7 @@ +/var/log/tomoyo/*.log { + weekly + rotate 4 + missingok + notifempty + nocreate +} |