diff options
author | Matt Housh <jaeger@crux.ninja> | 2018-04-17 17:26:22 -0500 |
---|---|---|
committer | Matt Housh <jaeger@crux.ninja> | 2018-04-17 17:26:22 -0500 |
commit | a9566d92143f093c7aa79abbc5b49b7c66606bd9 (patch) | |
tree | afb83a7cebc81c166d16fb60f860628e92826d91 /hefur/Pkgfile | |
parent | b2879d4e6236c04996349cd6d059a580aea023a0 (diff) | |
download | contrib-a9566d92143f093c7aa79abbc5b49b7c66606bd9.tar.gz contrib-a9566d92143f093c7aa79abbc5b49b7c66606bd9.tar.xz |
hefur: initial commit, version 0.6-8b3dd3c
Diffstat (limited to 'hefur/Pkgfile')
-rw-r--r-- | hefur/Pkgfile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/hefur/Pkgfile b/hefur/Pkgfile new file mode 100644 index 000000000..ef87e0be9 --- /dev/null +++ b/hefur/Pkgfile @@ -0,0 +1,23 @@ +# Description: Standalone C++ BitTorrent tracker +# URL: https://github.com/abique/hefur +# Maintainer: Matt Housh, jaeger at crux dot ninja +# Depends on: protobuf cmake gnutls git + +name=hefur +version=0.6-8b3dd3c +release=1 +source=(https://crux.nu/~jaeger/files/$name-8b3dd3c.tar.xz \ + hefurd) + +build() { + cd $name-8b3dd3c + sed -i -e '45,48d' CMakeLists.txt + mkdir build + cd build + cmake -DCMAKE_INSTALL_PREFIX=/usr .. + make + make DESTDIR=$PKG install + install -d -m 0755 -o root -g root $PKG/var/run/hefur $PKG/usr/share/hefur/torrents + install -D -m 0644 -o root -g root /dev/null $PKG/var/log/hefurd.log + install -D -m 0755 -o root -g root $SRC/hefurd $PKG/etc/rc.d/hefurd +} |