]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - pkgs/fail2ban/fail2ban.nm
Change file layout of the makefiles.
[people/ms/ipfire-3.x.git] / pkgs / fail2ban / fail2ban.nm
index 99337289e283d1c75046819cd94aaf3aa5f17f1c..0d204e028619c028a4b457b26226cab2b9800cda 100644 (file)
@@ -1,54 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = fail2ban
-PKG_VER        = 0.8.4
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Security/Tools
-PKG_URL        = http://fail2ban.sourceforge.net/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Ban IPs that make too many password failures.
+name       = fail2ban
+version    = 0.8.4
+release    = 1
 
-PKG_BUILD_DEPS+= python-devel
+groups     = Security/Tools
+url        = http://fail2ban.sourceforge.net/
+license    = GPLv2+
+summary    = Ban IPs that make too many password failures.
 
-
-define PKG_DESCRIPTION
+description
        Fail2ban scans log files like /var/log/pwdfail or
        /var/log/apache/error_log and bans IP that makes too many password
        failures. It updates firewall rules to reject the IP address.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-STAGE_BUILD = # nothing to do
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && python setup.py install --root=$(BUILDROOT)
-       -mkdir -pv $(BUILDROOT)/etc/logrotate.d/
-       cp -vf $(DIR_SOURCE)/fail2ban.logrotate $(BUILDROOT)/etc/logrotate.d/fail2ban 
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               python-devel
+       end
+
+       build
+               : # nothing to do
+       end
+
+       install
+               python setup.py install --root=%{BUILDROOT}
+               mkdir -pv %{BUILDROOT}/etc/logrotate.d/
+               cp -vf %{DIR_SOURCE}/fail2ban.logrotate %{BUILDROOT}/etc/logrotate.d/fail2ban
+       end
+end
+
+packages
+       package %{name}
+       end
+end