freebsd-ports/mail/milter-bogom/pkg-install
Jean-Yves Lefort d6a7b027fc [1]:
- Create the bogomilter user with /sbin/nologin as shell and /nonexistent
    as home directory
  - Update the maintainer's email address

Moreover:
  - Unconditionally define PORTDOCS, as ${NOPORTDOCS} is now tested by
    bsd.port.mk
  - Install manual page in ${MAN8PREFIX}

[1]:
PR:		ports/82583
Submitted by:	maintainer
2005-06-28 23:43:11 +00:00

18 lines
330 B
Bash

#!/bin/sh
if [ "$2" != "POST-INSTALL" ]
then
exit 0;
fi
# check if bogomilter user exists
pw user show bogomilter > /dev/null 2>&1
if [ $? != 0 ]
then
echo "===> Adding user bogomilter"
pw useradd bogomilter -u 174 -c "milter-bogom" -s /sbin/nologin \
-d /nonexistent
else
echo "===> Using existing user bogomilter"
fi