PKGBUILD 1.6 KB

12345678910111213141516171819202122232425262728293031
  1. # Maintainer: Luke R. <g4jc@openmailbox.org> GPG: rsa4096/3EAE8697
  2. # Contributor: André Silva <emulatorman@hyperbola.info>
  3. pkgname=tor-hardened-preferences
  4. pkgver=0.1
  5. pkgrel=2
  6. pkgdesc="Creates clean chroot for TOR to run in, and cleans left over files when done running."
  7. arch=(any)
  8. license=(GPL3)
  9. depends=('tor')
  10. url="https://wiki.parabola.nu/Nonprism"
  11. install=tor-hardened-preferences.install
  12. source=('tor-hardened.service'
  13. 'tor-hardened.sh'
  14. 'torrc'
  15. 'torchroot.sh'
  16. 'tor-hardened-preferences.install')
  17. sha512sums=('2bd9ecdc089b49358e4fd1d4cddbc7e6260ab56c0c870f287bb8e4a8553111902df8222d3836046bdf011d2c02123e24cebfe1d9ca88259c7bd61e308bf68c77'
  18. '26ca71558e0651858226fe475cd96456e4c9039f1954832e7a7b7011b31b67e82dadd6d033059f88dd8ed355ac9dd4568058f04482c7011d6f0ae47726c9c557'
  19. '5d732ddbd96c0467434a03c1ba3aa14f5536affb1fa713a78b0d95eccefbfe4c9b6d68fefcbbf7fc9f23e5e80e4ddfb67f2047ad3bdd14a0b5bb72a9e947404e'
  20. 'd767d55763ad2952e1620260fe92d3cd15383454ec7cae17432c8294bbc056ac5a91d9bf958b4a6bef4000d9bc78ca2411c6e6e48b352ec64fb33a8c0f2da98f'
  21. '025b2b8ec7c74908af43b13d6dbb7fc85901b7f6e9899ab8e0cfc5f6d806d37d137378d4ef44f04e39250f874cdbe4152357e9e778a007833b779217978d49bb')
  22. package() {
  23. mkdir -p ${pkgdir}/opt/tor-hardened-scripts
  24. install -Dm755 tor-hardened.sh ${pkgdir}/opt/tor-hardened-scripts/tor-hardened.sh
  25. install -Dm644 torrc ${pkgdir}/opt/tor-hardened-scripts/torrc
  26. install -Dm755 torchroot.sh ${pkgdir}/opt/tor-hardened-scripts/torchroot.sh
  27. install -Dm0644 "${srcdir}/tor-hardened.service" "${pkgdir}/usr/lib/systemd/system/tor-hardened.service"
  28. }