makedist/defs.inc.sh, config: better configuration of REPODATA_URL as array for each repository

This commit is contained in:
Silvan Calarco 2022-07-03 17:50:34 +02:00
parent 3d4d3031c8
commit 2e7ad83798
4 changed files with 18 additions and 11 deletions

View File

@ -1,26 +1,33 @@
#
# makedist global configuration file
#
# Copyright (c) by Silvan Calarco <silvan.calarco@mambasoft.it>
# Copyright (c) 2003-2022 by Silvan Calarco <silvan.calarco@mambasoft.it>
#
DISTRONAME="openmamba"
PORT_FROM_ARCH="i586"
PORT_DEST_REPOSITORY="devel"
PORT_AUTODIST_USER="silvan"
#PORT_FROM_ARCH="i586"
#PORT_DEST_REPOSITORY="devel"
#PORT_AUTODIST_USER="nobody"
RPM_GPG_KEY=/etc/pki/rpm-gpg/RPM-GPG-KEY-Mambasoft
REPODATA_URL_PREFIX=http://hetzner3.mambasoft.it/pub/openmamba
if [ "$ARCH" = "i586" ]; then
REPOSITORY=(
/var/ftp/pub/openmamba/devel
)
#/var/ftp/pub/openmamba/devel-makedist
REPODATA_URL=(
http://hetzner3.mambasoft.it/pub/openmamba/devel
)
elif [ "$ARCH" = "x86_64" ]; then
REPOSITORY=(
/var/ftp/pub/openmamba/devel
)
REPODATA_URL=(
http://hetzner3.mambasoft.it/pub/openmamba/devel
)
else
REPOSITORY=(
/var/ftp/pub/openmamba/devel
)
REPODATA_URL=(
http://hetzner3.mambasoft.it/pub/openmamba/devel
)
fi

View File

@ -1,6 +1,6 @@
# makedist Makefile
# Copyright (c) 2003-2004 by Davide Madrisan <davide.madrisan@gmail.com>
# Copyright (c) 2003-2011 by Silvan Calarco <silvan.calarco@mambasoft.it>
# Copyright (c) 2003-2022 by Silvan Calarco <silvan.calarco@mambasoft.it>
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without

View File

@ -127,7 +127,7 @@ for c in `seq 0 $ALTREPNUM`; do
[makedist${c}]
DESCRIPTION = makedist repository ${c}
REPOSITORY_DIR = ${REPOSITORY[$c]}
REPODATA_URL = ${REPODATA_URL_PREFIX}/`basename ${REPOSITORY[$c]}`" >> $LOCALSTATEDIR/distromatic/distromatic.conf
REPODATA_URL = ${REPODATA_URL[$c]}" >> $LOCALSTATEDIR/distromatic/distromatic.conf
done
cat >> $LOCALSTATEDIR/distromatic/distromatic.conf << _EOF
@ -135,7 +135,7 @@ cat >> $LOCALSTATEDIR/distromatic/distromatic.conf << _EOF
[distromatic]
DESCRIPTION = makedist repository
REPOSITORY_DIR = ${REPOSITORY[${#REPOSITORY[*]}-1]}
REPODATA_URL = ${REPODATA_URL_PREFIX}/`basename ${REPOSITORY[${#REPOSITORY[*]}-1]}`
REPODATA_URL = ${REPODATA_URL[${#REPOSITORY[*]}-1]}
_EOF
for c in `seq 0 $ALTREPNUM`; do

View File

@ -1,6 +1,6 @@
#!/bin/bash
# makedist - main program
# Copyright (c) 2007-2011 by Silvan Calarco <silvan.calarco@mambasoft.it>
# Copyright (c) 2007-2022 by Silvan Calarco <silvan.calarco@mambasoft.it>
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
@ -48,7 +48,7 @@ done
copyleft="\
makedist media (CD/DVD/Images) creator for RPM based distributions
version $makedist_version
Copyright (c) 2003-2011 by Silvan Calarco <silvan.calarco@mambasoft.it>
Copyright (c) 2003-2022 by Silvan Calarco <silvan.calarco@mambasoft.it>
Copyright (c) 2003-2005 by Davide Madrisan <davide.madrisan@gmail.com>
"