2017-06-19 13:16:59 -05:00
|
|
|
INSTALLER != curl -s https://aninix.net/foundation/installer-test.bash | /bin/bash
|
2016-08-04 12:10:50 -05:00
|
|
|
|
2016-12-15 16:29:07 -06:00
|
|
|
compile: clean /usr/bin/mcs CryptoWorkbench.csharp
|
|
|
|
if [ ! -d ../SharedLibraries ]; then git -C /usr/local/src clone https://aninix.net/foundation/SharedLibraries; fi
|
2017-07-06 12:10:56 -05:00
|
|
|
git -C /usr/local/src/SharedLibraries pull
|
2016-12-15 16:29:07 -06:00
|
|
|
/usr/bin/mcs -out:cryptoworkbench.exe ../SharedLibraries/CSharp/*.csharp *.csharp 2>&1
|
2016-08-04 12:10:50 -05:00
|
|
|
|
|
|
|
test: /usr/bin/mono compile
|
2017-07-06 12:10:56 -05:00
|
|
|
echo quit | /usr/bin/mono cryptoworkbench.exe ./sample.txt
|
2016-08-04 12:10:50 -05:00
|
|
|
|
|
|
|
clean:
|
|
|
|
if [ -f cryptoworkbench.exe ]; then rm cryptoworkbench.exe; fi
|
|
|
|
|
|
|
|
install: compile /bin/bash bash.cryptoworkbench
|
2017-07-06 12:10:56 -05:00
|
|
|
mkdir -p ${pkgdir}/opt ${pkgdir}/usr/local/bin/ ${pkgdir}/usr/local/bin/
|
|
|
|
mv cryptoworkbench.exe ${pkgdir}/opt
|
|
|
|
cp bash.cryptoworkbench ${pkgdir}/usr/local/bin/cryptoworkbench
|
|
|
|
cp captivecrypto.bash ${pkgdir}/usr/local/bin/captivecrypto
|
2017-06-19 13:16:59 -05:00
|
|
|
make checkperm
|
2016-08-04 12:10:50 -05:00
|
|
|
|
2017-06-19 13:16:59 -05:00
|
|
|
checkperm:
|
2017-07-06 12:10:56 -05:00
|
|
|
chmod 0555 ${pkgdir}/opt/cryptoworkbench.exe ${pkgdir}/usr/local/bin/cryptoworkbench ${pkgdir}/usr/local/bin/captivecrypto
|
|
|
|
chown root:root ${pkgdir}/usr/local/bin/captivecrypto ${pkgdir}/opt/cryptoworkbench.exe
|
2016-08-04 12:10:50 -05:00
|
|
|
|
|
|
|
sshuser: install ForceCommand.txt
|
|
|
|
grep captivecrypto /etc/shells || echo '/usr/local/bin/captivecrypto' /etc/shells
|
|
|
|
id crypto || useradd -k -d /home/crypto -s /usr/local/bin/captivecrypto crypto
|
|
|
|
cat ./ForceCommand.txt >> /etc/ssh/sshd_config
|
|
|
|
echo crypto | passwd --stdin crypto
|
|
|
|
|
|
|
|
tmux: /usr/bin/tmux
|
|
|
|
@echo Making sure cryptoworkbench setting isn\'t already in /etc/tmux.conf...
|
2017-07-06 12:10:56 -05:00
|
|
|
[ `grep -c "cryptoworkbench" /etc/tmux.conf` -eq 0 ]
|
2016-08-04 12:10:50 -05:00
|
|
|
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
|
2017-06-19 13:16:59 -05:00
|
|
|
|
|
|
|
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
|