freebsd-ports/net-im/ejabberd/files/pkg-install.in
Ashish SHUKLA a9c5e00be3 - Update to 2.1.6
- Cleanup pkg-plist
- Switch to USERS/GROUPS knobs instead of manual creating
- Remove support for unsupported FreeBSD versions
- Add PAM support[1]

PR:		ports/156850
Submitted by:	Ruslan Mahmatkhanov <cvs-src@yandex.ru>, lstewart[1] (via private email)
2011-05-10 16:44:25 +00:00

14 lines
329 B
Bash

#!/bin/sh
if [ x"$2" != x"POST-INSTALL" ]; then
exit 0
fi
USERS_HOME="/var/spool/ejabberd"
install -d -m 750 -o %%USERS%% -g %%GROUPS%% ${USERS_HOME} /var/log/ejabberd
chown -R %%USERS%%:%%GROUPS%% %%PREFIX%%/etc/%%PORTNAME%%
chown -R %%USERS%%:%%GROUPS%% %%PREFIX%%/lib/erlang/lib/%%PORTNAME%%-%%PORTVERSION%%
exit 0