-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
knock: init at 0.8 #356740
base: master
Are you sure you want to change the base?
knock: init at 0.8 #356740
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This patch does quite a bit more than just moving the output destination. You can probably accomplish the same result with substituteInPlace
in the postPatch phase.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may not be accepted as the project lacks activity and it is said to have an unrevealed vulnerability (jvinet/knock#91)
substituteInPlace Makefile.am \ | ||
--replace-fail "sbin_PROGRAMS = knockd" "bin_PROGRAMS += knockd" \ | ||
--replace-fail "dist_sbin_SCRIPTS = src/knock_helper_ipt.sh" "" \ | ||
--replace-fail "sysconf_DATA = knockd.conf" "" \ | ||
--replace-fail "dist_doc_DATA = README.md TODO ChangeLog COPYING" "" \ | ||
--replace-fail "src/knock_helper_ipt.sh" "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use patch instead, this looks painful
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(The review above does not say that you should move the complicated parts to substituteInPlace)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking about just patching the sbin_PROGAMS
part ^^', in this case this should indeed be a patch.
''; | ||
|
||
meta = { | ||
description = "A port-knocking implementation"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description = "A port-knocking implementation"; | |
description = "Port-knocking implementation"; | |
longDescription = '' | |
This is a port-knocking server/client. Port-knocking is | |
a method where a server can sniff one of its interfaces | |
for a special "knock" sequence of port-hits. When | |
detected, it will run a specified event bound to that port | |
knock sequence. These port-hits need not be on open | |
ports, since we use libpcap to sniff the raw interface traffic. | |
''; |
license = lib.licenses.gpl2Plus; | ||
maintainers = with lib.maintainers; [ theobori ]; | ||
mainProgram = "knock"; | ||
platforms = lib.platforms.unix; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
platforms = lib.platforms.unix; | |
platforms = lib.platforms.linux; |
A port-knocking implementation.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.