maybe almost done
This commit is contained in:
parent
234033dcdc
commit
01878d12f1
18
README.md
18
README.md
@ -8,11 +8,12 @@ Glacier is designed from the ground up, and uses a simple, PKGBUILD-like format,
|
|||||||
Glacier requires the following packages:
|
Glacier requires the following packages:
|
||||||
|
|
||||||
- Bash (Glacier runtime)
|
- Bash (Glacier runtime)
|
||||||
- GNU make
|
- GNU make (package compilation)
|
||||||
- GCC (or any compatible C compiler)
|
- GCC (or any compatible C compiler)
|
||||||
- Git
|
- Git (required by some packages for source control)
|
||||||
- Autoconf
|
- Autoconf (required by some packages for compilation)
|
||||||
- Automake
|
- Automake (required by some packages for compilation)
|
||||||
|
- GNU wget (Package downloads)
|
||||||
|
|
||||||
To install Glacier, clone this repository:
|
To install Glacier, clone this repository:
|
||||||
```
|
```
|
||||||
@ -32,3 +33,12 @@ sudo ./build.sh install
|
|||||||
# OR
|
# OR
|
||||||
su -c ./build.sh install
|
su -c ./build.sh install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Included programs
|
||||||
|
|
||||||
|
- gpkg (interfaces with and manages all packages under Glacier's local index)
|
||||||
|
- syspkg (like gpkg, except operates on the system's index)
|
||||||
|
- glist (lists all installed packages, or searches by name)
|
||||||
|
- gquery (queries information from a package)
|
||||||
|
- gpc (checks a local package against Glacier's packaging standards)
|
||||||
|
- glacier-mkprofile (updates the system profile)
|
||||||
|
@ -92,8 +92,13 @@ glacier_conf() {
|
|||||||
|
|
||||||
make_conf() {
|
make_conf() {
|
||||||
case ${2} in
|
case ${2} in
|
||||||
x86-*)
|
x86-musl-*)
|
||||||
echo "ARCH='x86_64'" >> /etc/make.conf
|
echo "ARCH='x86_64'" >> /etc/make.conf
|
||||||
|
echo "TARGET='x86_64-linux-musl'" >> /etc/make.conf
|
||||||
|
;;
|
||||||
|
x86-glibc-*)
|
||||||
|
echo "ARCH=x86_64'" >> /etc/make.conf
|
||||||
|
echo "TARGET='x86_64-pc-linux-gnu'" >> /etc/make.conf
|
||||||
;;
|
;;
|
||||||
i386-*)
|
i386-*)
|
||||||
printf "[x] i386 is not supported.\n"
|
printf "[x] i386 is not supported.\n"
|
||||||
|
18
src/bin/gpkg
18
src/bin/gpkg
@ -45,7 +45,7 @@ usage() {
|
|||||||
|
|
||||||
usage_small() {
|
usage_small() {
|
||||||
printf "${red}[${error}]${reset} Unknown option.\n"
|
printf "${red}[${error}]${reset} Unknown option.\n"
|
||||||
printf "${red}[${error}]${reset} usage:${reset} ${0} [-h] [-v] [-f] [-u] [-x] [-fl] [-ul] [-d] PACKAGE_NAME\n"
|
printf "${red}[${error}] usage:${reset} ${0} [-h] [-v] [-f] [-u] [-x] [-fl] [-ul] [-d] PACKAGE_NAME\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
am_i_root() {
|
am_i_root() {
|
||||||
@ -166,7 +166,7 @@ case $1 in
|
|||||||
get_pkg_sources "$@"
|
get_pkg_sources "$@"
|
||||||
install_pkg "$@"
|
install_pkg "$@"
|
||||||
index_pkg "$@"
|
index_pkg "$@"
|
||||||
elif [[ $REPLY =~ ^[Yy]$ ]]; then
|
elif [[ $REPLY =~ ^[Nn]$ ]]; then
|
||||||
printf "${red}[${error}]${reset} Aborting.\n"
|
printf "${red}[${error}]${reset} Aborting.\n"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@ -180,8 +180,15 @@ case $1 in
|
|||||||
dload_pkg "$@"
|
dload_pkg "$@"
|
||||||
checkdeps "$@"
|
checkdeps "$@"
|
||||||
checkconflicts "$@"
|
checkconflicts "$@"
|
||||||
|
read -p "$(printf "${blue}[?]${reset} Proceed with this operation? (y/n) ")" -n 1 -r
|
||||||
|
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
||||||
get_pkg_sources "$@"
|
get_pkg_sources "$@"
|
||||||
update_pkg "$@"
|
update_pkg "$@"
|
||||||
|
index_pkg "$@"
|
||||||
|
elif [[ $REPLY =~ ^[Nn]$ ]]; then
|
||||||
|
printf "${red}[${error}]${reset} Aborting.\n"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
-x|--remove)
|
-x|--remove)
|
||||||
@ -189,6 +196,13 @@ case $1 in
|
|||||||
cd /opt/glcier/workspace
|
cd /opt/glcier/workspace
|
||||||
am_i_root "$@"
|
am_i_root "$@"
|
||||||
check_if_input_is_blank "$@"
|
check_if_input_is_blank "$@"
|
||||||
|
read -p "$(printf "${blue}[?]${reset} Proceed with this operation? (y/n) ")" -n 1 -r
|
||||||
|
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
||||||
|
remove_pkg "$@"
|
||||||
|
elif [[ $REPLY =~ ^[Nn]$ ]]; then
|
||||||
|
printf "${red}[${error}]${reset} Aborting.\n"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
remove_pkg "$@"
|
remove_pkg "$@"
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user