@comment PKG_FORMAT_REVISION:1.1
@name p4d-2012.1.549175
@comment ORIGIN:devel/p4d
@cwd /usr/local
@pkgdep p4-2012.1.473528
@comment DEPORIGIN:devel/p4
@exec echo "===> Creating users and/or groups."
@exec if ! /usr/sbin/pw groupshow p4admin >/dev/null 2>&1; then  echo "Creating group 'p4admin' with gid '94'.";  /usr/sbin/pw groupadd p4admin -g 94; else echo "Using existing group 'p4admin'."; fi
@exec if ! /usr/sbin/pw usershow p4admin >/dev/null 2>&1; then  echo "Creating user 'p4admin' with uid '94'.";  /usr/sbin/pw useradd p4admin -u 94 -g 94  -c "Perforce admin" -d /nonexistent -s /usr/sbin/nologin;  else echo "Using existing user 'p4admin'."; fi
@unexec %D/etc/rc.d/p4d forcestop 2>/dev/null || true
sbin/p4d
@comment MD5:e2a73295af7b06a6c8a73c83bbbc20d2
@comment OPTIONS:
@unexec if /usr/sbin/pw usershow p4admin >/dev/null 2>&1; then  echo "==> You should manually remove the \"p4admin\" user. "; fi
@cwd /usr/local
etc/rc.d/p4d
@comment MD5:f4acff5e6271dbf565647e0e7663d1f7
@exec /bin/mkdir -p /var/db/p4d
@exec /usr/sbin/chown p4admin:p4admin /var/db/p4d
@exec /bin/chmod 750 /var/db/p4d
@exec /usr/bin/touch /var/log/p4d.log
@exec /usr/sbin/chown p4admin:p4admin /var/log/p4d.log
@exec /bin/chmod 640 /var/log/p4d.log
@comment Build details:  ||||
@display +DISPLAY
