Compare commits
4 Commits
rx3-base-1
...
rx3-base-1
| Author | SHA1 | Date | |
|---|---|---|---|
| ab1c43634a | |||
| f0ea953c63 | |||
| d38a486b6e | |||
| 64dd7a911e |
@@ -1,3 +1,15 @@
|
|||||||
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
Rx3-Base V 1.1.2 - A. GIBERT - 2026/04/20
|
||||||
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
- Move lib dir into top dir & remove usr,
|
||||||
|
- Add www/cgi-bin dir,
|
||||||
|
- Add urpmi-setup-dump.cgi and package it as example,
|
||||||
|
- URPMI-Setup:
|
||||||
|
- Fix usage message.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
------------------------------------------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
Rx3-Base V 1.1.1 - A. GIBERT - 2026/04/10
|
Rx3-Base V 1.1.1 - A. GIBERT - 2026/04/10
|
||||||
------------------------------------------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
%define name rx3-base
|
%define name rx3-base
|
||||||
|
|
||||||
%define version 1.1.1
|
%define version 1.1.2
|
||||||
%define release %mkrel 1rx3
|
%define release %mkrel 1rx3
|
||||||
|
|
||||||
|
|
||||||
@@ -99,7 +99,7 @@ cp etc/bash_completion.d/* %{buildroot}%{_sysconfdir}/bash_completi
|
|||||||
|
|
||||||
# Libs
|
# Libs
|
||||||
%{__mkdir_p} %{buildroot}%{_prefix}/lib/rx3
|
%{__mkdir_p} %{buildroot}%{_prefix}/lib/rx3
|
||||||
cp usr/lib/rx3/*.bash %{buildroot}%{_prefix}/lib/rx3
|
cp lib/rx3/*.bash %{buildroot}%{_prefix}/lib/rx3
|
||||||
|
|
||||||
# Bin
|
# Bin
|
||||||
%{__mkdir_p} %{buildroot}%{_sbindir}
|
%{__mkdir_p} %{buildroot}%{_sbindir}
|
||||||
@@ -114,7 +114,7 @@ cp sbin/* %{buildroot}%{_sbindir}
|
|||||||
#-----------------------------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc ReadMe.txt ReleaseNotes.txt ToDo.txt
|
%doc ReadMe.txt ReleaseNotes.txt ToDo.txt www/cgi-bin/urpmi-setup-dump.cgi
|
||||||
%license COPYING COPYING.LESSER GNU_GPL-3.0.txt GNU_LGPL-3.0.txt GNU_FDL-1.3.txt
|
%license COPYING COPYING.LESSER GNU_GPL-3.0.txt GNU_LGPL-3.0.txt GNU_FDL-1.3.txt
|
||||||
%defattr(644,root,root)
|
%defattr(644,root,root)
|
||||||
%{_sysconfdir}/profile.d/*
|
%{_sysconfdir}/profile.d/*
|
||||||
@@ -131,6 +131,11 @@ cp sbin/* %{buildroot}%{_sbindir}
|
|||||||
#-----------------------------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 20 2026 Arnaud G. GIBERT <arnaud@rx3.net> - 1.1.2-1rx3.mga9
|
||||||
|
- Update ro 1.1.2,
|
||||||
|
- Move lib source dir
|
||||||
|
- Add cgi-bin example as doc
|
||||||
|
|
||||||
* Fri Apr 10 2026 Arnaud G. GIBERT <arnaud@rx3.net> - 1.1.1-1rx3.mga9
|
* Fri Apr 10 2026 Arnaud G. GIBERT <arnaud@rx3.net> - 1.1.1-1rx3.mga9
|
||||||
- Update to 1.1.1
|
- Update to 1.1.1
|
||||||
|
|
||||||
|
|||||||
@@ -39,9 +39,9 @@
|
|||||||
# Global Variables
|
# Global Variables
|
||||||
#-----------------------------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
declare -g VERSION="1.0.1"
|
declare -g VERSION="1.0.2"
|
||||||
declare -g NAME="URPMI Setup"
|
declare -g NAME="URPMI Setup"
|
||||||
declare -g HELP="usage: urpmi-setup [ [-d | --distrib <Distrib>] [-m | --mirror-mga <Mirror_List>] [-r | --mirror-rx3 <Mirror_List>] ] | [-h | --help] | [-V | --version] [ [ -D | --dump] [-T | --test] ] [-u | --update] [-v | --verbose] ) ]"
|
declare -g HELP="usage: urpmi-setup [ [-d | --distrib <Distrib>] [-m | --mirror-mga <Mirror_List>] [-r | --mirror-rx3 <Mirror_List>] ] | [-h | --help] | [-V | --version] [ [ -D | --dump] | [-T | --test] ] [-u | --update] [-v | --verbose] ) ]"
|
||||||
|
|
||||||
declare -g DISTRIB_DEF="9"
|
declare -g DISTRIB_DEF="9"
|
||||||
|
|
||||||
|
|||||||
61
www/cgi-bin/urpmi-setup-dump.cgi
Executable file
61
www/cgi-bin/urpmi-setup-dump.cgi
Executable file
@@ -0,0 +1,61 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
# URPMI Setup CGI
|
||||||
|
#
|
||||||
|
# Copyright (C) 2026 Arnaud G. GIBERT
|
||||||
|
# mailto:arnaud@rx3.net
|
||||||
|
#
|
||||||
|
# This is free software: you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU Lesser General Public License as published
|
||||||
|
# by the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; If not, see
|
||||||
|
# <https://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
# Includes
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
: "${RX3_LIB_DIR:=/usr/lib/rx3}"
|
||||||
|
. "${RX3_LIB_DIR}/docker_tools.bash"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
# Main
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
echo "Content-type: text/plain"
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if [[ -n "${QUERY_STRING}" ]]
|
||||||
|
then
|
||||||
|
if [[ "$QUERY_STRING" =~ ^[a-z0-9]+$ ]]
|
||||||
|
then
|
||||||
|
DISTRIB_OPT="-d ${QUERY_STRING}"
|
||||||
|
else
|
||||||
|
echo "Error: Invalid characters in query string."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
DISTRIB_OPT=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
urpmi-setup -v -D ${DISTRIB_OPT}
|
||||||
Reference in New Issue
Block a user