wipe/wipe.spec

Mon, 28 Jan 2013 17:37:18 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 28 Jan 2013 17:37:18 +0100
changeset 758
a2c6460cfb16
parent 509
536c89cc7749
permissions
-rw-r--r--

Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.

michael@509 1 ##
michael@509 2 ## wipe.spec -- OpenPKG RPM Package Specification
michael@509 3 ## Copyright (c) 2000-2010 OpenPKG Foundation e.V. <http://openpkg.net/>
michael@509 4 ##
michael@509 5 ## Permission to use, copy, modify, and distribute this software for
michael@509 6 ## any purpose with or without fee is hereby granted, provided that
michael@509 7 ## the above copyright notice and this permission notice appear in all
michael@509 8 ## copies.
michael@509 9 ##
michael@509 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@509 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@509 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@509 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@509 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@509 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@509 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@509 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@509 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@509 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@509 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@509 21 ## SUCH DAMAGE.
michael@509 22 ##
michael@509 23
michael@509 24 # package information
michael@509 25 Name: wipe
michael@509 26 Summary: Secure File Deletion Utility
michael@509 27 URL: http://lambda-diode.com/software/wipe
michael@509 28 Vendor: Berke Durak
michael@509 29 Packager: OpenPKG Foundation e.V.
michael@509 30 Distribution: OpenPKG Community
michael@509 31 Class: EVAL
michael@509 32 Group: Filesystem
michael@509 33 License: GPL
michael@509 34 Version: 0.22
michael@510 35 Release: 20120800
michael@509 36
michael@509 37 # list of sources
michael@509 38 Source0: http://lambda-diode.com/resources/wipe/wipe-%{version}.tar.gz
michael@509 39
michael@509 40 # build information
michael@510 41 BuildPreReq: OpenPKG, openpkg >= 20100101, make, gcc
michael@509 42 PreReq: OpenPKG, openpkg >= 20100101
michael@509 43
michael@509 44 %description
michael@509 45 Wipe is a little command for securely erasing files from magnetic
michael@509 46 media by following the approach described in the article "Secure
michael@509 47 Deletion of Data from Magnetic and Solid-State Memory" by Peter
michael@509 48 Gutmann.
michael@509 49
michael@509 50 %track
michael@509 51 prog wipe = {
michael@509 52 version = %{version}
michael@509 53 url = http://lambda-diode.com/software/wipe
michael@509 54 regex = wipe-(__VER__)\.tar\.gz
michael@509 55 }
michael@509 56
michael@509 57 %prep
michael@509 58 %setup -q
michael@509 59 chmod a+x trtur
michael@510 60 %{l_shtool} subst \
michael@510 61 -e 's;WIPE_GIT;WIPE_CVS;g' \
michael@510 62 -e 's;Git version:;Cvs version:;' \
michael@510 63 wipe.c
michael@509 64
michael@509 65 %build
michael@509 66 platform="generic"
michael@509 67 case "%{l_platform -t}" in
michael@509 68 *-aix* ) platform="aix" ;;
michael@509 69 *-linux* ) platform="linux" ;;
michael@509 70 *-freebsd* ) platform="freebsd" ;;
michael@509 71 ix86-sunos* ) platform="solarisx86" ;;
michael@509 72 amd64-sunos* ) platform="solarisx86" ;;
michael@509 73 sun4u-sunos* ) platform="solarissp" ;;
michael@509 74 esac
michael@509 75 %{l_make} %{l_mflags -O} $platform
michael@509 76
michael@509 77 %install
michael@509 78 %{l_shtool} mkdir -f -p -m 755 \
michael@509 79 $RPM_BUILD_ROOT%{l_prefix}/bin \
michael@509 80 $RPM_BUILD_ROOT%{l_prefix}/man/man1
michael@509 81 %{l_shtool} install -c -s -m 755 \
michael@509 82 wipe $RPM_BUILD_ROOT%{l_prefix}/bin/
michael@509 83 %{l_shtool} install -c -m 644 \
michael@509 84 wipe.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
michael@509 85 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@509 86
michael@509 87 %files -f files
michael@509 88
michael@509 89 %clean
michael@509 90

mercurial