whois/whois.spec

Thu, 04 Oct 2012 20:30:05 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 04 Oct 2012 20:30:05 +0200
changeset 715
c10fb90893b9
parent 662
22841d168ea4
permissions
-rw-r--r--

Correct out of date build configuration, porting to Solaris 11 network
link infrastructure and new libpcap logic. This additionally allows for
device drivers in subdirectories of /dev. Correct packaged nmap
personalities and signatures to work out of the box. Finally, hack
arpd logic to properly close sockets and quit on TERM by repeating
signaling in the run command script. Sadly, all this fails to correct
the run time behaviour of honeyd which fails to bind to the IP layer.

michael@662 1 ##
michael@662 2 ## whois.spec -- OpenPKG RPM Package Specification
michael@662 3 ## Copyright (c) 2000-2011 OpenPKG Foundation e.V. <http://openpkg.net/>
michael@662 4 ##
michael@662 5 ## Permission to use, copy, modify, and distribute this software for
michael@662 6 ## any purpose with or without fee is hereby granted, provided that
michael@662 7 ## the above copyright notice and this permission notice appear in all
michael@662 8 ## copies.
michael@662 9 ##
michael@662 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@662 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@662 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@662 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@662 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@662 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@662 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@662 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@662 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@662 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@662 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@662 21 ## SUCH DAMAGE.
michael@662 22 ##
michael@662 23
michael@662 24 # package information
michael@662 25 Name: whois
michael@662 26 Summary: WHOIS Client
michael@662 27 URL: http://www.linux.it/~md/software/
michael@662 28 Vendor: Marco d'Itri
michael@662 29 Packager: OpenPKG Foundation e.V.
michael@662 30 Distribution: OpenPKG Community
michael@662 31 Class: BASE
michael@662 32 Group: WHOIS
michael@662 33 License: GPL
michael@662 34 Version: 5.0.14
michael@663 35 Release: 20120800
michael@662 36
michael@662 37 # list of sources
michael@662 38 Source0: http://ftp.debian.org/debian/pool/main/w/whois/whois_%{version}.tar.gz
michael@662 39
michael@662 40 # build information
michael@662 41 BuildPreReq: OpenPKG, openpkg >= 20100101, make, perl
michael@662 42 PreReq: OpenPKG, openpkg >= 20100101
michael@662 43
michael@662 44 %description
michael@662 45 A client for querying the WHOIS databases of over 60 top-level domains.
michael@662 46
michael@662 47 %track
michael@662 48 prog whois = {
michael@662 49 version = %{version}
michael@662 50 url = http://ftp.debian.org/debian/pool/main/w/whois/
michael@662 51 regex = whois_(__VER__)\.tar\.gz
michael@662 52 }
michael@662 53
michael@662 54 %prep
michael@662 55 %setup -q
michael@662 56 %{l_shtool} subst \
michael@662 57 -e 's;^OPTS[ ]*:*=.*$;OPTS=;' \
michael@663 58 -e 's;^\(install:.*\)install-pos;\1;' \
michael@663 59 -e 's;^\(all:.*\)pos;\1;' \
michael@662 60 Makefile
michael@662 61
michael@662 62 %build
michael@662 63 %{l_shtool} subst -e "s;perl;%{l_prefix}/bin/perl;" Makefile
michael@662 64
michael@662 65 ldflags=""
michael@662 66 case "%{l_platform -t}" in
michael@662 67 *-sunos* )
michael@662 68 ldflags="-lnsl -lsocket"
michael@662 69 ;;
michael@662 70 *-freebsd* )
michael@662 71 %{l_shtool} subst \
michael@662 72 -e "s;# define HAVE_GETOPT_LONG;/* # define HAVE_GETOPT_LONG */;" \
michael@662 73 -e "s;# define ENABLE_NLS;/* # define ENABLE_NLS */;" \
michael@662 74 -e "s;# define LOCALEDIR "/usr/local/share/locale";/* # define LOCALEDIR "/usr/local/share/locale"*/;" \
michael@662 75 config.h
michael@662 76 ;;
michael@662 77 esac
michael@662 78
michael@663 79 %{l_make} %{l_mflags -O} \
michael@662 80 CC="%{l_cc}" \
michael@662 81 CFLAGS="%{l_cflags -O}" \
michael@662 82 LDFLAGS="$ldflags"
michael@662 83
michael@662 84 %install
michael@662 85 %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/bin
michael@662 86 %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/man/man1
michael@662 87 %{l_shtool} install -s -c -m 755 whois $RPM_BUILD_ROOT%{l_prefix}/bin/
michael@662 88 %{l_shtool} install -c -m 644 whois.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
michael@662 89 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@662 90
michael@662 91 %files -f files
michael@662 92
michael@662 93 %clean
michael@662 94

mercurial