-
-
Notifications
You must be signed in to change notification settings - Fork 197
Description
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