Hi!

I'm currently fuzzing around with a Build.PL that should do the 
following:

- ask for a location where the application shall be installed to
- make sure the location exists
- install various files there
- install the libs into the default location

Everything works fine, but:

If I want to install the libs, I have to be root (or do sudo ./Build 
istall). But if I do this, all the extra stuff installed into the app 
dir also belongs to root. Which sucks. If I install without sudo, the 
installation doesn't work, because of missing permissions...

Is there an easy way around this? I would like to avoid to have to set 
all files to a different owner after installation (from within 
Build.PL). 

Can I somehow add Build actions? If yes, I could define a new action 
'app_install', and call that with correct user. i.e
perl Build.PL
./Build
./Build test
./Build app_install
sudo ./Build install

Is this possible? If yes, how? Or are there other, better ways to solve 
my problem?

-- 
#!/usr/bin/perl                              http://domm.plix.at
for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}

Reply via email to