net-im/prosody: use pkg-message to show message on remove
This commit is contained in:
parent
88c8cb1298
commit
131f741e5a
|
@ -1,5 +1,6 @@
|
|||
PORTNAME= prosody
|
||||
DISTVERSION= 0.12.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net-im
|
||||
MASTER_SITES= https://prosody.im/downloads/source/
|
||||
|
||||
|
@ -44,8 +45,8 @@ USERS= prosody
|
|||
GROUPS= ${USERS}
|
||||
|
||||
USE_RC_SUBR= prosody
|
||||
SUB_FILES= pkg-deinstall
|
||||
SUB_LIST= USERS=${USERS} GROUPS=${GROUPS} LUA_PREFIX=${LUA_PREFIX} LUA_CMD=${LUA_CMD}
|
||||
SUB_FILES= pkg-message
|
||||
SUB_LIST= USERS=${USERS} GROUPS=${GROUPS} LUA_PREFIX=${LUA_PREFIX} LUA_CMD=${LUA_CMD} PORTNAME="${PORTNAME}"
|
||||
PLIST_SUB= PROSODY_USER=${USERS} PROSODY_GROUP=${GROUPS}
|
||||
|
||||
post-install:
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
case $2 in
|
||||
POST-DEINSTALL)
|
||||
echo "===> post-deinstallation information for $1:"
|
||||
echo ""
|
||||
echo " Note:"
|
||||
echo " Prosody related user accounts and groups were not removed."
|
||||
echo ""
|
||||
echo " To remove the user and group which were created by "
|
||||
echo " the installation of this package, run:"
|
||||
echo ""
|
||||
echo " pw userdel -n %%USERS%%"
|
||||
echo " pw groupdel -n %%GROUPS%%"
|
||||
echo ""
|
||||
echo " and to remove all server data:"
|
||||
echo " rm -rf /var/db/prosody"
|
||||
echo " rm -rf /var/run/prosody"
|
||||
echo ""
|
||||
;;
|
||||
esac
|
||||
exit 0
|
|
@ -0,0 +1,30 @@
|
|||
[
|
||||
{ type: install
|
||||
message: <<EOM
|
||||
If you're running Prosody in a jail and experience problems, please add
|
||||
the following to the global section of your prosody.cfg.lua:
|
||||
|
||||
interfaces = { 'x.x.x.x' }
|
||||
|
||||
where 'x.x.x.x' is the public IP you wish Prosody to bind to.
|
||||
EOM
|
||||
},
|
||||
{ type: remove
|
||||
message: <<EOM
|
||||
===> post-deinstallation information for %%PORTNAME%%:"
|
||||
|
||||
Note:
|
||||
Prosody related user accounts and groups were not removed.
|
||||
|
||||
To remove the user and group which were created by
|
||||
the installation of this package, run:
|
||||
|
||||
pw userdel -n %%USERS%%
|
||||
pw groupdel -n %%GROUPS%%
|
||||
|
||||
and to remove all server data:
|
||||
rm -rf /var/db/prosody"
|
||||
rm -rf /var/run/prosody"
|
||||
EOM
|
||||
}
|
||||
]
|
|
@ -1,12 +0,0 @@
|
|||
[
|
||||
{ type: install
|
||||
message: <<EOM
|
||||
If you're running Prosody in a jail and experience problems, please add
|
||||
the following to the global section of your prosody.cfg.lua:
|
||||
|
||||
interfaces = { 'x.x.x.x' }
|
||||
|
||||
where 'x.x.x.x' is the public IP you wish Prosody to bind to.
|
||||
EOM
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue