mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
- Update to 3.5.1 [1]
- Fix some errors on user/group creation phase [2] PR: 123124 [1] 122914 [2] Submitted by: Linh Pham <question+fbsdports@closedsrc.org> [1] Nikolay Pavlov <qpadla@gmail.com> [2] (maintainer) Approved by: maintainer
This commit is contained in:
parent
260898cd6e
commit
6a97464491
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=212250
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= openfire
|
||||
PORTVERSION= 3.5.0
|
||||
PORTVERSION= 3.5.1
|
||||
CATEGORIES= net-im java
|
||||
MASTER_SITES= http://www.igniterealtime.org/downloadServlet?filename=openfire/
|
||||
DISTNAME= ${PORTNAME}_src_${PORTVERSION:S/./_/g}
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (openfire_src_3_5_0.tar.gz) = 048d2d7fc409366ba7c94a42788b04b9
|
||||
SHA256 (openfire_src_3_5_0.tar.gz) = a288f45aeb3006104e3cba69b73da5fb7e1c353f1551d94f97b9d82928d40746
|
||||
SIZE (openfire_src_3_5_0.tar.gz) = 45664553
|
||||
MD5 (openfire_src_3_5_1.tar.gz) = baccfceb6230e283f9b09ff3a02db5a1
|
||||
SHA256 (openfire_src_3_5_1.tar.gz) = 77a17fff6c8b926b6a1e12ac5866bbc8e6deae3e78e8cb47252bbbd0588b7f1e
|
||||
SIZE (openfire_src_3_5_1.tar.gz) = 50631057
|
||||
|
@ -7,9 +7,7 @@ POST-INSTALL)
|
||||
PUID=342
|
||||
PGID=${PUID}
|
||||
|
||||
if pw group show "${PGROUP}" >/dev/null; then
|
||||
echo "You already have a group \"${PGROUP}\", so I will use it."
|
||||
else
|
||||
if ! pw group show "${PGROUP}" > /dev/null; then
|
||||
if pw groupadd ${PGROUP} -g ${PGID}; then
|
||||
echo "Added group \"${PGROUP}\"."
|
||||
else
|
||||
@ -18,9 +16,7 @@ POST-INSTALL)
|
||||
fi
|
||||
fi
|
||||
|
||||
if pw user show "${PUSER}" >/dev/null; then
|
||||
echo "You already have a user \"${PUSER}\", so I will use it."
|
||||
else
|
||||
if ! pw user show "${PUSER}" > /dev/null; then
|
||||
if pw useradd ${PUSER} -u ${PUID} -g ${PGROUP} -h - \
|
||||
-d /nonexistent -s /sbin/nologin -c "Openfire Daemon"
|
||||
then
|
||||
|
@ -4,6 +4,8 @@
|
||||
%%EXAMPLESDIR%%/openfire.xml
|
||||
%%EXAMPLESDIR%%/keystore
|
||||
%%EXAMPLESDIR%%/truststore
|
||||
@exec if ! /usr/sbin/pw group show openfire > /dev/null; then /usr/sbin/pw groupadd openfire -g 342 && echo "Added group openfire."; fi
|
||||
@exec if ! /usr/sbin/pw user show openfire > /dev/null; then /usr/sbin/pw useradd openfire -u 342 -g 342 -h - -d /nonexistent -s /sbin/nologin -c "Openfire Daemon" && echo "Added user openfire."; fi
|
||||
@exec [ -d /var/log/openfire ] || mkdir -p /var/log/openfire && chown openfire:openfire /var/log/openfire
|
||||
@exec [ -d /var/db/openfire ] || mkdir -p /var/db/openfire && chown openfire:openfire /var/db/openfire
|
||||
@exec [ -d %D/%%ETCDIR%% ] || mkdir -p %D/%%ETCDIR%% && chown openfire:openfire %D/%%ETCDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user