CoCalc is a real-time collaborative commercial alternative to JupyterHub and Overleaf that provides Jupyter Notebooks, LaTeX documents, and SageMath.
CoCalc is a real-time collaborative commercial alternative to JupyterHub and Overleaf that provides Jupyter Notebooks, LaTeX documents, and SageMath.
Path: blob/master/make-deb.sh
Views: 3095
#!/bin/bash12# Make Deb Package for Zphisher (^.^)3_PACKAGE=zphisher4_VERSION=2.3.55_ARCH="all"6PKG_NAME="${_PACKAGE}_${_VERSION}_${_ARCH}.deb"78if [[ ! -e "scripts/launch.sh" ]]; then9echo "lauch.sh should be in the \`scripts\` Directory. Exiting..."10exit 111fi1213if [[ ${1,,} == "termux" || $(uname -o) == *'Android'* ]];then14_depend="ncurses-utils, proot, resolv-conf, "15_bin_dir="data/data/com.termux/files/"16_opt_dir="data/data/com.termux/files/usr/"17#PKG_NAME=${_PACKAGE}_${_VERSION}_${_ARCH}_termux.deb18fi1920_depend+="curl, php, unzip"21_bin_dir+="usr/bin"22_opt_dir+="opt/${_PACKAGE}"2324if [[ -d "build_env" ]]; then rm -fr build_env; fi25mkdir -p build_env26mkdir -p ./build_env/${_bin_dir} ./build_env/$_opt_dir ./build_env/DEBIAN2728cat <<- CONTROL_EOF > ./build_env/DEBIAN/control29Package: ${_PACKAGE}30Version: ${_VERSION}31Architecture: ${_ARCH}32Maintainer: @htr-tech33Depends: ${_depend}34Homepage: https://github.com/htr-tech/zphisher35Description: An automated phishing tool with 30+ templates. This Tool is made for educational purpose only !36CONTROL_EOF3738cat <<- PRERM_EOF > ./build_env/DEBIAN/prerm39#!/bin/bash40rm -fr $_opt_dir41exit 042PRERM_EOF4344chmod 755 ./build_env/DEBIAN45chmod 755 ./build_env/DEBIAN/{control,prerm}46cp -fr scripts/launch.sh ./build_env/$_bin_dir/$_PACKAGE47chmod 755 ./build_env/$_bin_dir/$_PACKAGE48cp -fr .github/ .sites/ LICENSE README.md zphisher.sh ./build_env/$_opt_dir49dpkg-deb --build ./build_env ${PKG_NAME}50rm -fr ./build_env515253