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

_______________________________________________
pld-devel-en mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

Reply via email to