Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

secure-delete PKGBUILD

By: a guest on Oct 2nd, 2011  |  syntax: Bash  |  size: 0.89 KB  |  hits: 97  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Federico Quagliata (quaqo) <linux@quaqo.org>
  2.  
  3. pkgname=secure-delete
  4. pkgver=3.1
  5. pkgfile=${pkgname//-/_}-$pkgver
  6. pkgrel=3
  7. pkgdesc="Secure file, disk, swap, memory erasure utilities"
  8. url="http://www.thc.org/"
  9. depends=('glibc')
  10. license=('GPL')
  11. arch=('i686' 'x86_64')
  12. source=(http://freeworld.thc.org/releases/$pkgfile.tar.gz)
  13. md5sums=('aabbd7e77bf96b326d260f16fb7f8bba')
  14.  
  15. build()
  16. {
  17.   cd "${srcdir}"/${pkgfile}
  18.   sed -i -e 's/mktemp/mkstemp/g' sfill.c
  19.   sed -i -e "s/sswap smem sdel-mod.o/sswap smem/" -e '/test.*sdel-mod/d' \
  20.         -e "s/^srm: /srm: sdel-lib.o /" -e "s/^sfill: /sfill: sdel-lib.o /" \
  21.         -e "s/^sswap: /sswap: sdel-lib.o /" -e "s/^smem: /smem: sdel-lib.o /" \
  22.         Makefile
  23.   make
  24. }
  25.  
  26. package()
  27. {
  28.   cd "${srcdir}"/${pkgfile}
  29.   make INSTALL_DIR=${pkgdir}/usr/bin \
  30.     MAN_DIR=${pkgdir}/usr/share/man \
  31.     DOC_DIR=${pkgdir}/usr/share/doc/secure_delete \
  32.     install
  33. }
  34.