apache-ultimate-bad-bot-blocker
apache-ultimate-bad-bot-blocker copied to clipboard
CentOS 7 SPEC File wanted? :-)
Not a real issue.... i was wondering myself if you're interested having an RPM SPEC FIle?
I was not really bored... but i thought i provide you a SPEC File for CentOS 7 if you're interested. If necessary i could provide a SPEC File for SLES12/SuSE too.
[teleadm@meyerlanski SPECS]$ cat badblocker.spec
Summary: badblocker
Name: badblocker
Version: 0.0.1
Release: 1
Group: Utilities
Source: badblocker.tar
BuildRoot: /var/tmp/%{name}-buildroot
Prefix: /etc/httpd/custom.d
License: BSD
BuildArch: noarch
Requires: httpd man-db man-pages
%description badblockertools path is: /etc/httpd/customd.d
%prep %setup -c -q
%install cp -a ./ $RPM_BUILD_ROOT/
create directories where the files will be located
mkdir -p $RPM_BUILD_ROOT/etc/httpd/custom.d mkdir -p $RPM_BUILD_ROOT/usr/share/man
%clean rm -rf $RPM_BUILD_ROOT
%changelog
%files %defattr(-,root,root) %{_mandir}/man1/badblocker.1* %dir /etc/httpd/custom.d /etc/httpd/custom.d/bad-referrer-words.conf /etc/httpd/custom.d/blacklist-ips.conf /etc/httpd/custom.d/blacklist-user-agents.conf /etc/httpd/custom.d/globalblacklist.conf /etc/httpd/custom.d/whitelist-domains.conf /etc/httpd/custom.d/whitelist-ips.conf
Sorry for late reply @BerndHelber thanks for this. 👍
Been so busy bringing all the Travis CI generator scripts online that I have not even had time to look at this but thank you. As soon as I am done with all the current mods on the Travis CI build process I will get to this and yes please if you could provide a SPEC File for SLES12/SuSE too that would be great.
How's the new 2.4 test unit version without access_compat working for you ?
I've now created two separate versions of the blocker in folders Apache_2.2 and Apache_2.4 and deprecated the existing version. Busy updating README and configuration for each version which will be online later today.
I'm almost done with scripting so as of later today the version in Apache_2.4 will be generated with all the latest bots and referrers and no longer be a test unit.
Travis however is not playing nicely with me though during testing on the 2.4 version but I'll figure it out eventually 😁 Travis can give you grey hairs.
First.... i'm working on the SPEC File for CentOS and wrote a man page according to your Github Documentation too.
First Step.. the CentOS 7 SPEC File
Second Step the Man Page
The Idea behind the Man Page is that you can provide Documentation too. I know it needs a little bit more shape, and it looks more like a first version. In the End of the day it might be useful for People who dont have a Web Browser at their Work Place.
O i forgot...
Following FIles are included in the RPM
/etc/httpd/custom.d/bad-referrer-words.conf /etc/httpd/custom.d/blacklist-ips.conf /etc/httpd/custom.d/blacklist-user-agents.conf /etc/httpd/custom.d/globalblacklist.conf /etc/httpd/custom.d/whitelist-domains.conf /etc/httpd/custom.d/whitelist-ips.conf %attr (4755, root, root) /usr/sbin/update-apacheblocker.sh