diff --git a/README.SUSE b/README.SUSE new file mode 100644 index 0000000..09330c6 --- /dev/null +++ b/README.SUSE @@ -0,0 +1,53 @@ +ADNS + +From the Homepage: + +Advanced, easy to use, asynchronous-capable DNS client library and utilities. +adns is a resolver library for C (and C++) programs, and a collection of useful +DNS resolver utilities. + +I'm (Ian) afraid there is no manual yet. However, competent C programmers should +be able to use the library based on the commented adns.h header file, and +the usage messages for the programs should be sufficient. + +adns also comes with a number of utility programs for use from the command +line and in scripts: + + * adnslogres is a much faster version of Apache's logresolv program. + + * adnsresfilter is a filter which copies its input to its output, + replacing IP addresses by the corresponding names, without unduly + delaying the output. For example, you can usefully pipe the + output of netstat -n, tcpdump -ln, and the like, into it. + + * adnshost is a general-purpose DNS lookup utility which can be used easily + in from the command line and from shell scripts to do simple lookups. + In a more advanced mode it can be used as a general-purpose DNS helper + program for scripting languages which can invoke and communicate with + subprocesses. See the adnshost usage message for a summary of its capabilities. + +From the INSTALL file: + + SECURITY AND PERFORMANCE - AN IMPORTANT NOTE + + adns is not a `full-service resolver': it does no caching of responses + at all, and has no defence against bad nameservers or fake packets + which appear to come from your real nameservers. It relies on the + full-service resolvers listed in resolv.conf to handle these tasks. + + For secure and reasonable operation you MUST run a full-service + nameserver on the same system as your adns applications, or on the + same local, fully trusted network. You MUST only list such + nameservers in the adns configuration (eg resolv.conf). + + You MUST use a firewall or other means to block packets which appear + to come from these nameservers, but which were actually sent by other, + untrusted, entities. + + Furthermore, adns is not DNSSEC-aware in this version; it doesn't + understand even how to ask a DNSSEC-aware nameserver to perform the + DNSSEC cryptographic signature checking. + +In particular, adns does not randomize the query source port or transaction ID; +relevant advisories are CVE-2008-1447 and CVE-2008-4100. Since adns is a stub +resolver, the workarounds listed in DSA-1605-1 for glibc also apply to adns. diff --git a/adns-1.4-configure.patch b/adns-1.4-configure.patch new file mode 100644 index 0000000..4bf7f90 --- /dev/null +++ b/adns-1.4-configure.patch @@ -0,0 +1,129 @@ +--- configure.in ++++ configure.in 2006/09/01 12:30:00 +@@ -23,8 +23,7 @@ + AC_INIT(src/adns.h) + AC_CONFIG_HEADER(src/config.h) + +-dnl DPKG_CACHED_TRY_COMPILE(,,,,,) +-define([DPKG_CACHED_TRY_COMPILE],[ ++AC_DEFUN([DPKG_CACHED_TRY_COMPILE],[ + AC_MSG_CHECKING($1) + AC_CACHE_VAL($2,[ + AC_TRY_COMPILE([$3],[$4],[$2=yes],[$2=no]) +@@ -65,6 +64,116 @@ + AC_PROG_RANLIB + AC_PROG_INSTALL + ++AH_TOP([ ++/* ++ * This file is ++ * Copyright (C) 1997-2000 Ian Jackson ++ * ++ * It is part of adns, which is ++ * Copyright (C) 1997-2000 Ian Jackson ++ * Copyright (C) 1999-2000 Tony Finch ++ * ++ * This program is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2, or (at your option) ++ * any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program; if not, write to the Free Software Foundation, ++ * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++ */ ++]) ++ ++AH_TEMPLATE([HAVE_INLINE], ++ [Define if inline functions a la GCC are available.]) ++AH_TEMPLATE([HAVE_GNUC25_ATTRIB], ++ [Define if function attributes a la GCC 2.5 and higher are available.]) ++AH_TEMPLATE([HAVE_GNUC25_CONST], ++ [Define if function attributes a la GCC 2.5 and higher are available.]) ++AH_TEMPLATE([HAVE_GNUC25_NORETURN], ++ [Define if nonreturning functions a la GCC 2.5 and higher are available.]) ++AH_TEMPLATE([HAVE_GNUC25_PRINTFFORMAT], ++ [Define if printf-format argument lists a la GCC are available.]) ++AH_TEMPLATE([HAVEUSE_RPCTYPES_H], ++ [Define if we want to include rpc/types.h. Crap BSDs put INADDR_LOOPBACK there.]) ++ ++AH_BOTTOM([ ++/* Use the definitions: */ ++ ++#ifndef HAVE_INLINE ++#define inline ++#endif ++ ++#ifdef HAVE_POLL ++#include ++#else ++/* kludge it up */ ++struct pollfd { int fd; short events; short revents; }; ++#define POLLIN 1 ++#define POLLPRI 2 ++#define POLLOUT 4 ++#endif ++ ++/* GNU C attributes. */ ++#ifndef FUNCATTR ++#ifdef HAVE_GNUC25_ATTRIB ++#define FUNCATTR(x) __attribute__(x) ++#else ++#define FUNCATTR(x) ++#endif ++#endif ++ ++/* GNU C printf formats, or null. */ ++#ifndef ATTRPRINTF ++#ifdef HAVE_GNUC25_PRINTFFORMAT ++#define ATTRPRINTF(si,tc) format(printf,si,tc) ++#else ++#define ATTRPRINTF(si,tc) ++#endif ++#endif ++#ifndef PRINTFFORMAT ++#define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc))) ++#endif ++ ++/* GNU C nonreturning functions, or null. */ ++#ifndef ATTRNORETURN ++#ifdef HAVE_GNUC25_NORETURN ++#define ATTRNORETURN noreturn ++#else ++#define ATTRNORETURN ++#endif ++#endif ++#ifndef NONRETURNING ++#define NONRETURNING FUNCATTR((ATTRNORETURN)) ++#endif ++ ++/* Combination of both the above. */ ++#ifndef NONRETURNPRINTFFORMAT ++#define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN)) ++#endif ++ ++/* GNU C constant functions, or null. */ ++#ifndef ATTRCONST ++#ifdef HAVE_GNUC25_CONST ++#define ATTRCONST const ++#else ++#define ATTRCONST ++#endif ++#endif ++#ifndef CONSTANT ++#define CONSTANT FUNCATTR((ATTRCONST)) ++#endif ++ ++#ifdef HAVEUSE_RPCTYPES_H ++#include ++#endif ++]) ++ + AC_CHECK_FUNCS(poll) + ADNS_C_GETFUNC(socket,socket) + ADNS_C_GETFUNC(inet_ntoa,nsl) diff --git a/adns-1.4-destdir.patch b/adns-1.4-destdir.patch new file mode 100644 index 0000000..87b1c87 --- /dev/null +++ b/adns-1.4-destdir.patch @@ -0,0 +1,54 @@ +Index: client/Makefile.in +=================================================================== +--- client/Makefile.in.orig ++++ client/Makefile.in +@@ -58,9 +58,9 @@ ALL_OBJS= $(ADH_OBJS) $(TARG_OBJS) + all: $(TARGETS) + + install: $(TARG_INSTALL) +- mkdir -p $(bindir) ++ $(INSTALL_PROGRAM) -d $(DESTDIR)/$(bindir) + set -xe; for f in $(TARG_INSTALL); \ +- do $(INSTALL_PROGRAM) $$f $(bindir)/$$f; done ++ do $(INSTALL_PROGRAM) $$f $(DESTDIR)/$(bindir)/$$f; done + + uninstall: + for f in $(TARGETS); do rm -f $(bindir)/$$f; done +Index: dynamic/Makefile.in +=================================================================== +--- dynamic/Makefile.in.orig ++++ dynamic/Makefile.in +@@ -30,10 +30,10 @@ include $(srcdir)/../src/adns.make + ALLOBJS= $(addsuffix _p.o, $(basename $(LIBOBJS))) + + install: +- mkdir -p $(libdir) +- $(INSTALL_PROGRAM) $(SHLIBFILE) $(libdir)/$(SHLIBFILE) +- ln -sf $(SHLIBFILE) $(libdir)/$(SHLIBSONAME) +- ln -sf $(SHLIBSONAME) $(libdir)/$(SHLIBFORLINK) ++ $(INSTALL_PROGRAM) -d $(DESTDIR)/$(libdir) ++ $(INSTALL_PROGRAM) $(SHLIBFILE) $(DESTDIR)/$(libdir)/$(SHLIBFILE) ++ ln -sf $(SHLIBFILE) $(DESTDIR)/$(libdir)/$(SHLIBSONAME) ++ ln -sf $(SHLIBSONAME) $(DESTDIR)/$(libdir)/$(SHLIBFORLINK) + + uninstall: + rm -f $(libdir)/$(SHLIBFILE) $(libdir)/$(SHLIBSONAME) +Index: src/Makefile.in +=================================================================== +--- src/Makefile.in.orig ++++ src/Makefile.in +@@ -30,10 +30,11 @@ include $(srcdir)/adns.make + DIRCFLAGS= -I. -I$(srcdir) + + install: +- mkdir -p $(libdir) $(includedir) ++ $(INSTALL_PROGRAM) -d $(DESTDIR)/$(libdir) ++ $(INSTALL_PROGRAM) -d $(DESTDIR)/$(includedir) + set -xe; for f in $(TARGETS); \ +- do $(INSTALL_DATA) $$f $(libdir)/$$f; done +- $(INSTALL_DATA) $(srcdir)/../src/adns.h $(includedir)/adns.h ++ do $(INSTALL_DATA) $$f $(DESTDIR)/$(libdir)/$$f; done ++ $(INSTALL_DATA) $(srcdir)/../src/adns.h $(DESTDIR)/$(includedir)/adns.h + + uninstall: + for f in $(TARGETS); do rm -f $(libdir)/$$f; done diff --git a/adns-1.5.1.tar.gz.sig b/adns-1.5.1.tar.gz.sig new file mode 100644 index 0000000..0e6b892 Binary files /dev/null and b/adns-1.5.1.tar.gz.sig differ diff --git a/adns-visibility.patch b/adns-visibility.patch new file mode 100644 index 0000000..ac47845 --- /dev/null +++ b/adns-visibility.patch @@ -0,0 +1,33 @@ +Index: configure.in +=================================================================== +--- configure.in.orig ++++ configure.in +@@ -59,7 +59,9 @@ AC_ARG_ENABLE(dynamic, + AC_MSG_RESULT([yes, by default]) + ]) + +-AC_PROG_CC ++AC_PROG_CC_STDC ++AC_USE_SYSTEM_EXTENSIONS ++AC_SYS_LARGEFILE + AC_PROG_CPP + AC_PROG_RANLIB + AC_PROG_INSTALL +Index: src/internal.h +=================================================================== +--- src/internal.h.orig ++++ src/internal.h +@@ -51,6 +51,7 @@ typedef unsigned char byte; + # include "hredirect.h" + #endif + ++#pragma GCC visibility push(hidden) + /* Configuration and constants */ + + #define MAXSERVERS 5 +@@ -944,4 +945,5 @@ static inline int errno_resources(int e) + (tv)|=GETIL_B(cb), \ + (tv) ) + ++#pragma GCC visibility pop + #endif diff --git a/adns.changes b/adns.changes new file mode 100644 index 0000000..361eefe --- /dev/null +++ b/adns.changes @@ -0,0 +1,158 @@ +------------------------------------------------------------------- +Sat Nov 4 20:26:32 UTC 2017 - aavindraa@gmail.com + +- Update to 1.5.1 + * Fix addr queries (including subqueries, ie including deferencing MX + lookups etc.) not to crash when one of the address queries returns + tempfail. Also, do not return a spurious pointer to the application + when one of the address queries returns a permanent error (although, + the application almost certainly won't use this pointer because the + associated count is zero). + * Portability fix for systems where socklen_t is bigger than int. + * Fix for malicious optimisation of memcpy in test suite, which + causes failure with gcc-4.1.9 -O3. + * Fix TCP async connect handling. The bug is hidden on Linux and on most + systems where the nameserver is on localhost. If it is not hidden, + adns's TCP support is broken unless adns_if_noautosys is used. + * adnsresfilter: Fix addrtextbuf buffer size. This is not actually a + problem in real compiled code but should be corrected. + * Properly include harness.h in adnstest.c in regress/. Suppresses + a couple of compiler warnings (implicit declaration of Texit, etc.) +- cleanup with spec-cleaner + +------------------------------------------------------------------- +Thu Mar 23 15:13:56 UTC 2017 - kstreitova@suse.com + +- cleanup with spec-cleaner +- get rid of %{name} macro in the patch name +- restart patch numbering + +------------------------------------------------------------------- +Mon Mar 2 19:52:21 UTC 2015 - mpluskal@suse.com + +- Remove obsolete patches + * adns-ocloexec.patch + * adns-1.4-ipv6.patch +- Add gpg signature +- Cleanup spec-file with spec-cleaner +- Remove already disabled %check section, tests require working + network setup +- Update to 1.5.0 + * This release provides full IPv6 support. Applications can + request AAAA records (containing IPv6 addresses) as well as, + or instead of, A records (containing IPv4 addresses). adns + 1.5 can speak to nameservers over IPv6. + * converting between addresses and address literals. These carry + less baggage than getaddrinfo and getnameinfo. + * bugfixes and other minor changes (see changelog for details) + +------------------------------------------------------------------- +Tue Jun 11 22:44:58 UTC 2013 - crrodriguez@opensuse.org + +- remove debug statement in the spec file, leftover from + previous change. + +------------------------------------------------------------------- +Mon Jun 10 19:35:24 UTC 2013 - crrodriguez@opensuse.org + +- Build with large file support in 32 bit archs, autoconf + stuff is fine, but C files included config.h after C library + headers, therefore no prototypes for *64 functions found. + +------------------------------------------------------------------- +Wed Mar 20 12:08:57 UTC 2013 - mmeister@suse.com + +- Added download url as source. + Please see http://en.opensuse.org/SourceUrls + +------------------------------------------------------------------- +Tue Dec 20 11:24:52 UTC 2011 - coolo@suse.com + +- add autoconf as buildrequire to avoid implicit dependency + +------------------------------------------------------------------- +Tue Nov 22 15:09:47 UTC 2011 - jengelh@medozas.de + +- Remove redundant/unwanted tags/section (cf. specfile guidelines) + +------------------------------------------------------------------- +Tue Nov 22 02:23:10 UTC 2011 - crrodriguez@opensuse.org + +- Use O_CLOEXEC in library code. +- Change the visibility patch to not use the error prone + version-script but rather GCC visibility + +------------------------------------------------------------------- +Fri Sep 16 19:06:22 UTC 2011 - jengelh@medozas.de + +- Implement baselibs for package +- Remove redundant tags/sections from specfile + +------------------------------------------------------------------- +Sun Dec 19 23:07:43 UTC 2010 - cristian.rodriguez@opensuse.org + +- Use 64bit file offsets + +------------------------------------------------------------------- +Fri Nov 5 20:35:16 UTC 2010 - cristian.rodriguez@opensuse.org + +- export only public symbols + +------------------------------------------------------------------- +Fri Jan 16 23:00:59 CET 2009 - crrodriguez@suse.de + +- remove static libraries + +------------------------------------------------------------------- +Thu Sep 18 10:40:36 CEST 2008 - prusnak@suse.cz + +- document CVE-2008-1447 / CVE-2008-4100 poisoning vulnerability + in README.SUSE [bnc#426515] + +------------------------------------------------------------------- +Wed Feb 20 17:08:29 CET 2008 - prusnak@suse.cz + +- added patch to support IPv6 protocol [#350506] + +------------------------------------------------------------------- +Tue Aug 7 04:23:16 CEST 2007 - crrodriguez@suse.de + +- update to version 1.4 +- run ldconfig +- use library packaging policy +- run make check + +------------------------------------------------------------------- +Fri Sep 1 15:19:17 CEST 2006 - mt@suse.de + +- updated to adns-1.3, providing new support for SRV RRs + and unknown RRs as well as several portability fixes. +- adopted configure and destdir patches, removed obsolete + codecleanup and missing_symlink patches + +------------------------------------------------------------------- +Thu Apr 27 00:03:42 CEST 2006 - mrueckert@suse.de + +- added adns-missing_symlink.diff: + add missing symlink "libadns.so" so you can dynamically + link against libadns. + +------------------------------------------------------------------- +Wed Jan 25 21:34:07 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Mon Dec 19 14:52:07 CET 2005 - ro@suse.de + +- added libadns.so.1 to filelist + +------------------------------------------------------------------- +Mon Apr 4 18:33:27 CEST 2005 - pth@suse.de + +- Make declarations of adns__parse_domain match. + +------------------------------------------------------------------- +Tue Aug 10 07:47:56 CEST 2004 - lmuelle@suse.de + +- Inital SuSE RPM; [#43590]. diff --git a/adns.keyring b/adns.keyring new file mode 100644 index 0000000..79bc080 --- /dev/null +++ b/adns.keyring @@ -0,0 +1,113 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v2 + +mQENBEvcctcBCADIwtcYTDDJ8WdAvLvKpQU5MoDK/mz7cIWsro5fWw7RO5ASNHd6 +jvQho6vvTM92h1vv1l4LgwdBzkZLEYBM0kHgsQcl65CL06ETDTEsXb98+HcUQkbY +qiRFquFa4jhScdkUbJXPXfWPVeepDQ626WGpAD8RAgyyf5jR+mhLyhjIu+QjxgyO +ZHjc2dV6Nr9sU8MRbYX5rEIydG+xSoxMe3evPrMODIWlKhNxGNnvYmWBhXxH1Uor +FmD5apEYVnsukpoD0WQ26gRjoKEIzvFyR8UYKkF09Pv3X3/Sms1VOpjdbvj/YX0H +RpYoKI+bWDXyS3qQG9GTvALaEdAc5KzzKm1ZABEBAAG0R0lhbiBKYWNrc29uIChu +ZXcgZ2VuZXJhbCBwdXJwb3NlIGtleSkgPGlqYWNrc29uQGNoaWFyay5ncmVlbmVu +ZC5vcmcudWs+iJwEEAECAAYFAkvcdtQACgkQwxaOuiP1rdtu3wP/fIkFm1JFJggj +KNBTG4eweRMgitscsl+f1Y+UbhrDwMDeyUlVKb2ToITYdq97vjVqhlhNO4trb4eC +4p8SGbBTtnRUybplO8g0lqWLBWvGxxu5bAOGt8EWvf10OeGK2RVlrDKqZm5FYmA4 +zRYMFkrHeK/FaAL81vQGHikBJdapUbqJATcEEwEIACEFAkvcctcCGwMFCwkIBwMF +FQoJCAsFFgIDAQACHgECF4AACgkQ4+M5I0i1DTnKWQf8DiTBrgRZN0eB5eMqzY/E +v49r+OcJVygvix/RN/L5cH3z6OUZk59M7Wxc90aVfRSTRpDBqE01t9dV1gaaCPdI +bmD1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YgOn8xNe6hYK8Jji8R3QXi+YU88 +Z0nhrum7kDDEoLkBDQRL3HXvAQgA0BWaKRFttzPUwTz4qIzBAFvMAy45Ek5Yzuf+ +SG1eFlCAk6qspeX7vZLm7055LCNehXcDxaYowsn4/HqM+VCArzE7IRSXW53GfgXq +k5aBvjcxAQEX0hRsi9ZOmjEjOzbBkYV+JlMCd0U2DJeb0moFzsV9bwDI86UHXBeN +OY78iaR7ya0O7DffvKNozXWroxuWKnpBg6nyiiEXqYoR0Q4TXNOtlD9w+Y7wPf4C +oyRpJKShGhvbmE6ZQGCg7J95gZBJM055ZqGJzud9NZPqOh0oGoLdKmkxTY3bYq7U +sEnCNpfm+Q84918QIyfWOoTCxn9OWcxZScyV5Pj0onqLksPk5wARAQABiQEfBBgB +CAAJBQJL3HXvAhsMAAoJEOPjOSNItQ05r8MH/0WU5iLnd2/UUGD8RKvpgtN7kma2 ++lA7pGQDv1HEvxmxWy0MmpRSFpXuCLu8lbSflDY7yaDdb1Rx/LskwPC0L9rBGcXl +h8FPpH4ePP5fAqBHolVjX7oNRvEEN5ZsFTgvjSnpc4fr6F3sFOBB6Gg/cBDuSHg2 +XIS25EW4As2hRfYeyPfEjaBCFV1qwCDt56FuY0VwlVoweogEvHvq4Xwo+59VHzaL +bo+igA9y5EUn6K/sf/bA569GZXlTVD2iJq5quZzgZ5KQSvwbL9jlccPr05e+6w9W +WHQ6vKv+jJ0jdRu076kra9akDMabCLu6nYgGwD+OYhAHq3uifijrPwWCHT8= +=CXyp +-----END PGP PUBLIC KEY BLOCK----- diff --git a/adns.spec b/adns.spec new file mode 100644 index 0000000..4013d8a --- /dev/null +++ b/adns.spec @@ -0,0 +1,92 @@ +# +# spec file for package adns +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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/ +# + + +%define lname libadns1 +Name: adns +Version: 1.5.1 +Release: 0 +Summary: Advanced Easy-to-Use Asynchronous-Capable DNS Utilities +License: GPL-2.0+ +Group: Productivity/Networking/DNS/Utilities +Url: http://www.chiark.greenend.org.uk/~ian/adns/ftp/ +Source0: http://www.chiark.greenend.org.uk/~ian/adns/ftp/%{name}-%{version}.tar.gz +Source1: http://www.chiark.greenend.org.uk/~ian/adns/ftp/%{name}-%{version}.tar.gz.sig +Source2: %{name}.keyring +Source3: README.SUSE +Source4: baselibs.conf +Patch0: adns-1.4-destdir.patch +Patch1: adns-1.4-configure.patch +Patch2: adns-visibility.patch +BuildRequires: autoconf + +%description +adns includes a collection of useful DNS resolver utilities. + +%package -n %{lname} +Summary: Advanced DNS resolver client library +Group: System/Libraries +Provides: libadns = %{version} +#openSUSE 10.2 +Obsoletes: libadns <= 1.3 + +%description -n %{lname} +Libadns is an advanced, easy to use, asynchronous-capable DNS resolver +client library for C (and C++) programs. + +%package -n libadns-devel +Summary: Libraries and header files to develop programs with libadns support +Group: Development/Languages/C and C++ +Requires: %{lname} = %{version} +Requires: glibc-devel + +%description -n libadns-devel +Libadns-devel includes the header file and static library to develop +programs with libads support. + +%prep +%setup -q +%patch0 +%patch1 +%patch2 +cp %{SOURCE3} . + +%build +autoreconf -fiv +%configure +make %{?_smp_mflags} all + +%install +%make_install +# FIXME: --disable-static not available +rm %{buildroot}%{_libdir}/*.a + +%files +%doc COPYING GPL-vs-LGPL README* TODO changelog +%{_bindir}/adns* + +%files -n %{lname} +%{_libdir}/libadns.so.1* + +%files -n libadns-devel +%{_includedir}/adns.h +%{_libdir}/libadns.so + +%post -n %{lname} -p /sbin/ldconfig +%postun -n %{lname} -p /sbin/ldconfig + +%changelog diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..45dc339 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1,4 @@ +libadns1 +libadns-devel + requires -libadns- + requires "libadns1- = "