squidpm

the squid package manager
git clone git://squid-tech.com/squidpm.git
Log | Files | Refs | README | LICENSE

commit 6d17b7579681598ed6deb9977a94388aa8408762
parent 010ec7251116c0aff6f48da9d76b16c026fe4aa3
Author: Josh Moore <jxm5210@rit.edu>
Date:   Tue, 14 Jan 2020 18:06:47 -0500

Add package: direwolf

Diffstat:
Apackages/direwolf | 43+++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+), 0 deletions(-)

diff --git a/packages/direwolf b/packages/direwolf @@ -0,0 +1,43 @@ +#!/bin/sh + +# set this to the public git url of the package +GITURL=https://github.com/wb2osz/direwolf.git + +# the name of this package +me=$(basename "$0") +mydir=$(dirname "$0") + +# create a repo dir for this package if it doesn't exist +mkdir -p $mydir/../repos/$me +cd $mydir/../repos/$me + +if [ $1 == "install" ]; then + # clone the repo + git clone $GITURL . + + # installation behavior for this package + make + make install + make install-conf + echo "Installed direwolf." +elif [ $1 == "uninstall" ]; then + # uninstallation behavior for this package + make clean + + cd .. + rm -rf $me + + rm -f ~/direwolf.conf + rm -f ~/dw-start.sh + rm -f ~/sdr.conf + rm -f ~/telem-balloon.conf + rm -f ~/telem-volts.conf + rm -f ~/telem-m0xer-3.txt + + echo "Uninstalled direwolf." +elif [ $1 == "update" ]; then + # update behavior for this package + git pull + make + sudo make install +fi