Changeset 1567


Ignore:
Timestamp:
May 23, 2012, 3:13:40 AM (7 years ago)
Author:
bruno
Message:

Adding pbcl for afio

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/t/pbtest

    r1566 r1567  
    1919grep -q pbtest /etc/passwd
    2020if [ $? -eq 0 ]; then
    21     rm -rf ~pbtest/* ~pbtest/.??*
     21    sudo rm -rf ~pbtest/* ~pbtest/.??*
    2222    sudo groupdel pbtest
    2323    sudo userdel pbtest
     
    2626sudo grep -q pbtest /etc/sudoers
    2727if [ $? -ne 0 ]; then
    28     sudo cat >> /etc/sudoers << EOF
     28    cat >> /tmp/sudoers << EOF
    2929pbtest localhost=/usr/sbin/chroot NOPASSWD:
    3030pbtest localhost=/bin/cp NOPASSWD:
    3131EOF
     32    sudo cat /etc/sudoers /tmp/sudoers > /tmp/sudoers2
     33    sudo mv /tmp/sudoers2 /etc/sudoers
     34    rm -f /tmp/sudoers /tmp/sudoers2
    3235fi
    3336
     
    3538# SVN repo setup
    3639sudo su - pbtest -c "mkdir -p prj ; svnadmin create prj/svn"
    37 sudo cat >> ~pbtest/prj/svn/conf/authz << EOF
     40cat >> /tmp/authz << EOF
    3841[/]
    3942pbtest = rw
    4043* = r
    4144EOF
    42 sudo cat >> ~pbtest/prj/svn/conf/passwd << EOF
     45sudo mv /tmp/authz ~pbtest/prj/svn/conf/authz
     46cat >> /tmp/passwd << EOF
    4347pbtest = pbtest
    4448EOF
    45 sudo cat > ~pbtest/prj/svn/conf/svnserve.conf << EOF
     49sudo mv /tmp/passwd ~pbtest/prj/svn/conf/passwd
     50cat > /tmp/svnserve.conf << EOF
    4651[general]
    4752password-db = passwd
     
    4954[sasl]
    5055EOF
     56sudo mv /tmp/svnserve.conf ~pbtest/prj/svn/conf/svnserve.conf
    5157sudo chown pbtest:pbtest ~pbtest/prj/svn/conf/authz ~pbtest/prj/svn/conf/passwd ~pbtest/prj/svn/conf/svnserve.conf
    5258sudo su - pbtest -c "svnserve -d -r ~pbtest/prj/svn"
     
    5662sudo su - pbtest -c "pbdistrocheck"
    5763sudo su - pbtest -c "pb clean"
    58 sudo cat > /tmp/.pbrc << EOF
     64cat > /tmp/.pbrc << EOF
    5965# Projects
    6066pbconfurl afio = svn://localhost/pb/afio/pbconf
    61 pbdefdir default = $ENV{'HOME'}/pb
    62 pbconfurl projtest = dir://$ENV{'HOME'}/projtest
    63 pbconfdir projtest = $ENV{'HOME'}/projtest/pbconf
     67pbdefdir default = \$ENV{'HOME'}/pb
     68pbconfurl projtest = dir://\$ENV{'HOME'}/projtest
     69pbconfdir projtest = \$ENV{'HOME'}/projtest/pbconf
    6470pburl projtest = svn+ssh://svn.project-builder.org/prj/svn/pb
    6571pbconfurl pb = svn+ssh://svn.project-builder.org/prj/svn/pb/pbconf
    66 pbconfdir pb = $ENV{'HOME'}/pb/pbconf
     72pbconfdir pb = \$ENV{'HOME'}/pb/pbconf
    6773pburl pb = svn+ssh://svn.project-builder.org/prj/svn/pb
    6874pburl mondorescue = svn://svn.mondorescue.org/mondorescue/branches
     
    7177vmport pb = 2200
    7278pbparallel pb = 6
    73 vepath default = $ENV{'HOME'}/ve
     79vepath default = \$ENV{'HOME'}/ve
    7480vmtype default = kvm
    7581vmcmd default = qemu-kvm
    76 vmpath default = $ENV{'HOME'}/tmp
     82vmpath default = \$ENV{'HOME'}/tmp
    7783vmsize fedora = 10G
    7884vmmonport default = 4000
     
    8086sudo mv /tmp/.pbrc ~pbtest/.pbrc
    8187
    82 sudo cat > /tmp/.pbrc << EOF
     88cat > /tmp/.pbrc << EOF
    8389vetype default = chroot
    8490verpmtype default = rpmbootstrap
     
    8995velogin default = pbtest
    9096EOF
    91 sudo echo "velist default = `echo $TESTVEDIST | sed 's/ */,/g'`" >> /tmp/.pbrc
     97echo "velist default = `echo $TESTVEDIST | sed 's/ */,/g'`" >> /tmp/.pbrc
    9298sudo mv /tmp/.pbrc ~pbtest/ve/.pbrc
    9399sudo chown pbtest:pbtest ~pbtest/.pbrc ~pbtest/ve/.pbrc
     
    99105sudo su - pbtest -c "cd pb ; svn co svn://localhost/pb ."
    100106sudo su - pbtest -c "pb -p afio newproj afio"
    101 sudo cat >> ~pbtest/pb/afio/pbconf/afio.pb << EOF
     107cat >> /tmp/afio.pb << EOF
    102108defpkgdir afio = dummy
    103109projver afio = 2.5
     
    107113sshhost afio = localhost
    108114sshlogin afio = pbtest
    109 sshdir afio = $ENV{'HOME'}/ftp
    110 EOF
     115sshdir afio = \$ENV{'HOME'}/ftp
     116EOF
     117sudo mv /tmp/afio.pb ~pbtest/pb/afio/pbconf/afio.pb
     118sudo chown pbtest:pbtest ~pbtest/pb/afio/pbconf/afio.pb
    111119sudo su - pbtest -c "pb -p afio sbx2build"
    112120
    113 sudo cat >> ~pbtest/pb/afio/pbconf/pbfilter/all.pbf << EOF
     121cat >> /tmp/all.pbf << EOF
    114122filter PBSRC = src/%{name}-%{version}.tar.gz
    115123filter PBDESC = afio is a cpio compatible archiver with extended features$/It can compress on a file by file basis.
     
    118126filter PBLOG = no
    119127EOF
    120 sudo cat >> ~pbtest/pb/afio/pbconf/pbfilter/rpm.pbf << EOF
     128sudo mv /tmp/all.pbf ~pbtest/pb/afio/pbconf/pbfilter/all.pbf
     129sudo chown pbtest:pbtest ~pbtest/pb/afio/pbconf/pbfilter/all.pbf
     130cat >> /tmp/rpm.pbf << EOF
    121131filter PBGRP = Applications/Archiving
    122132filter PBLIC = Afio
    123133EOF
     134sudo mv /tmp/rpm.pbf ~pbtest/pb/afio/pbconf/pbfilter/rpm.pbf
     135sudo chown pbtest:pbtest ~pbtest/pb/afio/pbconf/pbfilter/rpm.pbf
    124136sudo su - pbtest -c "pb -p afio sbx2build"
    125137
     
    136148sudo su - pbtest -c "pb -p pb pkg2ssh"
    137149
    138 sudo cat >> ~pbtest/pb/afio/pbconf/afio/pbcl << EOF
     150cat >> /tmp/pbcl << EOF
    139151# $Id$
    140152
     
    144156- First packages created
    145157EOF
     158sudo mv /tmp/pbcl ~pbtest/pb/afio/pbconf/afio/pbcl
     159chown pbtest:pbtest ~pbtest/pb/afio/pbconf/afio/pbcl
    146160svn add ~pbtest/pb/afio/pbconf/afio/pbcl
    147161svn ci -m 'Adding pbcl for afio'
     
    150164sudo perl -pi -e 's|Recommends: PBREC||' ~pbtest/pb/afio/pbconf/afio/deb/control
    151165sudo perl -pi -e 's|Suggests: PBSUG||' ~pbtest/pb/afio/pbconf/afio/deb/control
    152 sudo cat > ~pbtest/pb/afio/pbconf/afio/deb/afio.docs << EOF
     166cat > /tmp/afio.docs << EOF
    153167HISTORY
    154168PORTING
     
    163177script4
    164178EOF
     179sudo mv /tmp/afio.docs ~pbtest/pb/afio/pbconf/afio/deb/afio.docs
     180
    165181sudo perl -pi -e 's|config.status: configure|config.status: Makefile|' ~pbtest/pb/afio/pbconf/afio/deb/rules
    166182sudo perl -pi -e 's|dh_installchangelogs ChangeLog|dh_installchangelogs debian/changelog|' ~pbtest/pb/afio/pbconf/afio/deb/rules
Note: See TracChangeset for help on using the changeset viewer.