#!/bin/bash # Prepare a script to ease yum setup cat > mondorescue.repo << EOT [mondorescue] name=opensuse 11.1 x86_64 - mondorescue Vanilla Packages baseurl=ftp://ftp.mondorescue.org//opensuse/11.1/x86_64 enabled=1 gpgcheck=1 gpgkey=ftp://ftp.mondorescue.org//opensuse/11.1/x86_64/mondorescue.pubkey EOT chmod 644 mondorescue.repo # Clean up old repo content rm -rf headers/ repodata/ # Create yum repo if [ -x /usr/bin/yum-arch ]; then yum-arch . fi # Create repodata createrepo -s sha256 . # Link to the key (cd repodata ; ln -sf ../mondorescue.pubkey repomd.xml.key) # sign the repomd (at least useful for SLES - which requires a local key) # gpg -a --detach-sign repodata/repomd.xml # SLES also looks for media.1/info.txt # Prepare a script to ease SuSE one-click install # Cf: http://de.opensuse.org/1-Klick-Installation/ISV # cat > mondorescue.ymp << EOT mondorescue Bundle Software bundle for the mondorescue project This is the summary of the mondorescue Project Details are available on a per package basis below false mondorescue Repository This repository contains the mondorescue project packages. This repository contains the mondorescue project packages. ftp://ftp.mondorescue.org//opensuse/11.1/x86_64 EOT for p in mindi-2.1.1-1.opensuse11.1.src.rpm mindi-2.1.1-1.opensuse11.1.x86_64.rpm pbscript.8432 mondorescue.pubkey; do sum=`rpm -q --qf '%{SUMMARY}' $p` name=`rpm -q --qf '%{NAME}' $p` desc=`rpm -q --qf '%{description}' $p` cat >> mondorescue.ymp << EOT $name $sum $desc EOT done cat >> mondorescue.ymp << EOT EOT chmod 644 mondorescue.ymp