michael@509: ## michael@509: ## wipe.spec -- OpenPKG RPM Package Specification michael@509: ## Copyright (c) 2000-2010 OpenPKG Foundation e.V. michael@509: ## michael@509: ## Permission to use, copy, modify, and distribute this software for michael@509: ## any purpose with or without fee is hereby granted, provided that michael@509: ## the above copyright notice and this permission notice appear in all michael@509: ## copies. michael@509: ## michael@509: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@509: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@509: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@509: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@509: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@509: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@509: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@509: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@509: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@509: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@509: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@509: ## SUCH DAMAGE. michael@509: ## michael@509: michael@509: # package information michael@509: Name: wipe michael@509: Summary: Secure File Deletion Utility michael@509: URL: http://lambda-diode.com/software/wipe michael@509: Vendor: Berke Durak michael@509: Packager: OpenPKG Foundation e.V. michael@509: Distribution: OpenPKG Community michael@509: Class: EVAL michael@509: Group: Filesystem michael@509: License: GPL michael@509: Version: 0.22 michael@510: Release: 20120800 michael@509: michael@509: # list of sources michael@509: Source0: http://lambda-diode.com/resources/wipe/wipe-%{version}.tar.gz michael@509: michael@509: # build information michael@510: BuildPreReq: OpenPKG, openpkg >= 20100101, make, gcc michael@509: PreReq: OpenPKG, openpkg >= 20100101 michael@509: michael@509: %description michael@509: Wipe is a little command for securely erasing files from magnetic michael@509: media by following the approach described in the article "Secure michael@509: Deletion of Data from Magnetic and Solid-State Memory" by Peter michael@509: Gutmann. michael@509: michael@509: %track michael@509: prog wipe = { michael@509: version = %{version} michael@509: url = http://lambda-diode.com/software/wipe michael@509: regex = wipe-(__VER__)\.tar\.gz michael@509: } michael@509: michael@509: %prep michael@509: %setup -q michael@509: chmod a+x trtur michael@510: %{l_shtool} subst \ michael@510: -e 's;WIPE_GIT;WIPE_CVS;g' \ michael@510: -e 's;Git version:;Cvs version:;' \ michael@510: wipe.c michael@509: michael@509: %build michael@509: platform="generic" michael@509: case "%{l_platform -t}" in michael@509: *-aix* ) platform="aix" ;; michael@509: *-linux* ) platform="linux" ;; michael@509: *-freebsd* ) platform="freebsd" ;; michael@509: ix86-sunos* ) platform="solarisx86" ;; michael@509: amd64-sunos* ) platform="solarisx86" ;; michael@509: sun4u-sunos* ) platform="solarissp" ;; michael@509: esac michael@509: %{l_make} %{l_mflags -O} $platform michael@509: michael@509: %install michael@509: %{l_shtool} mkdir -f -p -m 755 \ michael@509: $RPM_BUILD_ROOT%{l_prefix}/bin \ michael@509: $RPM_BUILD_ROOT%{l_prefix}/man/man1 michael@509: %{l_shtool} install -c -s -m 755 \ michael@509: wipe $RPM_BUILD_ROOT%{l_prefix}/bin/ michael@509: %{l_shtool} install -c -m 644 \ michael@509: wipe.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/ michael@509: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@509: michael@509: %files -f files michael@509: michael@509: %clean michael@509: