-
-%pre
-if [ -n "`id -u amavis 2>/dev/null`" ]; then
- if [ "`id -u amavis`" != "97" ]; then
- echo "Warning: user amavis haven't uid=97. Correct this before installing amavis" 1>&2
- exit 1
- fi
-else
- /usr/sbin/useradd -u 97 -r -d /var/spool/amavis -s /bin/false -c "Anti Virus Checker" -g nobody amavis 1>&2
-fi
-
-%postun
-if [ "$1" = "0" ]; then
- /usr/sbin/userdel amavis
-fi
-
-%clean
-rm -rf $RPM_BUILD_ROOT