diff options
author | Neubauer, Sebastian <Sebastian.Neubauer@amd.com> | 2021-10-14 17:52:56 +0200 |
---|---|---|
committer | Neubauer, Sebastian <Sebastian.Neubauer@amd.com> | 2021-10-14 17:52:56 +0200 |
commit | e36b70ed550e3ed85386e30dd5006fea46080fc8 (patch) | |
tree | 43083ca7a3a980c956a8a07302b6d8bf8867a3d2 | |
parent | f1220d72a3a06b0fbac1999b5c8a097d1d10cc0f (diff) |
swec: remove
The package doesn't run because of missing dependencies. I fixed these but it still didn't work properly. (It complained that the searched page was unexpectedly short, although according to strace it didn't even connect anywhere.) Upstream (https://gitlab.com/zerodogg/swec) did not see any commits in the last 9 years, so I think we should just drop this package. LinkChecker, which is also packaged seems like a good and working alternative.
-rw-r--r-- | pkgs/tools/networking/swec/default.nix | 74 | ||||
-rw-r--r-- | pkgs/top-level/aliases.nix | 1 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
3 files changed, 1 insertions, 76 deletions
diff --git a/pkgs/tools/networking/swec/default.nix b/pkgs/tools/networking/swec/default.nix deleted file mode 100644 index 6751b1cf5eb8b..0000000000000 --- a/pkgs/tools/networking/swec/default.nix +++ /dev/null @@ -1,74 +0,0 @@ -{ fetchurl, lib, stdenv, makeWrapper, perlPackages }: - -stdenv.mkDerivation rec { - pname = "swec"; - version = "0.4"; - - src = fetchurl { - url = "http://files.zerodogg.org/swec/swec-${version}.tar.bz2"; - sha256 = "1m3971z4z1wr0paggprfz0n8ng8vsnkc9m6s3bdplgyz7qjk6jwx"; - }; - - nativeBuildInputs = [ makeWrapper ]; - buildInputs = [ perlPackages.perl perlPackages.LWP perlPackages.URI perlPackages.HTMLParser ]; - checkInputs = [ perlPackages.HTTPServerSimple perlPackages.Parent ]; - - configurePhase = '' - for i in swec tests/{runTests,testServer} - do - sed -i "$i" -e's|/usr/bin/perl|${perlPackages.perl}/bin/perl|g' - done - ''; - - dontBuild = true; - - installPhase = '' - make install prefix="$out" - - mkdir -p "$out/share/swec-${version}" - cp -v default.sdf "$out/share/swec-${version}" - sed -i "$out/bin/swec" -e"s|realpath(\$0)|'$out/share/swec-${version}/swec'|g" - - wrapProgram "$out/bin/swec" \ - --prefix PERL5LIB : ${with perlPackages; makePerlPath [ LWP URI HTMLParser ]} - ''; - - doCheck = true; - checkPhase = "make test"; - - meta = { - homepage = "https://random.zerodogg.org/swec/"; - - description = "Simple Web Error Checker (SWEC)"; - - longDescription = - '' SWEC (Simple Web Error Checker) is a program that automates testing - of dynamic websites. It parses each HTML file it finds for links, - and if those links are within the site specified (ie. local, not - external), it will check that page as well. In this respect it - works a lot like a crawler, in that it'll click on any link it finds - (more notes about this later). - - In addition to parsing and locating links, it will also parse the - pages looking for known errors and report those (such as Mason or - PHP errors), and will report if a page can not be read (by either - returning a 404, 500 or similar). - - Since you may often want SWEC to be logged in on your site, you have - to be careful. When logged in, SWEC will still click on all links - it finds, including things like 'join group' or 'delete account' - (though it has some magic trying to avoid the latter). Therefore it - is highly recommended that when you run SWEC as a logged-in user on - a site, use a test server, not the live one. - - Running SWEC on a live site without being logged in as a user is - perfectly fine, it won't do anything a normal crawler wouldn't do - (well, not exactly true, SWEC will ignore robots.txt). - ''; - - license = lib.licenses.gpl3Plus; - - maintainers = [ ]; - platforms = lib.platforms.linux; - }; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 8e9edb67edbe5..dbeedf28325c9 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -896,6 +896,7 @@ mapAliases ({ stumpwm-git = throw "stumpwm-git has been broken for a long time and lispPackages.stumpwm follows Quicklisp that is close to git version"; # added 2021-05-09 surf-webkit2 = surf; # added 2017-04-02 sup = throw "sup was deprecated on 2019-09-10: abandoned by upstream"; + swec = throw "swec has been removed; broken and abandoned upstream."; # added 2021-10-14 swfdec = throw "swfdec has been removed as broken and unmaintained."; # added 2020-08-23 swtpm-tpm2 = swtpm; # added 2021-02-26 syncthing-cli = syncthing; # added 2021-04-06 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f3197712d39a3..a93b78b85e068 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9585,8 +9585,6 @@ with pkgs; swapview = callPackage ../os-specific/linux/swapview/default.nix { }; - swec = callPackage ../tools/networking/swec { }; - swtpm = callPackage ../tools/security/swtpm { }; svn2git = callPackage ../applications/version-management/git-and-tools/svn2git { |