Automatic import for version 1.5.20110520

This commit is contained in:
Rosa 2012-02-01 20:33:07 +04:00
commit 02f2a15187
3 changed files with 126 additions and 0 deletions

2
.abf.yml Normal file
View file

@ -0,0 +1,2 @@
sources:
"miniupnpd-1.5.20110520.tar.gz": 7d4009daa5dd977be6d6c88fa9510a228978b7a6

56
miniupnpd.init.d.script Executable file
View file

@ -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

68
miniupnpd.spec Normal file
View file

@ -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 <fwang@mandriva.org> 1.5.20110520-1
+ Revision: 678010
- new version 1.5.20110520
* Thu Mar 03 2011 zamir <zamir@mandriva.org> 1.5.20110302-0
+ Revision: 641422
- upload new sources
- update version. remove old patch
* Tue Nov 23 2010 Eugeni Dodonov <eugeni@mandriva.com> 1.4.20100511-0mdv2011.0
+ Revision: 600151
- Update package group to comply with the policy.
- Use proper %%make command.
- Cleaned up spec.
+ zamir <zamir@mandriva.org>
- clear trash
- adding source and spec file
- adding rpm and srpm
- create miniupnpd