72 lines
1.6 KiB
RPMSpec
72 lines
1.6 KiB
RPMSpec
|
Name: dhcprelay
|
||
|
Version: 0.3.2b
|
||
|
Release: 2mamba
|
||
|
Summary: DHCP-over-IPsec support for Linux FreeS/WAN
|
||
|
Group: Network/Security
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Tiziana Ferro <tiziana.ferro@email.it>
|
||
|
URL: http://www.strongsec.com/freeswan/dhcprelay/
|
||
|
Source0: http://www.strongsec.com/freeswan/dhcprelay/dhcprelay-%{version}.tar.gz
|
||
|
License: GPL
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
||
|
%description
|
||
|
DHCP-over-IPsec support for Linux FreeS/WAN
|
||
|
|
||
|
%prep
|
||
|
test x"$RPM_BUILD_ROOT" != x/ && rm -rf "$RPM_BUILD_ROOT"
|
||
|
|
||
|
%setup -q
|
||
|
|
||
|
%build
|
||
|
./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir}
|
||
|
|
||
|
%make
|
||
|
|
||
|
pushd init.d
|
||
|
sed -i "s|/etc|$RPM_BUILD_ROOT%{_sysconfdir}|" Makefile
|
||
|
sed -i "s|-o root -g root||" Makefile
|
||
|
|
||
|
%install
|
||
|
make install prefix=$RPM_BUILD_ROOT%{_prefix} sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir}
|
||
|
|
||
|
%clean
|
||
|
test x"$RPM_BUILD_ROOT" != x/ && rm -rf "$RPM_BUILD_ROOT"
|
||
|
|
||
|
%post
|
||
|
# new install
|
||
|
|
||
|
%preun
|
||
|
#erase
|
||
|
if [ $1 -eq 0 ]; then
|
||
|
%{_initrddir}/dhcprelay stop
|
||
|
chkconfig --del dhcprelay
|
||
|
fi
|
||
|
exit 0
|
||
|
|
||
|
%postun
|
||
|
# upgrade
|
||
|
if [ $1 -eq 1 ]; then
|
||
|
chkconfig dhcprelay
|
||
|
test $? -eq 0 && %{_initrddir}/dhcprelay restart
|
||
|
fi
|
||
|
exit 0
|
||
|
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{_sysconfdir}/dhcprelay.conf
|
||
|
%{_sysconfdir}/init.d/dhcprelay
|
||
|
%{_sbindir}/dhcprelay
|
||
|
|
||
|
%changelog
|
||
|
* Thu Sep 05 2013 Automatic Build System <autodist@mambasoft.it> 0.3.2b-2mamba
|
||
|
- automatic rebuild by autodist
|
||
|
|
||
|
* Thu Jun 14 2007 Tiziana Ferro <tiziana.ferro@email.it> 0.3.2b-1mamba
|
||
|
- update to 0.3.2b
|
||
|
|
||
|
* Thu Apr 01 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.1-1qilnx
|
||
|
- first build
|