[resolv_wrapper/epel7] Initial commit.

asn asn at fedoraproject.org
Tue Dec 16 14:50:24 UTC 2014


commit 2c09c1d140205b414b78089ac9b4137af5ff45e7
Author: Andreas Schneider <asn at cryptomilk.org>
Date:   Tue Dec 16 14:26:57 2014 +0100

    Initial commit.

 .gitignore          |    1 +
 resolv_wrapper.spec |   75 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 77 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ca4d22f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/resolv_wrapper-1.1.0.tar.gz
diff --git a/resolv_wrapper.spec b/resolv_wrapper.spec
new file mode 100644
index 0000000..93230a8
--- /dev/null
+++ b/resolv_wrapper.spec
@@ -0,0 +1,75 @@
+Name:           resolv_wrapper
+Version:        1.1.0
+Release:        2%{?dist}
+
+Summary:        A wrapper for dns name resolving or dns faking
+License:        BSD
+Url:            http://cwrap.org/
+
+Source0:        https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
+
+BuildRequires:  cmake
+BuildRequires:  libcmocka-devel
+
+Requires:       cmake
+Requires:       pkgconfig
+
+%description
+It is likely that if you have a server/client architecture, you need to do DNS
+queries or a third party library, like Kerberos needs to be able to do queries.
+In the case of Kerberos the client needs to look the address of the KDC up via a
+SRV record. resolv_wrapper is able to either redirect all DNS queries to your
+DNS server implementation, or fake DNS replies!
+
+To use it set the following environment variables:
+
+LD_PRELOAD=libresolv_wrapper.so
+RESOLV_WRAPPER_CONF=./my_resolv.conf
+
+This package doesn't have a devel package because this project is for
+development/testing.
+
+%prep
+%setup -q
+
+%build
+if test ! -e "obj"; then
+  mkdir obj
+fi
+pushd obj
+%cmake \
+  -DUNIT_TESTING=ON \
+  %{_builddir}/%{name}-%{version}
+
+make %{?_smp_mflags} VERBOSE=1
+popd
+
+%install
+pushd obj
+make DESTDIR=%{buildroot} install
+popd
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%check
+pushd obj
+make test
+popd
+
+%files
+%doc AUTHORS README ChangeLog COPYING
+%{_libdir}/libresolv_wrapper.so*
+%dir %{_libdir}/cmake/resolv_wrapper
+%{_libdir}/cmake/resolv_wrapper/resolv_wrapper-config-version.cmake
+%{_libdir}/cmake/resolv_wrapper/resolv_wrapper-config.cmake
+%{_libdir}/pkgconfig/resolv_wrapper.pc
+%{_mandir}/man1/resolv_wrapper.1*
+
+%changelog
+* Tue Dec 16 2014 Andreas Schneider <asn at redhat.com> - 1.1.0-2
+- Add Requires for pkgconfig and cmake.
+
+* Wed Dec 10 2014 Andreas Schneider <asn at redhat.com> - 1.1.0-1
+- resolves: #1172534 - Initial package.
diff --git a/sources b/sources
index e69de29..2e73d57 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+40fb8e4127230f713a413d65274034e0  resolv_wrapper-1.1.0.tar.gz


More information about the scm-commits mailing list