username('root') # requires that only root may install the package userExists('youssef') # requires that a username youssef exists userAdd('youssef','physics','/bin/csh','/home/youssef') # creates a user youssef if necessaryIf the installer doesn't have priviledge to perform these operations, Pacman will provide sensible error messages.
workspace("Bob's Temporary Sandbox",'BOB_SCRATCH',1000,'bob','ownerWrite temporary') # temp 1G space workspace("Bob's Permanent Data Storage",'BOB_DATA',10000,'bob','worldRead permanent') workspace('General scratch','SCRATCH','- any -','worldWrite temporary')Use "- any -" to let the directory be owned by the installer. As usual, Pacman will remember the choices that the installer makes, so if a package is uninstalled and re-installed, the questions won't be asked unless the installer uses -ignore-cookies.