target-isns: init at 0.6.8

authored by Markus Kowalewski and committed by Markus Kowalewski abd767dc 9622a898

+55
+36
pkgs/os-specific/linux/target-isns/default.nix
···
··· 1 + { stdenv, cmake, fetchFromGitHub, fetchpatch } : 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "target-isns"; 5 + version = "0.6.8"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "open-iscsi"; 9 + repo = pname; 10 + rev = "v${version}"; 11 + sha256 = "1b6jjalvvkkjyjbg1pcgk8vmvc6xzzksyjnh2pfi45bbpya4zxim"; 12 + }; 13 + 14 + patches = [ 15 + # fix absoulute paths 16 + ./install_prefix_path.patch 17 + 18 + # fix gcc 10 compiler warning, remove with next update 19 + (fetchpatch { 20 + url = "https://github.com/open-iscsi/target-isns/commit/3d0c47dd89bcf83d828bcc22ecaaa5f58d78b58e.patch"; 21 + sha256 = "1x2bkc1ff15621svhpq1r11m0q4ajv0j4fng6hm7wkkbr2s6d1vx"; 22 + }) 23 + ]; 24 + 25 + cmakeFlags = [ "-DSUPPORT_SYSTEMD=ON" ]; 26 + 27 + nativeBuildInputs = [ cmake ]; 28 + 29 + meta = with stdenv.lib; { 30 + description = "iSNS client for the Linux LIO iSCSI target"; 31 + homepage = "https://github.com/open-iscsi/target-isns"; 32 + maintainers = [ maintainers.markuskowa ]; 33 + license = licenses.gpl2Only; 34 + platforms = platforms.linux; 35 + }; 36 + }
+17
pkgs/os-specific/linux/target-isns/install_prefix_path.patch
···
··· 1 + diff --git a/CMakeLists.txt b/CMakeLists.txt 2 + index f46144d..aeac3e4 100644 3 + --- a/CMakeLists.txt 4 + +++ b/CMakeLists.txt 5 + @@ -14,10 +14,10 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror") 6 + option(SUPPORT_SYSTEMD "Support service control via systemd" OFF) 7 + 8 + add_subdirectory(src) 9 + -install(FILES target-isns.conf DESTINATION /etc/) 10 + +install(FILES target-isns.conf DESTINATION ${CMAKE_INSTALL_PREFIX}/etc/) 11 + install(FILES target-isns.8 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man8/) 12 + if (SUPPORT_SYSTEMD) 13 + - install(FILES target-isns.service DESTINATION /usr/lib/systemd/system/) 14 + + install(FILES target-isns.service DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/systemd/system/) 15 + endif (SUPPORT_SYSTEMD) 16 + 17 + add_subdirectory(tests)
+2
pkgs/top-level/all-packages.nix
··· 7786 7787 targetcli = callPackage ../os-specific/linux/targetcli { }; 7788 7789 tarsnap = callPackage ../tools/backup/tarsnap { }; 7790 7791 tarsnapper = callPackage ../tools/backup/tarsnapper { };
··· 7786 7787 targetcli = callPackage ../os-specific/linux/targetcli { }; 7788 7789 + target-isns = callPackage ../os-specific/linux/target-isns { }; 7790 + 7791 tarsnap = callPackage ../tools/backup/tarsnap { }; 7792 7793 tarsnapper = callPackage ../tools/backup/tarsnapper { };