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?
Attachment:
pgpwrixehF2rg.pgp
Description: PGP signature