%global prerel -rc1 Name: iodine Version: 0.6.0 Release: 0.rc1.6%{?dist} Summary: Solution to tunnel IPv4 data through a DNS server Summary(ru): РеÑение Ð´Ð»Ñ ÑÑннелиÑÐ¾Ð²Ð°Ð½Ð¸Ñ IPv4 ÑÑаÑика ÑеÑез DNS ÑеÑÐ²ÐµÑ Group: System Environment/Daemons License: ISC URL: http://code.kryo.se/iodine/ Source0: http://code.kryo.se/%{name}/%{name}-%{version}%{prerel}.tar.gz # Initscripts and separate configs made by Nikolay Ulyanitsky Source1: %{name}-client.conf Source2: %{name}-server.conf Source3: %{name}-client.init Source4: %{name}-server.init Source5: %{name}.logrotate # It is needed because I plan push it in EPEL too BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # http://dev.kryo.se/iodine/ticket/87 Patch0: iodine-0.5.2-prefix.patch BuildRequires: zlib-devel Requires(post): chkconfig Requires(preun): chkconfig, initscripts Requires(postun): initscripts %description iodine 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. It runs on Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD and Windows and needs a TUN/TAP device. The bandwidth is asymmetrical with limited upstream and up to 1 Mbit/s downstream. %description -l ru iodine пÑедоÑÑавлÑÐµÑ Ð²Ð¾Ð·Ð¼Ð¾Ð¶Ð½Ð¾ÑÑÑ Ð¿ÑобÑоÑиÑÑ IPv4 ÑÑÐ½Ð½ÐµÐ»Ñ ÑÐºÐ²Ð¾Ð·Ñ DNS ÑеÑвеÑ. ÐÑо Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¾ÑÐµÐ½Ñ Ð¿Ð¾Ð»ÐµÐ·Ð½Ð¾ в ÑазнÑÑ ÑиÑÑаÑиÑÑ , когда доÑÑÑп в инÑеÑÐ½ÐµÑ Ð·Ð°Ð¿ÑеÑÑн ÑаеÑволом, но DNS запÑоÑÑ Ð¿ÑопÑÑкаÑÑÑÑ Ð½Ð¾ÑмалÑно. Iodine ÑабоÑÐ°ÐµÑ Ð½Ð° Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD и Windows и иÑполÑзÑÐµÑ TUN/TAP ÑÑÑÑойÑÑво. ÐÑопÑÑÐºÐ½Ð°Ñ ÑпоÑобноÑÑÑ Ð°ÑиммеÑÑиÑна - аплоад не бÑÑÑÑ, ÑкаÑивание до 1 Mbit/s. %prep %setup -q -n %{name}-%{version}%{prerel} %patch0 -p0 -b .prefix %build # It is fail to build without -c gcc flag (comes from upstream Makefile). make %{?_smp_mflags} PREFIX=%{_prefix} CFLAGS="-c %{optflags} -DLINUX" %install rm -rf %{buildroot} make install PREFIX=%{buildroot}%{_prefix} install -Dp -m 0644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/sysconfig/%{name}-client install -Dp -m 0644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/sysconfig/%{name}-server install -Dp -m 0755 %{SOURCE3} %{buildroot}/%{_initrddir}/%{name}-client install -Dp -m 0755 %{SOURCE4} %{buildroot}/%{_initrddir}/%{name}-server install -Dp -m 0644 %{SOURCE5} %{buildroot}/%{_sysconfdir}/logrotate.d/%{name} %clean rm -rf %{buildroot} %post /sbin/chkconfig --add %{name}-client /sbin/chkconfig --add %{name}-server %preun if [ $1 = 0 ] ; then /sbin/service %{name}-client stop >/dev/null 2>&1 /sbin/chkconfig --del %{name}-client /sbin/service %{name}-server stop >/dev/null 2>&1 /sbin/chkconfig --del %{name}-server fi %postun if [ "$1" -ge "1" ] ; then /sbin/service %{name}-client condrestart >/dev/null 2>&1 || : /sbin/service %{name}-server condrestart >/dev/null 2>&1 || : fi %files %defattr(-,root,root,-) %doc CHANGELOG README TODO %{_sbindir}/%{name} %{_sbindir}/%{name}d %{_mandir}/man8/%{name}.8.gz %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/%{name}-client %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/%{name}-server %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %{_initrddir}/%{name}-client %{_initrddir}/%{name}-server %changelog * Tue Oct 26 2010 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6.0-0.rc1.6 - Add -DLINUX to build options (BZ#644310, thanks to Andy Shevchenko) - Fix service scripts to find binaries in /usr/sbin instead of /usr/bin (BZ#644299 thanks to Andy Shevchenko) - Add 0600 file attributes to prevent password access from regular users (BZ#644305). - In comments configs add IODINE(D)_PASS variables description (BZ#644317). * Wed Sep 29 2010 jkeating - 0.6.0-0.rc1.4.2 - Rebuilt for gcc bug 634757 * Wed Sep 29 2010 jkeating - 0.6.0-0.rc1.4.1 - Rebuilt for gcc bug 634757 * Sun Sep 12 2010 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6.0-0.rc1.4 - Build new version 0.6.0rc1 - Define prerel. * Sat Mar 6 2010 Pavel Alexeev <Pahan@Hubbitus.info> - 0.5.2-3 - Honor CFLAGS * Mon Feb 22 2010 Pavel Alexeev <Pahan@Hubbitus.info> - 0.5.2-2 - Import some items from Nikolay Ulyanitsky package ( https://bugzilla.redhat.com/show_bug.cgi?id=530747#c1 ): o Add initscripts support (modified) o Add logrotate support o Exclude README-win32.txt and respective delete dos2unix BR. o Add BR zlib-devel * Sat Oct 24 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.5.2-1 - Initial spec.