From c9f73b23e89968dbd4ef78489f3c284fb3c86e53 Mon Sep 17 00:00:00 2001 From: DarkFeather Date: Mon, 19 Jun 2017 13:16:59 -0500 Subject: [PATCH] Licensing and Makefile standards --- LICENSE | 27 +++++++++++++++++++++++++++ Makefile | 21 +++++++++++++-------- 2 files changed, 40 insertions(+), 8 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..878d895 --- /dev/null +++ b/LICENSE @@ -0,0 +1,27 @@ +# http://www.wtfpl.net/about/ + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. + + ANINIX ADDENDUM + + Trademark Pending 2017 (https://aninix.net/irc/) + + The "AniNIX" name and |> logo is trademark-pending as of 2017. All + AniNIX materials can be reproduced and re-used, though you must + contact the admins of the network to get written permission to use + the AniNIX name. + + Attribution is appreciated for other materials but not legally + required or necessary. diff --git a/Makefile b/Makefile index 89da37e..ce880af 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ TMUXSetting != grep -c "cryptoworkbench" /etc/tmux.conf +INSTALLER != curl -s https://aninix.net/foundation/installer-test.bash | /bin/bash compile: clean /usr/bin/mcs CryptoWorkbench.csharp if [ ! -d ../SharedLibraries ]; then git -C /usr/local/src clone https://aninix.net/foundation/SharedLibraries; fi @@ -13,17 +14,13 @@ clean: install: compile /bin/bash bash.cryptoworkbench mv cryptoworkbench.exe /opt - chmod 0555 /opt/cryptoworkbench.exe cp bash.cryptoworkbench /usr/local/bin/cryptoworkbench - chmod 0555 /usr/local/bin/cryptoworkbench cp captivecrypto.bash /usr/local/bin/captivecrypto - chown root:root /usr/local/bin/captivecrypto - chmod 0755 /usr/local/bin/captivecrypto + make checkperm -webapp: install - javac CryptoApplet.java - @echo TODO this is a work in progress. - @echo Install the CryptoApplet.class and crypto.phpsnip into a webpage for your site. +checkperm: + chmod 0555 /opt/cryptoworkbench.exe /usr/local/bin/cryptoworkbench /usr/local/bin/captivecrypto + chown root:root /usr/local/bin/captivecrypto /opt/cryptoworkbench.exe sshuser: install ForceCommand.txt grep captivecrypto /etc/shells || echo '/usr/local/bin/captivecrypto' /etc/shells @@ -36,3 +33,11 @@ tmux: /usr/bin/tmux [ "${TMUXSetting}" -eq 0 ] echo "bind-key -T prefix x new-window cryptoworkbench" >> /etc/tmux.conf echo 'bind-key -T prefix X confirm-before -p "kill-pane #P? (y/n)" kill-pane' >> /etc/tmux.conf + +diff: captivecrypto.bash + diff captivecrypto.bash /usr/local/bin/captivecrypto + diff ./bash.cryptoworkbench /usr/local/bin/cryptoworkbench + +reverse: + cat /usr/local/bin/captivecrypto > ./captivecrypto.bash + cat /usr/local/bin/cryptoworkbench > ./bash.cryptoworkbench