Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:jeff_mahoney
miniupnpd
miniupnpd.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File miniupnpd.spec of Package miniupnpd
%define realname miniupnpd %define realver 2.0 %define srcext tar.gz # turn off the generation of debuginfo rpm (RH9) ?? %global debug_package %{nil} # Common info Name: %{realname} Version: %{realver} Release: %{?extraver:0.}1%{?rhel:.el%{rhel}}%{?fedora:.fc%{fedora}} License: BSD-3-Clause Group: Productivity/Networking/Routing URL: http://miniupnp.tuxfamily.org/ Summary: Implementation of a UPnP IGD + NAT-PMP / PCP gateway # Build-time parameters BuildRequires: pkgconfig BuildRequires: libuuid-devel BuildRequires: pkgconfig(libnfnetlink) pkgconfig(xtables) pkgconfig(libiptc) BuildRoot: %{_tmppath}/%{name}-root Source0: http://miniupnp.tuxfamily.org/files/%{realname}-%{version}%{?extraver}.%{srcext} Source1: miniupnpd.init %description The miniUPnP daemon is an UPnP IGD (internet gateway device) which provide NAT traversal services to any UPnP enabled client on the network. # Preparation step (unpackung and patching if necessary) %prep %setup -q -n %{realname}-%{version}%{?extraver} %build %{__make} -f Makefile.linux %{?_smp_mflags} \ INSTALLPREFIX=%{_prefix} \ CONFIG_OPTIONS="--ipv6 --igd2 --leasefile --vendorcfg --pcp-peer --portinuse" \ CFLAGS="%{optflags} -DIPTABLES_143 -DUSE_MINIUPNPDCTL -DDEFAULT_CONFIG='\"%{_sysconfdir}/miniupnpd/miniupnpd.conf\"' %(pkg-config --cflags libnfnetlink) %(pkg-config --cflags xtables) %(pkg-config --cflags libiptc)" \ LDFLAGS="%(pkg-config --libs-only-L libiptc) -lip4tc -Wl,--as-needed -Wl,--strip-all" %if 0%{?suse_version} %{__sed} -ri '/^IPTABLES/ s|=.+$|=/usr/sbin/iptables|' netfilter/*.sh %endif %install %{__make} -f Makefile.linux install \ INSTALLPREFIX=%{_prefix} \ DESTDIR=%{buildroot} %{__install} -D -m755 miniupnpdctl %{buildroot}%{_bindir}/miniupnpdctl %{__rm} -f %{buildroot}/etc/init.d/miniupnpd %{__install} -D -m755 %{S:1} %{buildroot}%{_initrddir}/%{name} %if %{expand:%_vendor == "suse"} %{__ln_s} %{_initrddir}/%{name} %{buildroot}%{_sbindir}/rc%{name} %endif %clean [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} %files %defattr(-,root,root) %doc Changelog.txt LICENSE README %dir %{_sysconfdir}/miniupnpd %config %{_sysconfdir}/miniupnpd/* %{_initrddir}/%{name} %{_sbindir}/* %{_bindir}/miniupnpdctl %doc %{_mandir}/man8/* %if 0%{?suse_version} %post %{fillup_and_insserv -n %{name}} %preun %{stop_on_removal %{name}} %postun %{restart_on_update %{name}} %{insserv_cleanup} %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor