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