diff options
author | davidovski <david@davidovski.xyz> | 2022-05-31 11:05:19 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-31 11:05:19 +0100 |
commit | 48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch) | |
tree | 00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/tor/tor.xibuild | |
parent | 871b2b573f01c1b3176a0f65458b3d281b41c437 (diff) |
removed idea of repos
Diffstat (limited to 'repo/tor/tor.xibuild')
-rw-r--r-- | repo/tor/tor.xibuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/repo/tor/tor.xibuild b/repo/tor/tor.xibuild new file mode 100644 index 0000000..8441516 --- /dev/null +++ b/repo/tor/tor.xibuild @@ -0,0 +1,44 @@ +#!/bin/sh + +NAME="tor" +DESC="Anonymous network connectivity" + +MAKEDEPS="make " +DEPS="libcap libseccomp libevent openssl cacerts zlib xz zstd " + +PKG_VER=0.4.7.7 +SOURCE="https://www.torproject.org/dist/tor-$PKG_VER.tar.gz" +ADDITIONAL="torrc.sample.patch tor.initd tor.confd" + +prepare () { + apply_patches +} + +build () { + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/share/man \ + --disable-html-manual + make + +} + +package () { + make DESTDIR="$PKG_DEST" install + + install -dm0755 -o "tor" \ + "$PKG_DEST"/var/lib/"tor" \ + "$PKG_DEST"/var/log/"tor" + + install -Dm0755 "tor".initd \ + "$PKG_DEST"/etc/init.d/"tor" + install -Dm0644 "tor".confd \ + "$PKG_DEST"/etc/conf.d/"tor" +} + +postinstall () { + adduser -S -D -H -h /var/lib/tor -s /sbin/nologin -g tor tor 2>/dev/null + return 0 +} |