Changeset 1089


Ignore:
Timestamp:
Sep 5, 2010, 10:45:09 PM (8 years ago)
Author:
bruno
Message:

r4002@localhost: bruno | 2010-09-02 23:55:24 +0200

  • Fix #65 by adding support for ymp opensuse file for one click-install
Location:
devel/pb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/AUTHORS

    r15 r1089  
    11Project Builder or pb is copyrighted under the GPL v2 by
    22Bruno Cornec <bruno@hyper-linux.org>
     3joachim
  • devel/pb/bin/pb

    r1087 r1089  
    13481348EOF
    13491349            }
     1350            if ($dfam eq "novell") {
     1351                # Add ymp scripts for one-click install on SuSE
     1352                print PBS << "EOF";
     1353# Prepare a script to ease SuSE one-click install
     1354cat > $ENV{'PBPROJ'}.ymp << EOT
     1355<metapackage xmlns:os="http://opensuse.org/Standards/One_Click_Install" xmlns="http://opensuse.org/Standards/One_Click_Install">
     1356    <group><!-- The group of software, typically one for project-builder.org -->
     1357        <name>$ENV{'PBPROJ'} Bundle</name> <!-- Name of the software group -->
     1358        <summary>Software bundle for the $ENV{'PBPROJ'} project</summary> <!--This message is shown to the user and should describe the whole bundle -->
     1359        <description>This is the summary of the MeinPaket Package
     1360             
     1361            I have made it unnecessarily long.
     1362             
     1363            BlahBlah Blah
     1364             
     1365            --ChangeLog --
     1366             
     1367            Somechanges here.
     1368        </description><!--This is also shown to the user -->
     1369        <remainSubscribed>false</remainSubscribed> <!-- Don't know what it mean -->
     1370        <repositories><!-- List of needed repositories -->
     1371            <repository>
     1372                <name>$ENV{'PBPROJ'} Repository</name> <!-- Name of the repository  -->
     1373                <summary>This repository contains the $ENV{'PBPROJ'} project packages.</summary> <!-- Summary of the repository -->
     1374                <description>This repository contains the $ENV{'PBPROJ'} project packages.</description><!-- This description is shown to the user -->
     1375                <url>$pbrepo->{$ENV{'PBPROJ'}}/$repodir</url><!--URL of repository, which is added -->
     1376            </repository>
     1377        </repositories>
     1378        <software><!-- A List of packages, which should be added through the one-click-installation -->
     1379EOT
     1380for p in $basesrc; do
     1381    sum=`rpm -q --qf '%{SUMMARY}' \$p`
     1382    desc=`rpm -q --qf '%{description}' \$p`
     1383    cat >> $ENV{'PBPROJ'}.ymp << EOT
     1384            <item>
     1385                <name>\$p</name><!-- Name of the package, is shown to the user and used to identify the package at the repository -->
     1386                <summary>\$sum</summary> <!-- Summary of the package -->
     1387                <description>\$desc</description> <!-- Description, is shown to the user -->
     1388            </item>
     1389EOT
     1390done
     1391cat >> $ENV{'PBPROJ'}.ymp << EOT
     1392        </software>
     1393    </group>
     1394</metapackage>
     1395EOT
     1396chmod 644 $ENV{'PBPROJ'}.ymp
     1397EOF
     1398            }
    13501399        } elsif ($dtype eq "deb") {
    13511400            # Also make a pbscript to generate apt bases
Note: See TracChangeset for help on using the changeset viewer.