From 02f2a151874ba958108400834638e3de75488e11 Mon Sep 17 00:00:00 2001 From: Rosa Date: Wed, 1 Feb 2012 20:33:07 +0400 Subject: [PATCH] Automatic import for version 1.5.20110520 --- .abf.yml | 2 ++ miniupnpd.init.d.script | 56 +++++++++++++++++++++++++++++++++ miniupnpd.spec | 68 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 126 insertions(+) create mode 100644 .abf.yml create mode 100755 miniupnpd.init.d.script create mode 100644 miniupnpd.spec diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..17169db --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + "miniupnpd-1.5.20110520.tar.gz": 7d4009daa5dd977be6d6c88fa9510a228978b7a6 diff --git a/miniupnpd.init.d.script b/miniupnpd.init.d.script new file mode 100755 index 0000000..f647c22 --- /dev/null +++ b/miniupnpd.init.d.script @@ -0,0 +1,56 @@ +#! /bin/sh +# +# Startup script for the miniupnp daemon +# +# chkconfig: 2345 86 14 +# description: The miniUPnP daemon is an UPnP IGD +# processname: miniupnpd +# config: /etc/miniupnpd/miniupnpd.conf + +### BEGIN INIT INFO +# Provides: miniupnpd upnp +# Required-Start: iptables +# Default-Start: 2 3 4 5 +# Short-Description: The UPNP & NAT-PMP implementation +# Description: The miniUPnP daemon is an UPnP IGD (internet gateway device) +# which provide NAT traversal services to any UPnP enabled client on +# the network. +### END INIT INFO + + +# Source function library. +. /etc/rc.d/init.d/functions + +# See how we were called. +case "$1" in + start) + # Start daemons. + echo -n "Starting miniupnpd: " + daemon miniupnpd -f /etc/miniupnpd/miniupnpd.conf + echo + touch /var/lock/subsys/miniupnpd + ;; + + stop) + # Stop daemons. + echo -n "Shutting down miniupnpd: " + killproc miniupnpd + echo + rm -f /var/lock/subsys/miniupnpd + ;; + + reload|restart) + $0 stop + $0 start + ;; + + status) + status miniupnpd + ;; + + *) + echo "Usage: $0 {start|stop|restart|reload|status}" + exit 1 +esac + +exit 0 diff --git a/miniupnpd.spec b/miniupnpd.spec new file mode 100644 index 0000000..9d5c835 --- /dev/null +++ b/miniupnpd.spec @@ -0,0 +1,68 @@ +Summary: The UPNP & NAT-PMP implementation +Name: miniupnpd +Version: 1.5.20110520 +Release: 1 +License: GPL +Group: System/Servers +URL: http://miniupnp.free.fr +Source: http://miniupnp.free.fr/files/download.php?file=/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version} +BuildRequires: iptables-ip4tc-devel iptables-devel +Requires: iptables + +Source1: miniupnpd.init.d.script + +%description +The miniUPnP daemon is an UPnP IGD (internet gateway device) +which provide NAT traversal services to any UPnP enabled client on +the network. +See http://www.upnp.org/ for more details on UPnP. + +%prep +%setup -q -n %{name}-%{version} + +%build +%make -f Makefile.linux config.h CFLAGS="%optflags -DIPTABLES_143" + +%install +PREFIX=%{buildroot} make -f Makefile.linux install CFLAGS="%optflags -DIPTABLES_143" LIBS="/%{_lib}/libip4tc.so" +rm -f %{buildroot}%{_sysconfdir}/init.d/miniupnpd +rm -f %{buildroot}%{_sysconfdir}/miniupnpd/miniupnpd.conf~ +install -D -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/%{name} +mkdir -p %{buildroot}%{_mandir}/man1/ +install -D -m 755 miniupnpd.1 %{buildroot}%{_mandir}/man1/ + +%clean +rm -fr %{buildroot} + +%files +%defattr(-,root,root) +%{_sbindir}/miniupnpd +%{_initrddir}/miniupnpd +%doc %{_mandir}/man*/* +%config(noreplace) %{_sysconfdir}/miniupnpd/* +%doc README Changelog.txt + + +%changelog +* Tue May 24 2011 Funda Wang 1.5.20110520-1 ++ Revision: 678010 +- new version 1.5.20110520 + +* Thu Mar 03 2011 zamir 1.5.20110302-0 ++ Revision: 641422 +- upload new sources +- update version. remove old patch + +* Tue Nov 23 2010 Eugeni Dodonov 1.4.20100511-0mdv2011.0 ++ Revision: 600151 +- Update package group to comply with the policy. +- Use proper %%make command. +- Cleaned up spec. + + + zamir + - clear trash + - adding source and spec file + - adding rpm and srpm + - create miniupnpd +