🔒 Repository is read-only – file editing is disabled.

recipes/utils/tor/PAGBUILD.yaml main

29 linii Raw ← Powrót
1234567891011121314151617181920212223242526272829
pkgname: tor
pkgver: '0.4.9.11'
pkgrel: '1'
pkgdesc: Tor is a anonymous network and proxy.
url: 'https://www.torproject.org/'
arch: x86_64
license:
- BSD
depends: []
makedepends:
- systemd
- libevent
- openssl
- zlib
source:
- 'https://www.torproject.org/dist/tor-${pkgver}.tar.gz'
- tor-config.patch
- tor
- tor.sysusers
- tor.tmpfiles
sha256sums:
- 2e6c1720118c812acf0079fd47cf91b6bfaba5d766c321c4d3d2a28d6a11a8ed
- SKIP
- SKIP
- SKIP
- SKIP
build: "cd ${pkgname}-${pkgver}\npatch -p 1 -i ./tor-config.patch\n\n# fix for find: The relative path `~/bin' is included in the PATH\n# environment variable, which is insecure in combination with the\n# -execdir action of find. Please remove that entry from $PATH\nexport PATH='/sbin:/usr/sbin:/bin:/usr/bin'\n./configure \\\n\t--prefix=/usr \\\n\t--mandir=/usr/man \\\n\t--sysconfdir=/etc\n\nmake\nmake DESTDIR=${PKGDIR} install\n\n         install -Dm 644 ./tor ${PKGDIR}/usr/lib/systemd/system/tor.service\n         install -Dm 644 ./tor.sysusers ${PKGDIR}/usr/lib/sysusers.d/tor.conf\n         install -Dm 644 ./tor.tmpfiles ${PKGDIR}/usr/lib/tmpfiles.d/tor.conf\n\ninstall -d ${PKGDIR}/usr/var/lib/tor\nchown root:root ${PKGDIR}/usr/var/lib/tor\ntouch \\\n\t${PKGDIR}/usr/var/lib/tor/cached-certs \\\n\t${PKGDIR}/usr/var/lib/tor/cached-consensus \\\n\t${PKGDIR}/usr/var/lib/tor/cached-descriptors \\\n\t${PKGDIR}/usr/var/lib/tor/cached-descriptors.new \\\n\t${PKGDIR}/usr/var/lib/tor/cached-routers.new \\\n\t${PKGDIR}/usr/var/lib/tor/state\nfind ${PKGDIR}/usr/var/lib/tor/ -type f -execdir chown root:root {} \\; -execdir chmod 0600 {} \\;\n\nmv ${PKGDIR}/etc/tor/torrc.sample ${PKGDIR}/etc/tor/torrc\nfind ${PKGDIR}/etc/tor/ -type f -exec chown root:tor {} \\; -execdir chmod 0640 {} \\;\n\nfind ${PKGDIR}/usr/bin -type f -execdir chown root:tor {} \\; -execdir chmod 0750 {} \\;\n\ninstall -d ${PKGDIR}/var/log/tor\nchown root:root ${PKGDIR}/var/log/tor\ntouch ${PKGDIR}/var/log/tor/notices.log\nfind ${PKGDIR}/var/log/tor/ -type f -exec chown root:root {} \\; -execdir chmod 0640 {} \\;\n\n\n       install -Dm644 LICENSE ${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE\n"
package: |
  true