cpio/cpio.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 613
c56570cdd629
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@612 1 ##
michael@612 2 ## cpio.spec -- OpenPKG RPM Package Specification
michael@612 3 ## Copyright (c) 2000-2010 OpenPKG Foundation e.V. <http://openpkg.net/>
michael@612 4 ##
michael@612 5 ## Permission to use, copy, modify, and distribute this software for
michael@612 6 ## any purpose with or without fee is hereby granted, provided that
michael@612 7 ## the above copyright notice and this permission notice appear in all
michael@612 8 ## copies.
michael@612 9 ##
michael@612 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@612 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@612 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@612 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@612 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@612 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@612 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@612 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@612 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@612 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@612 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@612 21 ## SUCH DAMAGE.
michael@612 22 ##
michael@612 23
michael@612 24 # package information
michael@612 25 Name: cpio
michael@612 26 Summary: Un-/Packing of CPIO Archive Files
michael@612 27 URL: http://www.gnu.org/software/cpio/
michael@612 28 Vendor: Free Software Foundation
michael@612 29 Packager: OpenPKG Foundation e.V.
michael@612 30 Distribution: OpenPKG Community
michael@612 31 Class: BASE
michael@612 32 Group: Archiver
michael@612 33 License: GPL
michael@612 34 Version: 2.11
michael@613 35 Release: 20120800
michael@612 36
michael@612 37 # list of sources
michael@612 38 Source0: ftp://ftp.gnu.org/pub/gnu/cpio/cpio-%{version}.tar.gz
michael@612 39 Patch0: cpio.patch
michael@612 40
michael@612 41 # build information
michael@614 42 BuildPreReq: OpenPKG, openpkg >= 20100101, make, texinfo
michael@612 43 PreReq: OpenPKG, openpkg >= 20100101
michael@612 44
michael@612 45 %description
michael@612 46 CPIO copies files into or out of a CPIO or TAR archive, which is a
michael@612 47 file that contains other files plus information about them, such
michael@612 48 as their file name, owner, timestamps, and access permissions. The
michael@612 49 archive can be another file on the disk, a magnetic tape, or a pipe.
michael@612 50
michael@612 51 %track
michael@612 52 prog cpio = {
michael@612 53 version = %{version}
michael@612 54 url = ftp://ftp.gnu.org/pub/gnu/cpio/
michael@612 55 regex = cpio-(__VER__)\.tar\.gz
michael@612 56 }
michael@612 57
michael@612 58 %prep
michael@612 59 %setup -q
michael@612 60 %patch -p0
michael@612 61
michael@612 62 %build
michael@613 63 case "%{l_platform -t}" in
michael@613 64 *-sunos5.10 )
michael@613 65 loclibs="-lget"
michael@613 66 ( echo "The libc(3) distributed with Solaris 10 does not provide the getdelim(3)"
michael@613 67 echo "and getline(3) nonstandard C functions needed by this package. Prepare"
michael@613 68 echo "for build failure or install the optional libget(3) package as a stopgap."
michael@613 69 ) | %{l_rpmtool} msg -b -t warn
michael@613 70 ;;
michael@613 71 esac
michael@612 72 CC="%{l_cc}" \
michael@612 73 CFLAGS="%{l_cflags -O}" \
michael@613 74 LIBS="$loclibs" \
michael@612 75 GREP="grep" \
michael@612 76 ./configure \
michael@612 77 --prefix=%{l_prefix} \
michael@612 78 --datarootdir=%{l_prefix} \
michael@612 79 --libexecdir=%{l_prefix}/libexec/cpio
michael@612 80 %{l_make} %{l_mflags -O}
michael@612 81
michael@612 82 %install
michael@613 83 %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT"
michael@612 84 rm -rf $RPM_BUILD_ROOT%{l_prefix}/locale
michael@612 85 rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
michael@613 86 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/charset.alias
michael@612 87 mv $RPM_BUILD_ROOT%{l_prefix}/man/man1/mt.1 \
michael@612 88 $RPM_BUILD_ROOT%{l_prefix}/man/man1/rmt.1
michael@612 89 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
michael@612 90 strip $RPM_BUILD_ROOT%{l_prefix}/libexec/cpio/* 2>/dev/null || true
michael@612 91 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@612 92
michael@612 93 %files -f files
michael@612 94
michael@612 95 %clean
michael@612 96

mercurial