3
0
Fork 0
forked from mirrors/nixpkgs

udpt: init at 2016-02-20

fixes #19171
This commit is contained in:
makefu 2016-10-02 22:11:48 +02:00 committed by Jörg Thalheim
parent 69bb34673e
commit 3ca28283bf
No known key found for this signature in database
GPG key ID: CA4106B8D7CC79FA
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,42 @@
{ stdenv, fetchFromGitHub, boost, sqlite }:
stdenv.mkDerivation rec {
name = "udpt-${version}";
version = "2016-02-20"; # v2.0-rc0 with sample config
enableParallelBuilding = true;
# Suitable for a network facing daemon.
hardeningEnable = [ "pie" ];
src = fetchFromGitHub {
owner = "naim94a";
repo = "udpt";
rev = "0790558de8b5bb841bb10a9115bbf72c3b4711b5";
sha256 = "0rgkjwvnqwbnqy7pm3dk176d3plb5lypaf12533yr0yfzcp6gnzk";
};
buildInputs = [ boost sqlite ];
postPatch = ''
# Enabling optimization (implied by fortify hardening) causes htons
# to be re-defined as a macro, turning this use of :: into a syntax error.
sed -i '104a#undef htons' src/udpTracker.cpp
'';
installPhase = ''
mkdir -p $out/bin $out/etc/
cp udpt $out/bin
cp udpt.conf $out/etc/
# without this, the resulting binary is unstripped.
runHook postInstall
'';
meta = {
description = "A lightweight UDP torrent tracker";
homepage = https://naim94a.github.io/udpt;
license = stdenv.lib.licenses.gpl3;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ makefu ];
};
}

View file

@ -3892,6 +3892,8 @@ in
udftools = callPackage ../tools/filesystems/udftools {};
udpt = callPackage ../servers/udpt { };
udptunnel = callPackage ../tools/networking/udptunnel { };
ufraw = callPackage ../applications/graphics/ufraw { };