pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Where is bootstrap.tar.gz ?



Hi Greg,

I’ll tar the result of bootstrap on my next installation (probably for 2014Q2).
pkgsrc, looks really great, and is already particularly usefull to me, but 
there are still many aspects I’m not yet familiar with.
Thanks for your help.

--
Michel


On 16 juil. 2014, at 16:49, Greg Troxel <gdt%ir.bbn.com@localhost> wrote:

> 
> Michel Jansens <michel.jansens%ulb.ac.be@localhost> writes:
> 
>> I thought there was some script in pkgsrc to build this bootstrap.tar.gz.
>> 
>> I’ve just created a ‘make-bootstrap’ script to build a minimal 
>> bootstrap-2014Q1.tar.gz 
>> Basically, it creates a tar file with sbin/pkg_add , bin/nawk , bin/nbsed , 
>> bin/pdksh and etc/pkgin/repositories.conf
>> and includes an install.sh script that pkg_add  pkg_install-20130902nb1 and 
>> pkgin.
> 
> The bootstrap script I think has an option.  But really you can just run
> a bootstrap and then tar up what it produces.  I don't understand why
> you need the complexity that's in your script
> 
>> make-bootstrap:
>> ---------------------
>> #!/bin/bash
> 
> That's unportable; nothing in your script needs features beyond Posix sh.
> 
>> #make bootstrap for binary installation on remote clients
>> PKGDIR="/opt/pkg-2014Q1"
>> mkdir pkg-2014Q1
>> cd pkg-2014Q1
>> mkdir bin
>> mkdir sbin
>> mkdir etc
>> mkdir etc/pkg.
>> echo 
>> "http://pkgsrc.your_domain/Solaris_10/x32/pkgsrc2014Q1/All/";>etc/pkgin/repositories.conf
>> cp -p $PKGDIR/sbin/pkg_add sbin/
>> cp -p $PKGDIR/bin/nawk bin/
>> cp -p $PKGDIR/bin/nbsed bin/
>> cp -p $PKGDIR/bin/pdksh bin/
>> cp -p ../install.sh .
>> cd ..
>> gtar zcf bootstrap-2014Q1.tar.gz ./pkg-2014Q1
> 
> And you are leaving out the pkgdb.   Why not just tar up all of PKGDIR?



Home | Main Index | Thread Index | Old Index