#!/bin/bash # Prepare a script to ease yum setup cat > pb.repo << EOT [pb] name=opensuse 11.3 x86_64 - pb Vanilla Packages baseurl=ftp://ftp.project-builder.org//opensuse/11.3/x86_64 enabled=1 gpgcheck=1 gpgkey=ftp://ftp.project-builder.org//opensuse/11.3/x86_64/pb.pubkey EOT chmod 644 pb.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 if [ -s pb.pubkey ]; then # Avoiding creating empty repomd.xml.key; fails on opensuse 12.1 (cd repodata ; ln -sf ../pb.pubkey repomd.xml.key) fi # 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 > pb.ymp << EOT pb Bundle Software bundle for the pb project This is the summary of the pb Project Details are available on a per package basis below false pb Repository This repository contains the pb project packages. This repository contains the pb project packages. ftp://ftp.project-builder.org//opensuse/11.3/x86_64 EOT for p in project-builder-0.12.7-1.opensuse11.3.src.rpm project-builder-0.12.7-1.opensuse11.3.noarch.rpm perl-ProjectBuilder-0.12.7-1.opensuse11.3.src.rpm perl-ProjectBuilder-0.12.7-1.opensuse11.3.noarch.rpm pbmkbm-0.12.7-1.opensuse11.3.src.rpm pbmkbm-0.12.7-1.opensuse11.3.noarch.rpm rpmbootstrap-0.12.7-1.opensuse11.3.src.rpm rpmbootstrap-0.12.7-1.opensuse11.3.noarch.rpm pbscript.12016 pb.pubkey; do sum=`rpm -q --qf '%{SUMMARY}' $p` name=`rpm -q --qf '%{NAME}' $p` desc=`rpm -q --qf '%{description}' $p` cat >> pb.ymp << EOT $name $sum $desc EOT done cat >> pb.ymp << EOT EOT chmod 644 pb.ymp