defs.in.sh, config: support for REPODATA_URL in distromatic configuration
This commit is contained in:
parent
feda208e18
commit
734931bb93
@ -8,21 +8,19 @@ PORT_FROM_ARCH="i586"
|
||||
PORT_DEST_REPOSITORY="devel"
|
||||
PORT_AUTODIST_USER="silvan"
|
||||
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-games
|
||||
)
|
||||
#/var/ftp/pub/openmamba/devel-makedist
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
REPOSITORY=(
|
||||
/var/ftp/pub/openmamba/devel
|
||||
/var/ftp/pub/openmamba/devel-games
|
||||
)
|
||||
else
|
||||
REPOSITORY=(
|
||||
/var/ftp/pub/openmamba/devel
|
||||
/var/ftp/pub/openmamba/devel-games
|
||||
)
|
||||
fi
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# makedist definitions include script
|
||||
#
|
||||
# Copyright (c) 2007-2011 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
# Copyright (c) 2007-2022 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
#
|
||||
PASSED_TARGET=$1
|
||||
PASSED_PLATFORM=$2
|
||||
@ -126,7 +126,8 @@ for c in `seq 0 $ALTREPNUM`; do
|
||||
echo "
|
||||
[makedist${c}]
|
||||
DESCRIPTION = makedist repository ${c}
|
||||
REPOSITORY_DIR = ${REPOSITORY[$c]}" >> $LOCALSTATEDIR/distromatic/distromatic.conf
|
||||
REPOSITORY_DIR = ${REPOSITORY[$c]}
|
||||
REPODATA_URL = ${REPODATA_URL_PREFIX}/`basename ${REPOSITORY[$c]}`" >> $LOCALSTATEDIR/distromatic/distromatic.conf
|
||||
done
|
||||
|
||||
cat >> $LOCALSTATEDIR/distromatic/distromatic.conf << _EOF
|
||||
@ -134,6 +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]}`
|
||||
_EOF
|
||||
|
||||
for c in `seq 0 $ALTREPNUM`; do
|
||||
|
Loading…
Reference in New Issue
Block a user