mirror of
https://abf.rosa.ru/djam/miniupnpd.git
synced 2025-02-23 08:02:58 +00:00
2.3.7
This commit is contained in:
parent
5f9d0605ad
commit
8b8bdb3093
3 changed files with 24 additions and 14 deletions
1
.abf.yml
1
.abf.yml
|
@ -1,2 +1,3 @@
|
||||||
sources:
|
sources:
|
||||||
|
download.php?file=miniupnpd-2.3.7.tar.gz: c491b053669dc637870ab8fa563b1d10371dd66d
|
||||||
miniupnpd-1.8.20140523.tar.gz: 1f29d76df57fcf4046c7cb9c7312d7fbc3f28e26
|
miniupnpd-1.8.20140523.tar.gz: 1f29d76df57fcf4046c7cb9c7312d7fbc3f28e26
|
||||||
|
|
1
miniupnpd.rpmlintrc
Normal file
1
miniupnpd.rpmlintrc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
addFilter("E: executable-marked-as-config-file")
|
|
@ -1,15 +1,17 @@
|
||||||
Summary: The UPNP & NAT-PMP implementation
|
Summary: The UPNP & NAT-PMP implementation
|
||||||
Name: miniupnpd
|
Name: miniupnpd
|
||||||
Version: 1.8.20140523
|
Version: 2.3.7
|
||||||
Release: 4
|
Release: 1
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: System/Servers
|
Group: System/Servers
|
||||||
Url: http://miniupnp.free.fr
|
URL: http://miniupnp.free.fr
|
||||||
Source0: http://miniupnp.free.fr/files/download.php?file=/%{name}-%{version}.tar.gz
|
#Source0: http://miniupnp.free.fr/files/download.php?file=/%{name}-%{version}.tar.gz
|
||||||
|
Source0: http://miniupnp.free.fr/files/download.php?file=%{name}-%{version}.tar.gz
|
||||||
Source1: miniupnpd.service
|
Source1: miniupnpd.service
|
||||||
Patch0: miniupnpd-1.8.20140523-makefile.patch
|
Patch0: miniupnpd-1.8.20140523-makefile.patch
|
||||||
BuildRequires: iptables-devel
|
BuildRequires: iptables-devel
|
||||||
BuildRequires: iptables-ip4tc-devel
|
BuildRequires: iptables-ip4tc-devel
|
||||||
|
BuildRequires: kernel-generic-devel
|
||||||
BuildRequires: pkgconfig(libiptc)
|
BuildRequires: pkgconfig(libiptc)
|
||||||
BuildRequires: pkgconfig(libnetfilter_conntrack)
|
BuildRequires: pkgconfig(libnetfilter_conntrack)
|
||||||
Requires: iptables
|
Requires: iptables
|
||||||
|
@ -42,22 +44,28 @@ See http://www.upnp.org/ for more details on UPnP.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
mv Makefile.linux Makefile
|
#mv Makefile.linux Makefile
|
||||||
%patch0 -p1
|
#patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make config.h
|
#make config.h
|
||||||
sed -i \
|
#sed -i \
|
||||||
-e 's/\/\*#define ENABLE_LEASEFILE\*\//#define ENABLE_LEASEFILE/g' \
|
# -e 's/\/\*#define ENABLE_LEASEFILE\*\//#define ENABLE_LEASEFILE/g' \
|
||||||
config.h || die
|
# config.h || die
|
||||||
|
|
||||||
|
#make CC=gcc CFLAGS="%{optflags}"
|
||||||
|
#make -f Makefile.linux config.h
|
||||||
|
#make -f Makefile.linux
|
||||||
|
./configure
|
||||||
|
%make
|
||||||
|
|
||||||
%make CC=gcc CFLAGS="%{optflags}"
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{_mandir}/man8/
|
%makeinstall_std
|
||||||
|
#mkdir -p %{buildroot}%{_mandir}/man8/
|
||||||
|
|
||||||
make install PREFIX="%{buildroot}" STRIP="true"
|
#make install PREFIX="%{buildroot}" STRIP="true"
|
||||||
rm -f %{buildroot}%{_sysconfdir}/init.d/miniupnpd
|
rm -f %{buildroot}%{_sysconfdir}/init.d/miniupnpd
|
||||||
rm -f %{buildroot}%{_sysconfdir}/miniupnpd/miniupnpd.conf~
|
rm -f %{buildroot}%{_sysconfdir}/miniupnpd/miniupnpd.conf~
|
||||||
install -D -m 755 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
|
install -Dm0755 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue