Skip to content

CentOS 7 SPEC File wanted? :-) #35

@BerndHelber

Description

@BerndHelber

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

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions