Accepting request 134980 from home:malcolmlewis:TESTING
New package: Lets you tunnel IPv4 data through a DNS server. This can be usable in different situations where internet access is firewalled, but DNS queries are allowed. Development project required before push to factory, required by NetworkManager-iodine. OBS-URL: https://build.opensuse.org/request/show/134980 OBS-URL: https://build.opensuse.org/package/show/network:utilities/iodine?expand=0&rev=1
This commit is contained in:
96
iodine.spec
Normal file
96
iodine.spec
Normal file
@@ -0,0 +1,96 @@
|
||||
#
|
||||
# spec file for package iodine
|
||||
#
|
||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2012 Malcolm J Lewis <malcolmlewis@opensuse.org>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
Name: iodine
|
||||
Version: 0.6.0+rc1
|
||||
Release: 0
|
||||
License: ISC ; Libpng ; Zlib
|
||||
Summary: Tunnel IPv4 data through a DNS server
|
||||
Url: http://code.kryo.se/iodine/
|
||||
Group: Productivity/Networking/System
|
||||
Source0: http://code.kryo.se/iodine/iodine-0.6.0-rc1.tar.gz
|
||||
Source1: iodine.service
|
||||
Source2: sysconfig.iodine
|
||||
Source3: iodined.service
|
||||
Source4: sysconfig.iodined
|
||||
#PATCH-FIX-OPENSUSE iodine-fix-makefile-prefix.patch malcolmlewis@opensuse.org -- Modify default install prefix.
|
||||
Patch0: iodine-fix-makefile-prefix.patch
|
||||
BuildRequires: systemd
|
||||
BuildRequires: zlib-devel
|
||||
Requires(pre): %fillup_prereq
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
Lets you tunnel IPv4 data through a DNS server. This can be usable
|
||||
in different situations where internet access is firewalled, but DNS
|
||||
queries are allowed.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-0.6.0-rc1
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
make PREFIX=%{_prefix} %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make install PREFIX=%{buildroot}%{_prefix}
|
||||
# Install client files
|
||||
mkdir -p %{buildroot}%{_unitdir}
|
||||
install -m 0644 %{S:1} %{buildroot}%{_unitdir}/
|
||||
mkdir -p %{buildroot}%{_localstatedir}/adm/fillup-templates
|
||||
install -m 0644 %{S:2} %{buildroot}%{_localstatedir}/adm/fillup-templates/
|
||||
# Install server files
|
||||
install -m 0644 %{S:3} %{buildroot}%{_unitdir}/
|
||||
install -m 0644 %{S:4} %{buildroot}%{_localstatedir}/adm/fillup-templates/
|
||||
# Copy common man page to avoid warning
|
||||
pushd %{buildroot}%{_mandir}/man8/
|
||||
cp %{name}.8 %{name}d.8
|
||||
popd
|
||||
|
||||
%pre
|
||||
%service_add_pre iodine.service
|
||||
%service_add_pre iodined.service
|
||||
|
||||
%post
|
||||
%service_add_post iodine.service
|
||||
%service_add_post iodined.service
|
||||
%{fillup_only -n iodine}
|
||||
%{fillup_only -n iodined}
|
||||
|
||||
%preun
|
||||
%service_del_preun iodine.service
|
||||
%service_del_preun iodined.service
|
||||
|
||||
%postun
|
||||
%service_del_postun iodine.service
|
||||
%service_del_postun iodined.service
|
||||
%insserv_cleanup
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc CHANGELOG README TODO
|
||||
%{_sbindir}/%{name}
|
||||
%{_sbindir}/%{name}d
|
||||
%{_localstatedir}/adm/fillup-templates/sysconfig.iodine
|
||||
%{_localstatedir}/adm/fillup-templates/sysconfig.iodined
|
||||
%{_unitdir}/iodine.service
|
||||
%{_unitdir}/iodined.service
|
||||
%{_mandir}/man8/%{name}.8%{?ext_man}
|
||||
%{_mandir}/man8/%{name}d.8%{?ext_man}
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user