%useradd/%groupadd macros

Elan Ruusamäe glen at delfi.ee
Wed Feb 23 22:45:43 CET 2005


hi

messed it up, produced something:
http://glen.alkohol.ee/pld/useradd.txt

comments welcome!
you can ./builder -bb goddammit.spec and later see the scripts result:
rpm -qp --scripts goddamnit-6.6.6-77.noarch.rpm | less

known issues
- you may not do shell-style wrapping with backslashes when using these macros
- it is impossible (afaik) to have arguments with spaces
- -c is working with spaces (logically) only if it's FINAL argument

unresolved issues
- specifying default values. which ones? (few implemented already)
- which args enforce, which allow specifying (-r is forced currently)
- implement only useradd/groupadd args that are currently used? (the list is 
short, ca 105 packages using /usr/sbin/useradd)

mostly used args are: -u -g -d  -s -c
rarely: -G
never (for example): -k

-- 
glen




More information about the pld-devel-en mailing list