You are not logged in.

#1 2004-11-30 00:20:24

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

[SOLVED] question about PKGBUILD syntax

I want to know if there's a way to specify actions when uninstalling a package.

What I want is to allow a daemon package to add an user (this part done) but be able to remove that user when the package is no longer needed.

Offline

#2 2004-11-30 00:30:12

skeeterbug
Member
From: Oklahoma, USA
Registered: 2004-10-24
Posts: 92
Website

Re: [SOLVED] question about PKGBUILD syntax

I'm no expert but I'm pretty sure you'll need to use either the pre_remove or post_remove part of the install - depending on your requirements.  If you look at /var/abs/install.proto you can see the different sections.  pacman runs these commands as root (pretty sure) so you should be able to add some kind of userdel/groupdel as needed.
--
HTH, G.S.

Offline

#3 2004-11-30 04:22:49

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: [SOLVED] question about PKGBUILD syntax

thanks for the clue, now got it working

Offline

Board footer

Powered by FluxBB