CHROOT'D make install

From: Chris Denneen (sunmanagers@ghostspace.com)
Date: Fri Oct 25 2002 - 10:14:17 EDT


I know someone out there has done this before I just want to know how.

I am looking to create custom built solaris packages from builds that I do.

What I would like to do is the following:

user@domain$ > ./configure --options
user@domain$ > make
user@domain$ > make install DESTDIR=/tmp/pkgroot

the reason for this is because I would like to make a solaris package out of
whatever is installed.
and its not the easiest to go searching around for what files got installed
where.
so for instance say I want to build a package of openssh:
user@domain$ > ./configure --prefix=/usr/local
user@domain$ > make

now when I do the make install instead of installing in /usr/local I would
like
it to install into /tmp/pkgroot/usr/local
so /usr/local/sbin/sshd would be /tmp/pkgroot/usr/local/sbin/sshd

this way I can take everything inside of /tmp/pkgroot and it is the entire
package.

I know Linux and FreeBSD have utilities that do this, is there anything like
this for Solaris? Do I have to reinvent the wheel?

Input and suggestions would be much appreciated.

Thanks

--
Cheers, Chris
perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:10 EDT