Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions build/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ Source: openfire
Section: net
Priority: optional
Maintainer: Ignite Realtime Community <[email protected]>
Build-Depends: debhelper-compat (= 13), default-jdk (>= 17)
Build-Depends: debhelper, default-jdk (>= 17)
Rules-Requires-Root: no
Standards-Version: 3.7.2
Standards-Version: 4.7.2
X-DH-Compat: 14
Homepage: https://www.igniterealtime.org
Vcs-Git: https://github.com/igniterealtime/Openfire.git
Vcs-Browser: https://github.com/igniterealtime/Openfire
Bugs: https://igniterealtime.atlassian.net/browse/OF

Package: openfire
Pre-Depends: adduser
Depends: default-jre-headless (>= 17) | java-runtime (>= 17)
Architecture: all
Description: High performance XMPP (Jabber) server.
Expand Down
43 changes: 9 additions & 34 deletions build/debian/openfire.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,18 @@ set -e

# See https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html

case "$1" in
configure)
if ! getent passwd openfire >/dev/null; then
adduser --disabled-password --quiet --system \
--home /var/lib/openfire \
--gecos "Openfire XMPP server" --group openfire
fi
if ! getent group openfire >/dev/null; then
adduser --system openfire
fi

mkdir -p /var/log/openfire
mkdir -p /var/lib/openfire/embedded-db
chown -R openfire:openfire /usr/share/openfire
chown -R openfire:openfire /var/lib/openfire
chown -R openfire:openfire /var/log/openfire
chown -R openfire:openfire /etc/openfire
chmod -R o-rwx /usr/share/openfire
chmod -R o-rwx /var/lib/openfire
chmod -R o-rwx /var/log/openfire
chmod -R o-rwx /etc/openfire

;;

abort-upgrade|abort-remove|abort-deconfigure)

;;

*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

case "$1" in
configure)
chown -R openfire:openfire /usr/share/openfire
chown -R openfire:openfire /var/lib/openfire
chown -R openfire:openfire /var/log/openfire
chown -R openfire:openfire /etc/openfire
;;
esac

exit 0
1 change: 1 addition & 0 deletions build/debian/openfire.sysusers
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
u openfire - "Openfire XMPP server" /var/lib/openfire
6 changes: 6 additions & 0 deletions build/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@

%:
dh $@

execute_after_dh_fixperms:
chmod -R o-rwx debian/openfire/usr/share/openfire
chmod -R o-rwx debian/openfire/var/lib/openfire
chmod -R o-rwx debian/openfire/var/log/openfire
chmod -R o-rwx debian/openfire/etc/openfire
Loading