diff --git a/brewenvs b/brewenvs new file mode 100644 index 0000000..c2830eb --- /dev/null +++ b/brewenvs @@ -0,0 +1,8 @@ +TOOLSDIR="/opt/TundraWare/tools" + +export PATH="${TOOLSDIR}/bin:${TOOLSDIR}/sbin:$PATH" +export MANPATH="${TOOLSDIR}/share/man:$MANPATH" +export INFOPATH="${TOOLSDIR}/share/info:$INFOPATH" +export XDG_DATA_DIRS="${TOOLSDIR}/share:${XDG_DATA_DIRS}" + +alias brew='brew -v' diff --git a/makefile b/makefile index e69de29..de27162 100644 --- a/makefile +++ b/makefile @@ -0,0 +1,41 @@ +# Produce standard tools tarballs using linuxbrew + +EXPORTDIR = /shared +INSTALLDIR = /opt/TundraWare +TOOLS = tools +TOOLSDIR = ${INSTALLDIR}/${TOOLS} + +BREW = ${TOOLSDIR}/bin/brew +DATESTAMP = $(shell date +%Y%m%d) + +# Get latest linuxbrew + +getbrew: + echo "Make sure you have write permission on the target directory!" + git clone https://github.com/Linuxbrew/brew.git ${TOOLSDIR} + +bootstrap-build: + echo "Make sure you have the OS development tools installed!" + ${BREW} install git make file-formula perl + +bootstrap-release: tidyup + cd ${INSTALLDIR} && mv -v ${TOOLS} ${TOOLS}-bootstrap-${DATESTAMP} + cd ${INSTALLDIR} && tar -czvf ${EXPORTDIR}/${TOOLS}-bootstrap-${DATESTAMP}.tar.gz ${TOOLS}-bootstrap-${DATESTAMP} + +full-build: + echo "Make sure you OS autoconf, automake, and perl installed!" + echo 'Make sure the bootstrap is installed at $TOOLSDIR' + ${BREW} install emacs joe htop nload nmap screen the_silver_searcher tree vim + +full-release: tidyup + cd ${INSTALLDIR} && mv -v ${TOOLS} ${TOOLS}-full-${DATESTAMP} + cd ${INSTALLDIR} && tar -czvf ${EXPORTDIR}/${TOOLS}-${DATESTAMP}.tar.gz ${TOOLS}-${DATESTAMP} + +tidyup: + ${BREW} config + ${BREW} prune + ${BREW} cleanup + -${BREW} doctor + +clean: + rm -vrf ${TOOLSDIR}