Skip to content

Commit

Permalink
net-im/prosody: use pkg-message to show message on remove
Browse files Browse the repository at this point in the history
  • Loading branch information
bapt committed Jul 27, 2022
1 parent 88c8cb1 commit 131f741
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 36 deletions.
5 changes: 3 additions & 2 deletions net-im/prosody/Makefile
@@ -1,5 +1,6 @@
PORTNAME= prosody
DISTVERSION= 0.12.1
PORTREVISION= 1
CATEGORIES= net-im
MASTER_SITES= https://prosody.im/downloads/source/

Expand Down Expand Up @@ -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:
Expand Down
22 changes: 0 additions & 22 deletions net-im/prosody/files/pkg-deinstall.in

This file was deleted.

30 changes: 30 additions & 0 deletions net-im/prosody/files/pkg-message.in
@@ -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
}
]
12 changes: 0 additions & 12 deletions net-im/prosody/pkg-message

This file was deleted.

0 comments on commit 131f741

Please sign in to comment.