mirror of
https://github.com/firehol/firehol.git
synced 2024-06-30 19:02:21 +00:00
Patch 901194, patch for .spec
This commit is contained in:
parent
7b666e6212
commit
1944518343
33
.spec
33
.spec
@ -9,6 +9,7 @@ URL: http://firehol.sourceforge.net
|
||||
Vendor: Costa Tsaousis
|
||||
Packager: Costa Tsaousis
|
||||
BuildArchitectures: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-buildroot
|
||||
|
||||
requires: bash >= 2.04
|
||||
requires: fileutils >= 4.0.36
|
||||
@ -45,26 +46,29 @@ The default configuration file will allow only client traffic
|
||||
on all interfaces.
|
||||
|
||||
%prep
|
||||
%{__rm} -rf %{buildroot}
|
||||
%setup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
test ! -d /etc/firehol && mkdir /etc/firehol
|
||||
test ! -d /etc/firehol/examples && mkdir /etc/firehol/examples
|
||||
mkdir -p %{buildroot}/etc/firehol/examples
|
||||
test -f /etc/firehol.conf -a ! -f /etc/firehol/firehol.conf && mv -f /etc/firehol.conf /etc/firehol/firehol.conf
|
||||
install -m 750 firehol.sh /etc/init.d/firehol
|
||||
install -m 640 examples/client-all.conf /etc/firehol/firehol.conf
|
||||
mkdir -p %{buildroot}/etc/init.d
|
||||
install -m 750 firehol.sh %{buildroot}/etc/init.d/firehol
|
||||
install -m 640 examples/client-all.conf %{buildroot}/etc/firehol/firehol.conf
|
||||
mkdir -p %{buildroot}/%{_mandir}/man1
|
||||
mkdir -p %{buildroot}/%{_mandir}/man5
|
||||
gzip -9 man/firehol.1
|
||||
gzip -9 man/firehol.conf.5
|
||||
install -m 644 man/firehol.1.gz /usr/man/man1/firehol.1.gz
|
||||
install -m 644 man/firehol.conf.5.gz /usr/man/man5/firehol.conf.5.gz
|
||||
install -m 644 examples/home-adsl.conf /etc/firehol/examples/home-adsl.conf
|
||||
install -m 644 examples/home-dialup.conf /etc/firehol/examples/home-dialup.conf
|
||||
install -m 644 examples/office.conf /etc/firehol/examples/office.conf
|
||||
install -m 644 examples/server-dmz.conf /etc/firehol/examples/server-dmz.conf
|
||||
install -m 644 examples/client-all.conf /etc/firehol/examples/client-all.conf
|
||||
install -m 644 examples/lan-gateway.conf /etc/firehol/examples/lan-gateway.conf
|
||||
install -m 644 man/firehol.1.gz %{buildroot}/%{_mandir}/man1/firehol.1.gz
|
||||
install -m 644 man/firehol.conf.5.gz %{buildroot}/%{_mandir}/man5/firehol.conf.5.gz
|
||||
install -m 644 examples/home-adsl.conf %{buildroot}/etc/firehol/examples/home-adsl.conf
|
||||
install -m 644 examples/home-dialup.conf %{buildroot}/etc/firehol/examples/home-dialup.conf
|
||||
install -m 644 examples/office.conf %{buildroot}/etc/firehol/examples/office.conf
|
||||
install -m 644 examples/server-dmz.conf %{buildroot}/etc/firehol/examples/server-dmz.conf
|
||||
install -m 644 examples/client-all.conf %{buildroot}/etc/firehol/examples/client-all.conf
|
||||
install -m 644 examples/lan-gateway.conf %{buildroot}/etc/firehol/examples/lan-gateway.conf
|
||||
|
||||
%pre
|
||||
|
||||
@ -81,6 +85,7 @@ fi
|
||||
/sbin/chkconfig --del firehol
|
||||
sleep 1
|
||||
/sbin/chkconfig --add firehol
|
||||
/sbin/chkconfig --level 2345 firehol off
|
||||
|
||||
%preun
|
||||
/sbin/chkconfig --del firehol
|
||||
@ -98,8 +103,8 @@ rm -rf ${RPM_BUILD_DIR}/%{name}-%{version}
|
||||
%dir /etc/firehol/examples
|
||||
|
||||
/etc/init.d/firehol
|
||||
/usr/man/man1/firehol.1.gz
|
||||
/usr/man/man5/firehol.conf.5.gz
|
||||
%{_mandir}/man1/firehol.1.gz
|
||||
%{_mandir}/man5/firehol.conf.5.gz
|
||||
|
||||
%config(noreplace) /etc/firehol/firehol.conf
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user