bash: add znc scripts

I cannot find them with gist search.
This commit is contained in:
Mikaela Suomalainen 2014-08-26 20:19:03 +03:00
parent 5f070eec86
commit 98b2a06dbd
2 changed files with 29 additions and 0 deletions

10
bash/zncconfigure.bash Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
cd znc
./autogen.sh
mkdir -p build
cd build
# PYENV (two lines)
export LD_LIBRARY_PATH=/home/users/mkaysi/.pyenv/versions/3.4.1/lib
export PKG_CONFIG_PATH=/home/users/mkaysi/.pyenv/versions/3.4.1/lib/pkgconfig/
../configure --enable-debug --enable-perl --enable-python --enable-swig --enable-tcl --disable-cyrus --prefix=$HOME/.local
make -j$(nproc)

19
bash/zncmodules.bash Executable file
View File

@ -0,0 +1,19 @@
#!/usr/bin/env bash
# This script downloads external ZNC modules which I use.
cd znc
cd modules
echo "Downloading kvirc.cpp"
curl -LO https://raw.githubusercontent.com/DarthGandalf/znc/dgmods/modules/kvirc.cpp
#echo "Downloading otr.cpp"
#curl -LO https://raw.githubusercontent.com/mmilata/znc-otr/master/otr.cpp
echo "Downloading privmsg.cpp"
curl -LO https://raw.githubusercontent.com/kylef/znc-contrib/master/privmsg.cpp
# ~/.znc/modules
mkdir -p ~/.znc/modules
cd ~/.znc/modules
echo "Downloading push.py"
curl -LO https://raw.githubusercontent.com/jreese/znc-push/python/push.py
echo "You can now run zncconfigure.bash"