[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pkgsrc-users
Subject:    Hooks for automatically mounting fs for work directory?
From:       Andreas Kusalananda =?iso-8859-1?B?S+Ro5HJp?= <andreas.kahari () icm ! uu ! se>
Date:       2015-07-26 7:50:11
Message-ID: 20150726075011.GA18223 () MacBook-Air ! local
[Download RAW message or body]


Hi,

I'm running pkgsrc on OS X 10.10.4, but I think my question is not
limited to this platform.

When building a package, I would like to be able to *automagically* mount
a scratch disk as work directory, build and install the package, and
then unmount the disk again, just by typing "bmake install".

This would allow me to use a memory file system for the work directory,
or any other scratch disk that I have attached to my machine.

Are there hooks somewhere in pkgsrc that would allow me to do this?  I
imagine I'm looking for a "pre-extract" configuration option that would
call a user-defined script, and similarly a "post-install" configuration
option to unmount the file system once installation has finished.

Could a pre-extract script be used to set WORKOBJDIR for
example? WORKOBJDIR=$( script )  [haven't tried this]


Thanks,

-- 
:: Andreas Kusalananda Kähäri, Bioinformatics Developer, BILS,
:: Uppsala University, Sweden
::----------------------------------------------------------------------
:: My other car is a cdr.

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic