From 1fa33fdfe509e31da40ea1a83ed4468fc574279f Mon Sep 17 00:00:00 2001 From: kkarhan Date: Thu, 24 Aug 2023 07:14:14 +0200 Subject: [PATCH 1/8] made portable regardless of bash installation path - this is espechally useful if bash isn't installed in /usr/bin/ but is provided elsewhere in the system [i.e. toybox] --- sspm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sspm b/sspm index d2f4a81..c6f000e 100755 --- a/sspm +++ b/sspm @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#! /usr/bin/env bash set -e export CWD=$(pwd) export REPO="https://raw.githubusercontent.com/SuperSimplePackageManager/packages/main/" From 9d3b92445ceb3495f248436c050195afa8918a69 Mon Sep 17 00:00:00 2001 From: kkarhan Date: Thu, 24 Aug 2023 07:34:14 +0200 Subject: [PATCH 2/8] renaming sspm to spm because it's not super simple anymore. --- README.md | 55 ++++++++++++++++++++++++++++------------------------- sspm => spm | 34 ++++++++++++++++----------------- 2 files changed, 46 insertions(+), 43 deletions(-) rename sspm => spm (55%) diff --git a/README.md b/README.md index 39bdbb2..de2893b 100644 --- a/README.md +++ b/README.md @@ -1,33 +1,36 @@ -# SSPM -## How simple is SSPM? -SSPM is arguably too simple, and that's the point. -It's more esoteric than functional, as the goal -is not to make a package manager but rather to make -a super simple package manager. +# spm +### Simple Package Manager -## Why no options? -Options add clutter. All you do is add what packages -you want to install, and they can be installed. +--- + +## How simple is sspm? +#### spm is arguably too simple, and that's the point. +The intended design is to be brutally simple -Installing a package: `sudo sspm install ` -Removing a package: `sudo sspm remove ` +## Why no options? +#### Options add clutter. +All you do is add what packages you want to install, and they can be installed. +- Installing a package: `sudo spm install ` +- Removing a package: `sudo spm remove ` -## Why does SSPM just auto install the package? -Because it adds an extra step, which isn't super -simple. +## Why does sspm just auto install the package? +#### Because it adds an extra step, which isn't super simple. +In the unlikelyness of something needing to be configurd. ## Why no dependency checking? -Actually, this one is a personal pet peeve. WHO THE -HELL DECIDED THAT DEPENDENCIES ARE COMPILED **SEPERATELY** -FROM THE PROGRAM!? If your program needs C libraries, -well then tough shit. Should have your make file deal -with it, or make a makefile that uses SSPM to download -dependencies. I am not cluttering my package manager -with a billion libraries. - -## Why no md5 checking? -Who needs checksums? Everything is super reliable! -(That was sarcasm, truth is I didn't feel like it). +Actually, this one is a personal pet peeve of the [SSPM project's maintainer](https://github.com/SuperSimplePackageManager/SSPM): +#### WHO THE HELL DECIDED THAT DEPENDENCIES ARE COMPILED ** ~ SEPERATELY ~ ** FROM THE PROGRAM!? +If your program needs C libraries, well then that's your problem! +- Should have your make file deal with it, or make a makefile that uses sspm to download dependencies. + - We won't clutter the package manager with a billion libraries. + +Or as Linus Thorvalds said: +#### ["WE DO NOT BREAK USERSPACE!"](https://lkml.org/lkml/2012/12/23/75) +- Which is something Glibc constantly violates and which is why it's absolutely trash for every CCSS! + +## Why no MD5 / signature checking? +#### Who needs checksums or signatures? Everything is super reliable! +- That was sarcasm, truth is I didn't feel like adding it in yet. ## Is this really the most simple? -Probably, idk \ No newline at end of file +Probably not, as [SSPM](https://github.com/SuperSimplePackageManager/SSPM) will likely be simpler, and is the source that has been forked here. diff --git a/sspm b/spm similarity index 55% rename from sspm rename to spm index c6f000e..ae5c126 100755 --- a/sspm +++ b/spm @@ -1,30 +1,30 @@ #! /usr/bin/env bash set -e export CWD=$(pwd) -export REPO="https://raw.githubusercontent.com/SuperSimplePackageManager/packages/main/" -export SSPM_DIR=/usr/local/sspm +export REPO="https://raw.githubusercontent.com/OS-1337/pkgs/main/bin/" +export SPM_DIR=/usr/local/spm export ACTION="NONE" -check_sspm_foler(){ - if [ ! -d ${SSPM_DIR} ]; then - mkdir -pv ${SSPM_DIR} +check_spm_foler(){ + if [ ! -d ${spm_DIR} ]; then + mkdir -pv ${spm_DIR} fi } install_package(){ - . ${PACKAGE}.sspm + . ${PACKAGE}.spm mkdir -p ${PACKAGE}-src - cd ${SSPM_DIR}/${PACKAGE}-src + cd ${spm_DIR}/${PACKAGE}-src wget -q ${source} if [ ${format} == "tar" ]; then tar xvf *.tar.* &>/dev/null elif [ ${format} == "zip" ]; then unzip *.zip fi - cd ${SSPM_DIR}/${PACKAGE}-src/ + cd ${spm_DIR}/${PACKAGE}-src/ cp -r */. . &>/dev/null ${PACKAGE} ${ACTION} &>/dev/null - cd ${SSPM_DIR} + cd ${spm_DIR} rm -rf ${PACKAGE}* echo "Done!" } @@ -35,20 +35,20 @@ do export ACTION="INSTALL" elif [ "${PACKAGE}" == "remove" ]; then export ACTION="REMOVE" - elif [ ! -f ${CWD}/${PACKAGE}.sspm ]; then + elif [ ! -f ${CWD}/${PACKAGE}.spm ]; then echo "Installing ${PACKAGE} from repo" - check_sspm_foler - cd ${SSPM_DIR} + check_spm_foler + cd ${spm_DIR} rm -rf ${PACKAGE}* - wget -q ${REPO}/${PACKAGE}.sspm + wget -q ${REPO}/${PACKAGE}.spm install_package else - echo "Installing ${CWD}/${PACKAGE}.sspm" - check_sspm_foler - cd ${SSPM_DIR} + echo "Installing ${CWD}/${PACKAGE}.spm" + check_spm_foler + cd ${spm_DIR} rm -rf ${PACKAGE}* cd ${CWD} - cp ${CWD}/${PACKAGE}.sspm ${SSPM_DIR}/${PACKAGE}.sspm + cp ${CWD}/${PACKAGE}.spm ${spm_DIR}/${PACKAGE}.spm install_package fi done \ No newline at end of file From 7e94dabb9b47edb35b652ed69ab4752eed6abb15 Mon Sep 17 00:00:00 2001 From: kkarhan Date: Thu, 24 Aug 2023 08:06:47 +0200 Subject: [PATCH 3/8] several minor changes and additions to the README.md --- README.md | 54 +++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 37 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index de2893b..e8ac1c0 100644 --- a/README.md +++ b/README.md @@ -3,34 +3,54 @@ --- -## How simple is sspm? -#### spm is arguably too simple, and that's the point. -The intended design is to be brutally simple +To allow software to be gracefully added and removed, spm exists. +- We may intend to use spm for update functionality, but that has to be implemented yet. -## Why no options? -#### Options add clutter. +#### The default repo for OS/1337 is: +https://github.com/OS-1337/pkgs + +--- +## FAQ + +### Why spm? +#### Because all package managers suck! +Okay, that's sarcasm and yum as well as apt are great, but they are way too *THICC* for [OS/1337](https://os1337.com) and thus a sleeker alternative is necessary. +- And being able to just *yoink* binaries from the [OS/1337 package repository](https://github.com/OS-1337/pkgs) is what it should do. +### + +### How simple is spm? +spm is arguably too simple, and that's the point. +- The intended design is to be brutally simple! +### + +### Why no options? +#### Options add clutter! All you do is add what packages you want to install, and they can be installed. - Installing a package: `sudo spm install ` - Removing a package: `sudo spm remove ` +### -## Why does sspm just auto install the package? -#### Because it adds an extra step, which isn't super simple. -In the unlikelyness of something needing to be configurd. +### Why does spm just auto install the package? +Because it adds an extra step, which isn't super simple. +### -## Why no dependency checking? +### Why no dependency checking? Actually, this one is a personal pet peeve of the [SSPM project's maintainer](https://github.com/SuperSimplePackageManager/SSPM): -#### WHO THE HELL DECIDED THAT DEPENDENCIES ARE COMPILED ** ~ SEPERATELY ~ ** FROM THE PROGRAM!? +#### "WHO THE HELL DECIDED THAT DEPENDENCIES ARE COMPILED ***SEPERATELY*** FROM THE PROGRAM!?" If your program needs C libraries, well then that's your problem! -- Should have your make file deal with it, or make a makefile that uses sspm to download dependencies. - - We won't clutter the package manager with a billion libraries. +- Should have your make - file deal with it, or make a makefile that uses spm to download dependencies. + - We won't clutter the package manager with a billion libraries! -Or as Linus Thorvalds said: +Also as Linus Torvalds said: #### ["WE DO NOT BREAK USERSPACE!"](https://lkml.org/lkml/2012/12/23/75) - Which is something Glibc constantly violates and which is why it's absolutely trash for every CCSS! +### -## Why no MD5 / signature checking? -#### Who needs checksums or signatures? Everything is super reliable! +### Why no MD5 / signature checking? +Who needs checksums or signatures? Everything is super reliable! - That was sarcasm, truth is I didn't feel like adding it in yet. +### -## Is this really the most simple? -Probably not, as [SSPM](https://github.com/SuperSimplePackageManager/SSPM) will likely be simpler, and is the source that has been forked here. +### Is this really the most simple? +Probably not, as [SSPM](https://github.com/SuperSimplePackageManager/SSPM) will likely be simpler, and is the source that has been [forked here](https://github.com/OS-1337/spm). +### \ No newline at end of file From da335c70f054d1f39a8b4aae74bf2c29ecf00454 Mon Sep 17 00:00:00 2001 From: Kevin Karhan Date: Thu, 24 Aug 2023 13:18:28 +0200 Subject: [PATCH 4/8] fixed typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index de2893b..49bb5a9 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ --- -## How simple is sspm? +## How simple is spm? #### spm is arguably too simple, and that's the point. The intended design is to be brutally simple From 74e23a25f51413bbb02dc6ec320303164a902456 Mon Sep 17 00:00:00 2001 From: Kevin Karhan Date: Thu, 24 Aug 2023 13:20:00 +0200 Subject: [PATCH 5/8] fixed typo --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 49bb5a9..69029f3 100644 --- a/README.md +++ b/README.md @@ -2,22 +2,23 @@ ### Simple Package Manager --- +## FAQS -## How simple is spm? +### How simple is spm? #### spm is arguably too simple, and that's the point. The intended design is to be brutally simple -## Why no options? +### Why no options? #### Options add clutter. All you do is add what packages you want to install, and they can be installed. - Installing a package: `sudo spm install ` - Removing a package: `sudo spm remove ` -## Why does sspm just auto install the package? +### Why does spm just auto install the package? #### Because it adds an extra step, which isn't super simple. In the unlikelyness of something needing to be configurd. -## Why no dependency checking? +### Why no dependency checking? Actually, this one is a personal pet peeve of the [SSPM project's maintainer](https://github.com/SuperSimplePackageManager/SSPM): #### WHO THE HELL DECIDED THAT DEPENDENCIES ARE COMPILED ** ~ SEPERATELY ~ ** FROM THE PROGRAM!? If your program needs C libraries, well then that's your problem! @@ -28,9 +29,9 @@ Or as Linus Thorvalds said: #### ["WE DO NOT BREAK USERSPACE!"](https://lkml.org/lkml/2012/12/23/75) - Which is something Glibc constantly violates and which is why it's absolutely trash for every CCSS! -## Why no MD5 / signature checking? +### Why no MD5 / signature checking? #### Who needs checksums or signatures? Everything is super reliable! - That was sarcasm, truth is I didn't feel like adding it in yet. -## Is this really the most simple? +### Is this really the most simple? Probably not, as [SSPM](https://github.com/SuperSimplePackageManager/SSPM) will likely be simpler, and is the source that has been forked here. From 1c122f7b120844bce4428603df187dc86f39d88e Mon Sep 17 00:00:00 2001 From: kkarhan Date: Sat, 2 Sep 2023 00:39:41 +0200 Subject: [PATCH 6/8] - changing format from .tar to .bz2 & from .zip to .xz - removing requirement for unzip. --- spm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/spm b/spm index ae5c126..225ec21 100755 --- a/spm +++ b/spm @@ -16,11 +16,13 @@ install_package(){ mkdir -p ${PACKAGE}-src cd ${spm_DIR}/${PACKAGE}-src wget -q ${source} - if [ ${format} == "tar" ]; then - tar xvf *.tar.* &>/dev/null - elif [ ${format} == "zip" ]; then - unzip *.zip + + if [ ${format} == "bz2" ]; then + tar xvf *.bz2 &>/dev/null + elif [ ${format} == "xz" ]; then + tar xvf *.xz &>/dev/null fi + cd ${spm_DIR}/${PACKAGE}-src/ cp -r */. . &>/dev/null ${PACKAGE} ${ACTION} &>/dev/null From c947ae8b7b216803bd6db23a3d8082d65bdd1c45 Mon Sep 17 00:00:00 2001 From: kkarhan Date: Sat, 2 Sep 2023 00:41:45 +0200 Subject: [PATCH 7/8] - changing format from .tar to .bz2 & from .zip to .xz - removing requirement for unzip. --- .gitignore | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 From 2a3a7dff4eb259c6d03981c0534cd527e6af774d Mon Sep 17 00:00:00 2001 From: kkarhan Date: Fri, 13 Oct 2023 01:40:01 +0200 Subject: [PATCH 8/8] fixed minor typos and changing LICENSE to LICENSE.md --- LICENSE | 21 --------------------- LICENSE.md | 13 +++++++++++++ README.md | 6 +++--- 3 files changed, 16 insertions(+), 24 deletions(-) delete mode 100644 LICENSE create mode 100644 LICENSE.md diff --git a/LICENSE b/LICENSE deleted file mode 100644 index d5095b2..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2022 Super Simple Package Manager - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..b474e97 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,13 @@ +# spm +## License + +--- + +### MIT License +#### Copyright (c) 2022 Simple Package Manager + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +##### THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md index de2893b..ebfd0cc 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ --- -## How simple is sspm? +## How simple is spm? #### spm is arguably too simple, and that's the point. The intended design is to be brutally simple @@ -13,7 +13,7 @@ All you do is add what packages you want to install, and they can be installed. - Installing a package: `sudo spm install ` - Removing a package: `sudo spm remove ` -## Why does sspm just auto install the package? +## Why does spm just auto install the package? #### Because it adds an extra step, which isn't super simple. In the unlikelyness of something needing to be configurd. @@ -21,7 +21,7 @@ In the unlikelyness of something needing to be configurd. Actually, this one is a personal pet peeve of the [SSPM project's maintainer](https://github.com/SuperSimplePackageManager/SSPM): #### WHO THE HELL DECIDED THAT DEPENDENCIES ARE COMPILED ** ~ SEPERATELY ~ ** FROM THE PROGRAM!? If your program needs C libraries, well then that's your problem! -- Should have your make file deal with it, or make a makefile that uses sspm to download dependencies. +- Should have your make file deal with it, or make a makefile that uses spm to download dependencies. - We won't clutter the package manager with a billion libraries. Or as Linus Thorvalds said: