squidpm

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

commit 521476df3fc4bd7b395376a08a6f1f35584bc1b9
parent a9fa10fa3f3b09b3bb9c44ac0d8c1babb9d0eb64
Author: Josh Moore <jxm5210@rit.edu>
Date:   Wed, 15 Jan 2020 22:42:22 -0500

Add package: busybox

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

diff --git a/packages/busybox b/packages/busybox @@ -0,0 +1,33 @@ +#!/bin/bash + +# set this to the public git url of the package +GITURL=https://github.com/mirror/busybox.git + +# the name of this package +me=$(basename "$0") +mydir=$(dirname "$0") + +if [ $1 = "install" ]; then + mkdir -p $mydir/../repos/$me + cd $mydir/../repos/$me + + # clone the repo + git clone $GITURL . + + # installation behavior for this package + make defconfig && make + make install +elif [ $1 = "uninstall" ]; then + cd $mydir/../repos/$me + # uninstallation behavior for this package + + make clean + + cd .. + rm -rf $me +elif [ $1 = "update" ]; then + cd $mydir/../repos/$me + # update behavior for this package + git pull + make +fi