commit 6851ebb85ce90dc97b2dec11a343829ee911876b7e87bd9aeff3eb71c79dc015 Author: Ismail Dönmez Date: Wed Sep 19 16:56:25 2012 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/iodine-0.6.0-rc1.tar.gz b/iodine-0.6.0-rc1.tar.gz new file mode 100644 index 0000000..6b23837 --- /dev/null +++ b/iodine-0.6.0-rc1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dacf950198b68fd1dae09fe980080155b0c75718f581c08e069eee0c1b6c5e60 +size 89827 diff --git a/iodine-fix-makefile-prefix.patch b/iodine-fix-makefile-prefix.patch new file mode 100644 index 0000000..8a9b601 --- /dev/null +++ b/iodine-fix-makefile-prefix.patch @@ -0,0 +1,9 @@ +diff -Naur a/Makefile b/Makefile +--- a/Makefile 2009-01-25 15:40:04.000000000 -0600 ++++ b/Makefile 2012-09-06 09:02:31.056193204 -0500 +@@ -1,4 +1,4 @@ +-prefix=/usr/local ++prefix=$(PREFIX) + sbindir=$(prefix)/sbin + datadir=$(prefix)/share + mandir=$(datadir)/man diff --git a/iodine.changes b/iodine.changes new file mode 100644 index 0000000..ffe81b4 --- /dev/null +++ b/iodine.changes @@ -0,0 +1,8 @@ +------------------------------------------------------------------- +Wed Sep 19 01:16:32 UTC 2012 - malcolmlewis@opensuse.org + +- Initial build. +- Add iodine-fix-makefile-prefix.patch: Modify default install + prefix. +- Add systemd service and sysconfig files for both server and + client. diff --git a/iodine.service b/iodine.service new file mode 100644 index 0000000..ed112d9 --- /dev/null +++ b/iodine.service @@ -0,0 +1,21 @@ +# /lib/systemd/system/iodine.service +# +# Copyright (c) 2012 Malcolm J Lewis +# + +[Unit] +Description=iodine lets you tunnel IPv4 data through a DNS server +After=syslog.target + +[Service] +Type=simple +EnvironmentFile=-/etc/sysconfig/iodine +Environment=TERM=linux +ExecStart=/bin/sh -c "/usr/sbin/iodine ${IODINE_PASS} ${IODINE_OPTIONS} +StandardOutput=syslog +Restart=always +RestartSec=0 +KillSignal=SIGHUP + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/iodine.spec b/iodine.spec new file mode 100644 index 0000000..6b4e120 --- /dev/null +++ b/iodine.spec @@ -0,0 +1,96 @@ +# +# spec file for package iodine +# +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 Malcolm J Lewis +# +# 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 diff --git a/iodined.service b/iodined.service new file mode 100644 index 0000000..f5bfe2e --- /dev/null +++ b/iodined.service @@ -0,0 +1,21 @@ +# /lib/systemd/system/iodined.service +# +# Copyright (c) 2012 Malcolm J Lewis +# + +[Unit] +Description=iodined lets you tunnel IPv4 data through a DNS server +After=syslog.target + +[Service] +Type=simple +EnvironmentFile=-/etc/sysconfig/iodined +Environment=TERM=linux +ExecStart=/bin/sh -c "/usr/sbin/iodined ${IODINED_PASS} ${IODINED_OPTIONS} +StandardOutput=syslog +Restart=always +RestartSec=0 +KillSignal=SIGHUP + +[Install] +WantedBy=multi-user.target diff --git a/sysconfig.iodine b/sysconfig.iodine new file mode 100644 index 0000000..335ca03 --- /dev/null +++ b/sysconfig.iodine @@ -0,0 +1,21 @@ +## Description: systemd iodine.service configuration file +## URL: +## License: GPL-2.0 +## Copyright (c) 2012 Malcolm J Lewis +## Path: System/iodine +## Description: iodine systemd service parameters +## Type: string +## Default: "" +## ServiceRestart: systemctl restart iodine.service +# +# You may provide a password in two ways, via IODINE_PASS, or provide it in IODINE_OPTIONS +# +IODINE_PASS="" + +## Type: string +## Default: "" +# +# Additional parameters for iodine, see the iodine man page for more options. +# Example option -P PASSWORD NAMESERVER DOMAIN +# +IODINE_OPTIONS="" \ No newline at end of file diff --git a/sysconfig.iodined b/sysconfig.iodined new file mode 100644 index 0000000..f58f480 --- /dev/null +++ b/sysconfig.iodined @@ -0,0 +1,21 @@ +## Description: systemd iodined.service configuration file +## URL: +## License: GPL-2.0 +## Copyright (c) 2012 Malcolm J Lewis +## Path: System/iodined +## Description: iodined systemd service parameters +## Type: string +## Default: "" +## ServiceRestart: systemctl restart iodined.service +# +# You may provide a password in two ways, via IODINED_PASS, or provide it in IODINED_OPTIONS +# +IODINED_PASS="" + +## Type: string +## Default: "" +# +# Additional parameters for iodined, see the iodined man page for more options. +# Example option -P PASSWORD NAMESERVER DOMAIN +# +IODINED_OPTIONS="" \ No newline at end of file