- Fix BZ#533144:
- Add reload section to service file, fix stop.
- Add %%{_sysconfdir}/NetworkManager/dispatcher.d/40-%%{name} (Thanks to
Pankaj Pandey)
- Include man-files.
- Add Requires: initscripts as owner directory
%%{_sysconfdir}/NetworkManager/dispatcher.d/
This commit is contained in:
parent
f783ca4d6b
commit
e2fff6d960
1 changed files with 26 additions and 4 deletions
30
3proxy.spec
30
3proxy.spec
|
|
@ -1,6 +1,6 @@
|
|||
Name: 3proxy
|
||||
Version: 0.6
|
||||
Release: 3%{?dist}
|
||||
Release: 5%{?dist}
|
||||
|
||||
Summary: Tiny but very powerful proxy
|
||||
Summary(ru): Маленький, но крайне мощный прокси-сервер
|
||||
|
|
@ -15,6 +15,7 @@ Source2: 3proxy.cfg
|
|||
# EPEL still require it
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: dos2unix
|
||||
Requires: initscripts
|
||||
|
||||
%description
|
||||
3proxy -- light proxy server.
|
||||
|
|
@ -46,9 +47,8 @@ dos2unix Changelog
|
|||
rm -rf %{buildroot}
|
||||
|
||||
mkdir -p %{buildroot}%{_sysconfdir}
|
||||
mkdir -p %{buildroot}%{_sysconfdir}
|
||||
mkdir -p %{buildroot}%{_man3dir}
|
||||
mkdir -p %{buildroot}%{_man8dir}
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/NetworkManager/dispatcher.d/
|
||||
mkdir -p %{buildroot}%{_mandir}/man8
|
||||
mkdir -p %{buildroot}%{_localstatedir}/log/%{name}
|
||||
install -m755 -D src/3proxy %{buildroot}%{_bindir}/3proxy
|
||||
install -m755 -D src/dighosts %{buildroot}%{_bindir}/dighosts
|
||||
|
|
@ -64,6 +64,19 @@ install -m755 -D src/udppm %{buildroot}%{_bindir}/udppm
|
|||
install -pD -m755 %{SOURCE1} %{buildroot}/%{_initrddir}/%{name}
|
||||
install -pD -m644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/%{name}.cfg
|
||||
|
||||
for man in man/*.8 ; do
|
||||
gzip -9c "$man" > "%{buildroot}%{_mandir}/man8/$( basename $man ).gz"
|
||||
touch --reference "$man" "%{buildroot}%{_mandir}/man8/$( basename $man ).gz"
|
||||
done
|
||||
|
||||
cat > %{buildroot}%{_sysconfdir}/NetworkManager/dispatcher.d/40-%{name} <<EOF
|
||||
#!/bin/sh
|
||||
|
||||
if [ "\$2" = "up" ]; then
|
||||
/sbin/service 3proxy restart || : # reload doesn't work
|
||||
fi
|
||||
EOF
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
|
|
@ -81,11 +94,20 @@ fi
|
|||
%defattr(-,root,root,-)
|
||||
%{_bindir}/*
|
||||
%config(noreplace) %{_sysconfdir}/%{name}.cfg
|
||||
%attr(0755,root,root) %config %{_sysconfdir}/NetworkManager/dispatcher.d/40-%{name}
|
||||
%{_initrddir}/%{name}
|
||||
%{_localstatedir}/log/%{name}
|
||||
%doc Readme Changelog authors copying news
|
||||
%{_mandir}/man8/*.8.gz
|
||||
|
||||
%changelog
|
||||
* Sun Nov 8 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6-5
|
||||
- Fix BZ#533144:
|
||||
- Add reload section to service file, fix stop.
|
||||
- Add %%{_sysconfdir}/NetworkManager/dispatcher.d/40-%%{name} (Thanks to Pankaj Pandey)
|
||||
- Include man-files.
|
||||
- Add Requires: initscripts as owner directory %%{_sysconfdir}/NetworkManager/dispatcher.d/
|
||||
|
||||
* Thu Aug 20 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6-3
|
||||
- Fedora Review started - thank you Peter Lemenkov.
|
||||
- Change rights (0755->0644) of config.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue