From 966f6cbdc5af0f78727821b86fbb6caa40b327d7 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Fri, 5 Jan 2024 21:46:25 +0100 Subject: [PATCH] automatic rebuild by autodist [release 0.3.2b-2mamba;Thu Sep 05 2013] --- README.md | 2 ++ dhcprelay.spec | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 dhcprelay.spec diff --git a/README.md b/README.md index 36550a6..8e42402 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # dhcprelay +DHCP-over-IPsec support for Linux FreeS/WAN + diff --git a/dhcprelay.spec b/dhcprelay.spec new file mode 100644 index 0000000..8f8a374 --- /dev/null +++ b/dhcprelay.spec @@ -0,0 +1,71 @@ +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 +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 0.3.2b-2mamba +- automatic rebuild by autodist + +* Thu Jun 14 2007 Tiziana Ferro 0.3.2b-1mamba +- update to 0.3.2b + +* Thu Apr 01 2004 Silvan Calarco 0.3.1-1qilnx +- first build