共有 1 个文件被更改,包括 104 次插入 和 0 次删除
@ -0,0 +1,104 @@
|
||||
## |
||||
## adns.spec -- OpenPKG RPM Specification |
||||
## Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH |
||||
## Copyright (c) 2000-2002 The OpenPKG Project <http://www.openpkg.org/> |
||||
## Copyright (c) 2000-2002 Ralf S. Engelschall <rse@engelschall.com> |
||||
## |
||||
## Permission to use, copy, modify, and distribute this software for |
||||
## any purpose with or without fee is hereby granted, provided that |
||||
## the above copyright notice and this permission notice appear in all |
||||
## copies. |
||||
## |
||||
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
||||
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
||||
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
||||
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
||||
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
||||
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
||||
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
||||
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
||||
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
||||
## SUCH DAMAGE. |
||||
## |
||||
|
||||
# Package information |
||||
Name: adns |
||||
Summary: Advanced, easy to use, asynchronous-capable DNS client library |
||||
URL: http://www.chiark.greenend.org.uk/~ian/adns/ |
||||
Vendor: Free Software Foundation |
||||
Packager: The OpenPKG Project |
||||
Distribution: OpenPKG [EXP] |
||||
Group: Net |
||||
License: GPL |
||||
Version: 1.0 |
||||
#FIXME was geht's hier in Release, %{l_branch}.0, 6mdk, oder etwas anders? |
||||
Release: 20020220 |
||||
|
||||
# Sources |
||||
#FIXME welche URL zu verwenden? Soll die beiden sein, und Source1 umnennen? |
||||
#Source0: ftp://ftp.gnu.org/pub/gnu/adns/adns-%{version}.tar.gz |
||||
Source0: ftp://ftp.chiark.greenend.org.uk/users/ian/adns/adns-%{version}.tar.gz |
||||
|
||||
# Build information |
||||
Prefix: %{l_prefix} |
||||
BuildRoot: %{l_buildroot} |
||||
BuildPreReq: OpenPKG, openpkg >= 20020206, make |
||||
PreReq: OpenPKG, openpkg >= 20020206 |
||||
AutoReq: no |
||||
AutoReqProv: no |
||||
|
||||
%description |
||||
adns is a resolver library for C (and C++) programs. In contrast with the |
||||
existing interfaces, gethostbyname et al. and libresolv, it has the |
||||
following features: |
||||
* It is reasonably easy to use for simple programs which just want to |
||||
translate names to addresses, look up MX records, etc. |
||||
* It can be used in an asynchronous, nonblocking, manner. Many queries |
||||
can be handled simultaneously. |
||||
* Responses are decoded automatically into a natural representation for |
||||
a C program - there is no need to deal with DNS packet formats. |
||||
* Sanity checking (e.g., name syntax checking, reverse/forward |
||||
correspondence, CNAME pointing to CNAME) is performed automatically. |
||||
* Time-to-live, CNAME and other similar information is returned in an |
||||
easy to use form, without getting in the way. |
||||
* There is no global state in the library; resolver state is an opaque |
||||
data structure which the client creates explicitly. A program can have |
||||
several instances of the resolver. |
||||
* Errors are reported to the application in a way that distinguishes the |
||||
various causes of failure properly. |
||||
* Understands conventional resolv.conf, but this can overridden by |
||||
environment variables. |
||||
* Flexibility. For example, the application can tell adns to: ignore |
||||
environment variables (for setuid programs), disable sanity checks e.g. |
||||
to return arbitrary data, override or ignore resolv.conf in favour of |
||||
supplied configuration, etc. |
||||
* Believed to be correct! For example, will correctly back off to TCP |
||||
in case of long replies or queries, or to other nameservers if several |
||||
are available. It has sensible handling of bad responses etc. |
||||
|
||||
%prep |
||||
%setup -q |
||||
|
||||
%build |
||||
PATH="%{l_prefix}/bin:$PATH"; export PATH |
||||
CC="%{l_cc}" \ |
||||
CFLAGS="%{l_cflags -O}" \ |
||||
./configure --prefix=%{l_prefix} |
||||
%{l_make} %{l_mflags -O} |
||||
|
||||
%install |
||||
rm -rf $RPM_BUILD_ROOT |
||||
%{l_shtool} mkdir -f -p -m 755 \ |
||||
$RPM_BUILD_ROOT%{l_prefix} |
||||
%{l_make} %{l_mflags} install \ |
||||
prefix=$RPM_BUILD_ROOT%{l_prefix} \ |
||||
exec_prefix=$RPM_BUILD_ROOT%{l_prefix} |
||||
#FIXME strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |
||||
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
||||
|
||||
%files -f files |
||||
|
||||
%clean |
||||
rm -rf $RPM_BUILD_ROOT |
正在加载...
在新工单中引用