20-openmamba-apt: pass more information to genbasedir and add signature to generated packages lists
This commit is contained in:
parent
a99cf681f6
commit
1ae295c9c0
@ -1,17 +1,68 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# openmamba repository script for apt
|
# openmamba repository script for apt
|
||||||
# (c) 2006-2007 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
# (c) 2006-2010 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
#
|
#
|
||||||
|
|
||||||
# generate apt database
|
# generate apt database
|
||||||
. /etc/sysconfig/openmamba-central
|
. /etc/sysconfig/openmamba-central
|
||||||
|
|
||||||
for a in ${local_reps[*]} ${remote_reps[*]}; do
|
[ "$1" ] && rep=$1
|
||||||
[ "`find $local_ftp/$a/SRPMS.base/ -cnewer $local_ftp/$a/base`" -o \
|
|
||||||
! -e $local_ftp/$a/base/release ] && {
|
DATE=`date -R`
|
||||||
echo "==> Generating APT database for $a repository"
|
for r in ${local_reps[*]} ${remote_reps[*]}; do
|
||||||
genbasedir --flat $local_ftp/$a/ ${archs[*]} base >/dev/null
|
[ "`find $local_ftp/$r/SRPMS.base/ -cnewer $local_ftp/$r/base`" -o \
|
||||||
|
! -e $local_ftp/$r/base/release -o "$rep" = "$r" ] && {
|
||||||
|
echo -n "==> Generating APT database for $r repository..."
|
||||||
|
for a in ${archs[*]}; do
|
||||||
|
echo -n "$a "
|
||||||
|
genbasedir \
|
||||||
|
--flat \
|
||||||
|
--newhashfile \
|
||||||
|
--changelog-since="last month" \
|
||||||
|
--topdir=$local_ftp \
|
||||||
|
--origin="http://www.openmamba.org" \
|
||||||
|
--label="openmamba" \
|
||||||
|
--suite="GNU/Linux distribution" \
|
||||||
|
--codename="$r" \
|
||||||
|
--version="$DATE" \
|
||||||
|
--archive="$r" \
|
||||||
|
--description="openmamba $r repository" \
|
||||||
|
--architecture="$a" \
|
||||||
|
$r \
|
||||||
|
$a
|
||||||
|
# --architectures="${archs[*]}" \
|
||||||
|
|
||||||
|
done
|
||||||
|
echo
|
||||||
|
# create global release file (--hashonly)
|
||||||
|
genbasedir \
|
||||||
|
--flat \
|
||||||
|
--hashonly \
|
||||||
|
--architectures="${archs[*]}" \
|
||||||
|
--newhashfile \
|
||||||
|
--changelog-since="last month" \
|
||||||
|
--topdir=$local_ftp \
|
||||||
|
--origin="http://www.openmamba.org" \
|
||||||
|
--label="openmamba" \
|
||||||
|
--suite="GNU/Linux distribution" \
|
||||||
|
--codename="$r" \
|
||||||
|
--version="$DATE" \
|
||||||
|
--archive="$r" \
|
||||||
|
--description="openmamba $r repository" \
|
||||||
|
$r ${archs[*]}
|
||||||
|
|
||||||
|
|
||||||
|
# --bz2only \
|
||||||
|
# > /dev/null
|
||||||
|
# base >/dev/null
|
||||||
|
HOME=/root LANG=C gpg --sign --armour --batch --no-default-recipient --detach-sign --yes --no-tty \
|
||||||
|
--passphrase-file /etc/sysconfig/openmamba-central-secret \
|
||||||
|
-u $gpgsignkey $local_ftp/$r/base/release 2>&1
|
||||||
|
|
||||||
|
# openmamba-genbasedir-sign $local_ftp/$r/
|
||||||
|
cat $local_ftp/$r/base/release.asc >> $local_ftp/$r/base/release
|
||||||
|
rm -f $local_ftp/$r/base/release.asc
|
||||||
}
|
}
|
||||||
done
|
done
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user