mirror of
https://abf.rosa.ru/djam/miniupnpd.git
synced 2025-02-23 08:02:58 +00:00
Compare commits
5 commits
5f9d0605ad
...
1e3271c1ff
Author | SHA1 | Date | |
---|---|---|---|
![]() |
1e3271c1ff | ||
![]() |
c10c3e1f99 | ||
![]() |
e19ad31cb0 | ||
![]() |
fa23a6918d | ||
![]() |
8b8bdb3093 |
3 changed files with 16 additions and 17 deletions
2
.abf.yml
2
.abf.yml
|
@ -1,2 +1,2 @@
|
|||
sources:
|
||||
miniupnpd-1.8.20140523.tar.gz: 1f29d76df57fcf4046c7cb9c7312d7fbc3f28e26
|
||||
miniupnpd-2.3.7.tar.gz: c491b053669dc637870ab8fa563b1d10371dd66d
|
||||
|
|
2
miniupnpd.rpmlintrc
Normal file
2
miniupnpd.rpmlintrc
Normal file
|
@ -0,0 +1,2 @@
|
|||
addFilter("E: executable-marked-as-config-file")
|
||||
addFilter("E: empty-debuginfo-package")
|
|
@ -1,15 +1,18 @@
|
|||
Summary: The UPNP & NAT-PMP implementation
|
||||
Name: miniupnpd
|
||||
Version: 1.8.20140523
|
||||
Release: 4
|
||||
Version: 2.3.7
|
||||
Release: 1
|
||||
License: GPLv2+
|
||||
Group: System/Servers
|
||||
Url: http://miniupnp.free.fr
|
||||
Source0: http://miniupnp.free.fr/files/download.php?file=/%{name}-%{version}.tar.gz
|
||||
Source1: miniupnpd.service
|
||||
Patch0: miniupnpd-1.8.20140523-makefile.patch
|
||||
URL: http://miniupnp.free.fr
|
||||
#Source0: http://miniupnp.free.fr/files/download.php?file=%{name}-%{version}.tar.gz
|
||||
Source0: http://miniupnp.free.fr/files/%{name}-%{version}.tar.gz
|
||||
Source1: %{name}.service
|
||||
Source1000: %{name}.rpmlintrc
|
||||
Patch0: %{name}-1.8.20140523-makefile.patch
|
||||
BuildRequires: iptables-devel
|
||||
BuildRequires: iptables-ip4tc-devel
|
||||
BuildRequires: kernel-generic-devel
|
||||
BuildRequires: pkgconfig(libiptc)
|
||||
BuildRequires: pkgconfig(libnetfilter_conntrack)
|
||||
Requires: iptables
|
||||
|
@ -42,22 +45,16 @@ See http://www.upnp.org/ for more details on UPnP.
|
|||
|
||||
%prep
|
||||
%setup -q
|
||||
mv Makefile.linux Makefile
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
make config.h
|
||||
sed -i \
|
||||
-e 's/\/\*#define ENABLE_LEASEFILE\*\//#define ENABLE_LEASEFILE/g' \
|
||||
config.h || die
|
||||
./configure
|
||||
%make
|
||||
|
||||
%make CC=gcc CFLAGS="%{optflags}"
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_mandir}/man8/
|
||||
%makeinstall_std
|
||||
|
||||
make install PREFIX="%{buildroot}" STRIP="true"
|
||||
rm -f %{buildroot}%{_sysconfdir}/init.d/miniupnpd
|
||||
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