summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGI_Jack2021-08-14 23:26:37 -0400
committerGI_Jack2021-08-14 23:26:37 -0400
commitb6da2b7cf93e6d3ecea0932fb6c8fe30a4c9f528 (patch)
treeec802c7165348859de2136bb83c6dee8c99aa433
parent691ffa9f9e8275b793e45db7ff369884df8b10b5 (diff)
downloadaur-psad.tar.gz
added the logrotate file, along with most of the misc crap
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD13
2 files changed, 14 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a292752830ff..53c8100abb64 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo(replacement shim) v8
-# Fri Aug 13 04:09:16 PM EDT 2021
+# Sat Aug 14 11:26:31 PM EDT 2021
pkgbase = psad
pkgdesc = Port Scan Attack Detector: Makes use of iptables log messages to detect, alert, and (optionally) block port scans and other suspect traffic
pkgver = 2.4.6
- pkgrel = 2
+ pkgrel = 3
url = http://cipherdyne.org/psad/
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index bb512986a0c6..dfae4d2f3d48 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@
pkgname=psad
pkgver=2.4.6
-pkgrel=2
+pkgrel=3
pkgdesc='Port Scan Attack Detector: Makes use of iptables log messages to detect, alert, and (optionally) block port scans and other suspect traffic'
arch=('i686' 'x86_64')
url='http://cipherdyne.org/psad/'
@@ -70,6 +70,17 @@ package () {
cp "$srcdir/psadwatchd.service" "$pkgdir/usr/lib/systemd/system/psadwatchd.service"
cp "$srcdir/kmsgsd.service" "$pkgdir/usr/lib/systemd/system/kmsgsd.service"
+ # Logrotate file
+ install -Dm 644 misc/logrotate.psad "${pkgdir}/etc/logrotate.d/psad"
+
+ # misc crap
+ for file in misc/*.pl;do
+ install -Dm444 ${file} "${pkgdir}/usr/lib/psad/${file}"
+ done
+
+ # pscan.
+ install -Dm 644 misc/pscan "${pkgdir}/usr/bin/pscan"
+
# Fix systemd unit
# Fix the config
sed -e "s|/usr/sbin|/usr/bin|g" "$pkgdir/usr/lib/systemd/system/psad.service" -i