Hi.

I'm not sure I can find authoritative information on how a packager
should change the ownership (chown) of a shipped directory.

Of course this can be done in the package's postinst.

May it also be done in the debian/rules ?
For instance something like :
install: build
        dh_testdir
        dh_testroot
        dh_clean -k
        dh_installdirs
        dh_install
        install -m 750 -o www-data -g www-data -d 
debian/whatever_package/var/lib/mypackage/somedir
or
        chown -R www-data:www-data 
debian/whatever_package/var/lib/mypackage/somedir
When doing so, it seems that dpk-buildpackage -rfakeroot won't respect
that user definition (btw, that user may not exist on the machine the
package is build from, right ?).

Thanks in advance.

-- 
Olivier BERGER <[EMAIL PROTECTED]>
http://www-public.it-sudparis.eu/~berger_o/ - OpenPGP-Id: 1024D/6B829EEC
Ingénieur Recherche - Dept INF
Institut TELECOM, SudParis (http://www.it-sudparis.eu/), Evry (France)


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to