udpt: init at 2016-02-20

fixes #19171

authored by makefu and committed by Jörg Thalheim 3ca28283 69bb3467

+44
+42
pkgs/servers/udpt/default.nix
··· 1 + { stdenv, fetchFromGitHub, boost, sqlite }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "udpt-${version}"; 5 + version = "2016-02-20"; # v2.0-rc0 with sample config 6 + 7 + enableParallelBuilding = true; 8 + 9 + # Suitable for a network facing daemon. 10 + hardeningEnable = [ "pie" ]; 11 + 12 + src = fetchFromGitHub { 13 + owner = "naim94a"; 14 + repo = "udpt"; 15 + rev = "0790558de8b5bb841bb10a9115bbf72c3b4711b5"; 16 + sha256 = "0rgkjwvnqwbnqy7pm3dk176d3plb5lypaf12533yr0yfzcp6gnzk"; 17 + }; 18 + 19 + buildInputs = [ boost sqlite ]; 20 + 21 + postPatch = '' 22 + # Enabling optimization (implied by fortify hardening) causes htons 23 + # to be re-defined as a macro, turning this use of :: into a syntax error. 24 + sed -i '104a#undef htons' src/udpTracker.cpp 25 + ''; 26 + 27 + installPhase = '' 28 + mkdir -p $out/bin $out/etc/ 29 + cp udpt $out/bin 30 + cp udpt.conf $out/etc/ 31 + # without this, the resulting binary is unstripped. 32 + runHook postInstall 33 + ''; 34 + 35 + meta = { 36 + description = "A lightweight UDP torrent tracker"; 37 + homepage = https://naim94a.github.io/udpt; 38 + license = stdenv.lib.licenses.gpl3; 39 + platforms = stdenv.lib.platforms.linux; 40 + maintainers = with stdenv.lib.maintainers; [ makefu ]; 41 + }; 42 + }
+2
pkgs/top-level/all-packages.nix
··· 3892 3892 3893 3893 udftools = callPackage ../tools/filesystems/udftools {}; 3894 3894 3895 + udpt = callPackage ../servers/udpt { }; 3896 + 3895 3897 udptunnel = callPackage ../tools/networking/udptunnel { }; 3896 3898 3897 3899 ufraw = callPackage ../applications/graphics/ufraw { };