Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=ryuotesting5.git;a=commitdiff;h=13d4e3a72298e5afd0645e7d286e1c8f6ae16e1a

commit 13d4e3a72298e5afd0645e7d286e1c8f6ae16e1a
Author: James Buren <[email protected]>
Date:   Fri Jul 20 23:32:23 2012 -0500

fail2ban-0.8.4-2-x86_64
* convert to systemd schema

diff --git a/source/network-extra/fail2ban/FrugalBuild 
b/source/network-extra/fail2ban/FrugalBuild
index 5dd9acb..99d4b9f 100644
--- a/source/network-extra/fail2ban/FrugalBuild
+++ b/source/network-extra/fail2ban/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=fail2ban
pkgver=0.8.4
-pkgrel=1
+pkgrel=2
pkgdesc="Bans IP that make too many password failures"
depends=('iptables' 'whois')
groups=('network-extra')
@@ -12,13 +12,17 @@ _F_sourceforge_subdir="fail2ban-stable/"
_F_sourceforge_ext=".tar.bz2"
Finclude sourceforge
source=($source fail2ban-0.8.4-cve2009-5023.patch 
fail2ban-0.8.4-sshd-breakin.patch \
-       fail2ban-0.8.4-hashlib.patch rc.fail2ban)
+       fail2ban-0.8.4-hashlib.patch rc.fail2ban fail2ban.service)
sha1sums=('0816a9f8d54013dc9b395284caff3c54f44377d8' \
'73cc35b8cc823e0a1d5f84aa1791be329cc38e2d' \
'c9780ec64a8e59cee3c74be2863b3816ff6b16e8' \
'2385a85135b9040239901d381fb2cec564f7463b' \
-          'e940614b9fd6dcd9f95b4f04da942436a1ce7b05')
+          'e940614b9fd6dcd9f95b4f04da942436a1ce7b05' \
+          '51975cc4be12704eedffccdb7853c3e815988174')
backup=(etc/fail2ban/{fail2ban,jail}.conf)
+_F_sysvinit_units=(fail2ban)
+_F_systemd_units=(fail2ban=)
+Finclude systemd

build() {
Fbuild
@@ -27,9 +31,10 @@ build() {
Frm var/run
Fmkdir /etc/tmpfiles.d
cat > $Fdestdir/etc/tmpfiles.d/fail2ban.conf << EOF
-D /var/run/fail2ban 0755 root root -
+d /var/run/fail2ban 0755 root root -
EOF
-
+       Ffile /lib/systemd/system/fail2ban.service
+       Fgenscriptlet
}

# optimization OK
diff --git a/source/network-extra/fail2ban/fail2ban.service 
b/source/network-extra/fail2ban/fail2ban.service
new file mode 100644
index 0000000..1351ff9
--- /dev/null
+++ b/source/network-extra/fail2ban/fail2ban.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=fail2ban daemon
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/fail2ban-client start
+ExecStop=/usr/bin/fail2ban-client stop
+Type=oneshot
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to