Skip to content

Commit

Permalink
Fix the paths in ejabberdctl
Browse files Browse the repository at this point in the history
- Remove ${DESTDIR}
- Use config from /usr/pkg/etc/ejabberd and not /usr/pkg/share/examples/ejabberd
  • Loading branch information
manu committed Aug 11, 2023
1 parent ed6bd5d commit d1e7de3
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 10 deletions.
4 changes: 2 additions & 2 deletions chat/ejabberd/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.98 2023/01/11 22:07:46 nikita Exp $
# $NetBSD: Makefile,v 1.99 2023/08/11 13:50:30 manu Exp $

DISTNAME= ejabberd-22.05
PKGREVISION= 1
PKGREVISION= 2
CATEGORIES= chat
MASTER_SITES= https://www.process-one.net/downloads/downloads-action.php?file=/${PKGVERSION_NOREV}/

Expand Down
4 changes: 2 additions & 2 deletions chat/ejabberd/distinfo
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
$NetBSD: distinfo,v 1.68 2023/01/08 16:19:05 gdt Exp $
$NetBSD: distinfo,v 1.69 2023/08/11 13:50:30 manu Exp $

BLAKE2s (ejabberd-22.05.tar.gz) = 657dcfe4ee9f78fbba344588c255c8d3be8ee155e55c702b125fd0626673b908
SHA512 (ejabberd-22.05.tar.gz) = 33f98a9c45ff8257d240e7b90181e399ecab84e361f5619dc8d57252642e81d4958467cfa89b90681f3cf0d1d56a3079eb98d4e80cc6af5ca11938bb2a69f865
Size (ejabberd-22.05.tar.gz) = 2527957 bytes
SHA1 (patch-aa) = c48f1b242777a4610cdbecb32791ce614e0ef80d
SHA1 (patch-aa) = 8544545d6a858a4853d339743d9f35c9506af241
SHA1 (patch-ae) = de7536dbafab8d14430faa5fcbd767c238a151e5
SHA1 (patch-m4_erlang-extra.m4) = 3b89c1a8212e8a45ae319b30606a41429762e2fe
SHA1 (patch-tools_ejabberdctl.bc) = 167f542c95f8e25ba601076ad717a85bfd456dc7
46 changes: 40 additions & 6 deletions chat/ejabberd/patches/patch-aa
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
$NetBSD: patch-aa,v 1.17 2022/10/15 18:20:40 triaxx Exp $
$NetBSD: patch-aa,v 1.18 2023/08/11 13:50:30 manu Exp $

Fix locations; don't mess with ownership.

--- Makefile.in.orig 2022-05-06 13:12:22.000000000 +0000
+++ Makefile.in
@@ -10,7 +10,7 @@ exec_prefix = @exec_prefix@
--- Makefile.in.orig 2022-05-06 15:12:22.000000000 +0200
+++ Makefile.in 2023-08-11 09:08:52.337637204 +0200
@@ -9,9 +9,10 @@

DESTDIR =

# /etc/ejabberd/
-ETCDIR = $(DESTDIR)@sysconfdir@/ejabberd
+ETCDIR = $(DESTDIR)@prefix@/share/examples/ejabberd
+SYSCONFDIR_ETCDIR = $(DESTDIR)@sysconfdir@/ejabberd

# /bin/
BINDIR = $(DESTDIR)@bindir@
@@ -22,7 +22,7 @@ SBINDIR = $(DESTDIR)@sbindir@

@@ -21,9 +22,9 @@
# /lib/
LIBDIR = $(DESTDIR)@libdir@

# /lib/ejabberd/
Expand All @@ -22,7 +26,9 @@ Fix locations; don't mess with ownership.

# /share/doc/ejabberd
PACKAGE_TARNAME = @PACKAGE_TARNAME@
@@ -66,31 +66,18 @@ SQLDIR = $(PRIVDIR)/sql
datarootdir = @datarootdir@
@@ -65,33 +66,20 @@
# /usr/lib/ejabberd/priv/lua
LUADIR = $(PRIVDIR)/lua

# /var/lib/ejabberd/
Expand Down Expand Up @@ -56,3 +62,31 @@ Fix locations; don't mess with ownership.

ifeq "$(MIX)" "mix"
REBAR_VER:=6
REBAR_VER_318:=0
@@ -293,21 +281,21 @@
-e "s*{{bindir}}/iex*$(iexpath)*g" \
-e "s*{{bindir}}*@bindir@*g" \
-e "s*{{libdir}}*${relivelibdir}*g" \
-e "s*{{erl}}*@ERL@*g" \
- -e "s*{{epmd}}*@EPMD@*g" ejabberdctl.template \
- > ejabberdctl.relive
+ -e "s*{{epmd}}*@EPMD@*g" ejabberdctl.template | \
+ $(SED) -e "s*\${DESTDIR}**g" > ejabberdctl.relive

ejabberdctl.example: vars.config
$(SED) -e "s*{{installuser}}*@INSTALLUSER@*g" \
- -e "s*{{config_dir}}*${ETCDIR}*g" \
+ -e "s*{{config_dir}}*${SYSCONFDIR_ETCDIR}*g" \
-e "s*{{logs_dir}}*${LOGDIR}*g" \
-e "s*{{spool_dir}}*${SPOOLDIR}*g" \
-e "s*{{bindir}}*@bindir@*g" \
-e "s*{{libdir}}*@libdir@*g" \
-e "s*{{erl}}*@ERL@*g" \
- -e "s*{{epmd}}*@EPMD@*g" ejabberdctl.template \
- > ejabberdctl.example
+ -e "s*{{epmd}}*@EPMD@*g" ejabberdctl.template | \
+ $(SED) -e "s*\${DESTDIR}**g" > ejabberdctl.example

install: copy-files ejabberdctl.example
#
# Configuration files

0 comments on commit d1e7de3

Please sign in to comment.