Thu, 04 Oct 2012 20:30:05 +0200
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@615 | 1 | ## |
michael@615 | 2 | ## libget.spec -- OpenPKG RPM Package Specification |
michael@615 | 3 | ## Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com> |
michael@615 | 4 | ## |
michael@615 | 5 | ## Permission to use, copy, modify, and distribute this software for |
michael@615 | 6 | ## any purpose with or without fee is hereby granted, provided that |
michael@615 | 7 | ## the above copyright notice and this permission notice appear in all |
michael@615 | 8 | ## copies. |
michael@615 | 9 | ## |
michael@615 | 10 | ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
michael@615 | 11 | ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
michael@615 | 12 | ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
michael@615 | 13 | ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
michael@615 | 14 | ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
michael@615 | 15 | ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
michael@615 | 16 | ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
michael@615 | 17 | ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
michael@615 | 18 | ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
michael@615 | 19 | ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
michael@615 | 20 | ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
michael@615 | 21 | ## SUCH DAMAGE. |
michael@615 | 22 | ## |
michael@615 | 23 | |
michael@615 | 24 | # package information |
michael@615 | 25 | Name: libget |
michael@615 | 26 | Summary: Portable Getdelim(3) and Getline(3) Replacements |
michael@615 | 27 | URL: http://dev.europalab.com/libget/ |
michael@615 | 28 | Vendor: Oracle Corporation |
michael@615 | 29 | Packager: Michael Schloh von Bennewitz |
michael@615 | 30 | Distribution: Europalab Networks Production |
michael@615 | 31 | Class: EVAL |
michael@615 | 32 | Group: Libraries |
michael@615 | 33 | License: CDDL |
michael@615 | 34 | Version: 1.0 |
michael@615 | 35 | Release: 20120208 |
michael@615 | 36 | |
michael@615 | 37 | # list of sources |
michael@615 | 38 | Source0: ftp://ftp.europalab.com/pub/sfw/libget/libget-%{version}.tar.gz |
michael@615 | 39 | |
michael@615 | 40 | # build information |
michael@615 | 41 | Prefix: %{l_prefix} |
michael@615 | 42 | BuildRoot: %{l_buildroot} |
michael@615 | 43 | BuildPreReq: OpenPKG, openpkg >= 20040130 |
michael@615 | 44 | PreReq: OpenPKG, openpkg >= 20040130 |
michael@615 | 45 | AutoReq: no |
michael@615 | 46 | AutoReqProv: no |
michael@615 | 47 | |
michael@615 | 48 | %description |
michael@615 | 49 | Libget implements the nonstandard getdelim(3) and getline(3) functions |
michael@615 | 50 | often used in POSIX applications. The library exports these two symbols |
michael@615 | 51 | providing a C binding. A header file completes the API and serves as |
michael@615 | 52 | the sole documentation. This library is useful for applications with |
michael@615 | 53 | build failures caused by development failing to comply with ISO C11 |
michael@615 | 54 | or any other versions of the C programming language standard. |
michael@615 | 55 | |
michael@615 | 56 | %track |
michael@615 | 57 | prog libget = { |
michael@615 | 58 | version = %{version} |
michael@615 | 59 | url = ftp://ftp.europalab.com/pub/sfw/libget/ |
michael@615 | 60 | regex = libget-(__VER__)\.tar\.gz |
michael@615 | 61 | } |
michael@615 | 62 | |
michael@615 | 63 | %prep |
michael@615 | 64 | %setup -q |
michael@615 | 65 | |
michael@615 | 66 | %build |
michael@615 | 67 | %{l_cc} %{l_cppflags} -c libget.c |
michael@615 | 68 | ar cq libget.a libget.o |
michael@615 | 69 | |
michael@615 | 70 | %install |
michael@615 | 71 | rm -rf $RPM_BUILD_ROOT |
michael@615 | 72 | %{l_shtool} mkdir -f -p -m 755 \ |
michael@615 | 73 | $RPM_BUILD_ROOT%{l_prefix}/include \ |
michael@615 | 74 | $RPM_BUILD_ROOT%{l_prefix}/lib |
michael@615 | 75 | %{l_shtool} install -c -m 644 \ |
michael@615 | 76 | libget.h \ |
michael@615 | 77 | $RPM_BUILD_ROOT%{l_prefix}/include/ |
michael@615 | 78 | %{l_shtool} install -c -m 644 \ |
michael@615 | 79 | libget.a \ |
michael@615 | 80 | $RPM_BUILD_ROOT%{l_prefix}/lib/ |
michael@615 | 81 | %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
michael@615 | 82 | |
michael@615 | 83 | %files -f files |
michael@615 | 84 | |
michael@615 | 85 | %clean |
michael@615 | 86 | rm -rf $RPM_BUILD_ROOT |
michael@615 | 87 |