squidpm

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

commit a9fa10fa3f3b09b3bb9c44ac0d8c1babb9d0eb64
parent bb0f8710f436b040db3c52e98e76a26b23bcf026
Author: Josh Moore <jxm5210@rit.edu>
Date:   Wed, 15 Jan 2020 22:28:45 -0500

Add package: linux

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

diff --git a/packages/linux b/packages/linux @@ -0,0 +1,33 @@ +#!/bin/bash + +# set this to the public git url of the package +GITURL=https://github.com/torvalds/linux.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 + # do a shallow clone, linux is huge... + git clone --depth 1 $GITURL . + + # installation behavior for this package + make defconfig && make +elif [ $1 = "uninstall" ]; then + cd $mydir/../repos/$me + # uninstallation behavior for this package + + sudo make clean + + cd .. + rm -rf $me +elif [ $1 = "update" ]; then + cd $mydir/../repos/$me + # update behavior for this package + git pull + make +fi