Skip to content

Commit

Permalink
pkg/kamailio/deb: rework debian/rules, take two [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxmaniac committed Jan 30, 2023
1 parent c3acd70 commit 13581d5
Show file tree
Hide file tree
Showing 14 changed files with 70 additions and 70 deletions.
10 changes: 5 additions & 5 deletions pkg/kamailio/deb/bionic/rules
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,14 @@ test_build_all:
$(BUILD_MODULES): test_build_all
$(MAKE) every-module group_include="k$(subst build_,,$@)" quiet=verbose

test_install_all:
test_install_all: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
$(MAKE) install quiet=verbose LIBDIR=$(LIBDIR) group_include="kstandard"

$(INSTALL_MODULES): test_install_all
$(INSTALL_MODULES): build test_install_all
$(MAKE) install-modules-all \
quiet=verbose \
LIBDIR=$(LIBDIR) \
Expand All @@ -140,14 +140,14 @@ $(INSTALL_MODULES): test_install_all
for d in $(DUP_LIBS_DIRS); do \
test "$$d" != "$(D)-$${module}-modules/usr/$(LIBDIR)/kamailio" && \
for r in `find $$d -name 'lib*' | xargs`; do \
echo "removing $(GRP) lib `basename $$r` present also in $$d"; \
echo "removing $(subst install_,,$@) lib `basename $$r` present also in $$d"; \
rm -f $(D)-$(subst install_,,$@)-modules/usr/$(LIBDIR)/kamailio/`basename "$$r"`; \
done ; \
done
# clean empty dirs
find $(D)-$(GRP)-modules -depth -empty -type d -exec rmdir {} \;
find $(D)-$(subst install_,,$@)-modules -depth -empty -type d -exec rmdir {} \;

$(INSTALL_EXTRA):
$(INSTALL_EXTRA): build
$(MAKE) install-modules-all LIBDIR=$(LIBDIR) group_include="k$(subst install_,,$@)" \
BASEDIR=$(D)-extra-modules \
cfg_prefix=$(D)-extra-modules \
Expand Down
10 changes: 5 additions & 5 deletions pkg/kamailio/deb/bookworm/rules
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,14 @@ test_build_all:
$(BUILD_MODULES): test_build_all
$(MAKE) every-module group_include="k$(subst build_,,$@)" quiet=verbose

test_install_all:
test_install_all: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
$(MAKE) install quiet=verbose LIBDIR=$(LIBDIR) group_include="kstandard"

$(INSTALL_MODULES): test_install_all
$(INSTALL_MODULES): build test_install_all
$(MAKE) install-modules-all \
quiet=verbose \
LIBDIR=$(LIBDIR) \
Expand All @@ -140,14 +140,14 @@ $(INSTALL_MODULES): test_install_all
for d in $(DUP_LIBS_DIRS); do \
test "$$d" != "$(D)-$${module}-modules/usr/$(LIBDIR)/kamailio" && \
for r in `find $$d -name 'lib*' | xargs`; do \
echo "removing $(GRP) lib `basename $$r` present also in $$d"; \
echo "removing $(subst install_,,$@) lib `basename $$r` present also in $$d"; \
rm -f $(D)-$(subst install_,,$@)-modules/usr/$(LIBDIR)/kamailio/`basename "$$r"`; \
done ; \
done
# clean empty dirs
find $(D)-$(GRP)-modules -depth -empty -type d -exec rmdir {} \;
find $(D)-$(subst install_,,$@)-modules -depth -empty -type d -exec rmdir {} \;

$(INSTALL_EXTRA):
$(INSTALL_EXTRA): build
$(MAKE) install-modules-all LIBDIR=$(LIBDIR) group_include="k$(subst install_,,$@)" \
BASEDIR=$(D)-extra-modules \
cfg_prefix=$(D)-extra-modules \
Expand Down
10 changes: 5 additions & 5 deletions pkg/kamailio/deb/bullseye/rules
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,14 @@ test_build_all:
$(BUILD_MODULES): test_build_all
$(MAKE) every-module group_include="k$(subst build_,,$@)" quiet=verbose

test_install_all:
test_install_all: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
$(MAKE) install quiet=verbose LIBDIR=$(LIBDIR) group_include="kstandard"

$(INSTALL_MODULES): test_install_all
$(INSTALL_MODULES): build test_install_all
$(MAKE) install-modules-all \
quiet=verbose \
LIBDIR=$(LIBDIR) \
Expand All @@ -140,14 +140,14 @@ $(INSTALL_MODULES): test_install_all
for d in $(DUP_LIBS_DIRS); do \
test "$$d" != "$(D)-$${module}-modules/usr/$(LIBDIR)/kamailio" && \
for r in `find $$d -name 'lib*' | xargs`; do \
echo "removing $(GRP) lib `basename $$r` present also in $$d"; \
echo "removing $(subst install_,,$@) lib `basename $$r` present also in $$d"; \
rm -f $(D)-$(subst install_,,$@)-modules/usr/$(LIBDIR)/kamailio/`basename "$$r"`; \
done ; \
done
# clean empty dirs
find $(D)-$(GRP)-modules -depth -empty -type d -exec rmdir {} \;
find $(D)-$(subst install_,,$@)-modules -depth -empty -type d -exec rmdir {} \;

$(INSTALL_EXTRA):
$(INSTALL_EXTRA): build
$(MAKE) install-modules-all LIBDIR=$(LIBDIR) group_include="k$(subst install_,,$@)" \
BASEDIR=$(D)-extra-modules \
cfg_prefix=$(D)-extra-modules \
Expand Down
10 changes: 5 additions & 5 deletions pkg/kamailio/deb/buster/rules
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,14 @@ test_build_all:
$(BUILD_MODULES): test_build_all
$(MAKE) every-module group_include="k$(subst build_,,$@)" quiet=verbose

test_install_all:
test_install_all: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
$(MAKE) install quiet=verbose LIBDIR=$(LIBDIR) group_include="kstandard"

$(INSTALL_MODULES): test_install_all
$(INSTALL_MODULES): build test_install_all
$(MAKE) install-modules-all \
quiet=verbose \
LIBDIR=$(LIBDIR) \
Expand All @@ -140,14 +140,14 @@ $(INSTALL_MODULES): test_install_all
for d in $(DUP_LIBS_DIRS); do \
test "$$d" != "$(D)-$${module}-modules/usr/$(LIBDIR)/kamailio" && \
for r in `find $$d -name 'lib*' | xargs`; do \
echo "removing $(GRP) lib `basename $$r` present also in $$d"; \
echo "removing $(subst install_,,$@) lib `basename $$r` present also in $$d"; \
rm -f $(D)-$(subst install_,,$@)-modules/usr/$(LIBDIR)/kamailio/`basename "$$r"`; \
done ; \
done
# clean empty dirs
find $(D)-$(GRP)-modules -depth -empty -type d -exec rmdir {} \;
find $(D)-$(subst install_,,$@)-modules -depth -empty -type d -exec rmdir {} \;

$(INSTALL_EXTRA):
$(INSTALL_EXTRA): build
$(MAKE) install-modules-all LIBDIR=$(LIBDIR) group_include="k$(subst install_,,$@)" \
BASEDIR=$(D)-extra-modules \
cfg_prefix=$(D)-extra-modules \
Expand Down
10 changes: 5 additions & 5 deletions pkg/kamailio/deb/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@ test_build_all:
$(BUILD_MODULES): test_build_all
$(MAKE) every-module group_include="k$(subst build_,,$@)" quiet=verbose

test_install_all:
test_install_all: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
$(MAKE) install quiet=verbose LIBDIR=$(LIBDIR) group_include="kstandard"

$(INSTALL_MODULES): test_install_all
$(INSTALL_MODULES): build test_install_all
$(MAKE) install-modules-all \
quiet=verbose \
LIBDIR=$(LIBDIR) \
Expand All @@ -141,14 +141,14 @@ $(INSTALL_MODULES): test_install_all
for d in $(DUP_LIBS_DIRS); do \
test "$$d" != "$(D)-$${module}-modules/usr/$(LIBDIR)/kamailio" && \
for r in `find $$d -name 'lib*' | xargs`; do \
echo "removing $(GRP) lib `basename $$r` present also in $$d"; \
echo "removing $(subst install_,,$@) lib `basename $$r` present also in $$d"; \
rm -f $(D)-$(subst install_,,$@)-modules/usr/$(LIBDIR)/kamailio/`basename "$$r"`; \
done ; \
done
# clean empty dirs
find $(D)-$(GRP)-modules -depth -empty -type d -exec rmdir {} \;
find $(D)-$(subst install_,,$@)-modules -depth -empty -type d -exec rmdir {} \;

$(INSTALL_EXTRA):
$(INSTALL_EXTRA): build
$(MAKE) install-modules-all LIBDIR=$(LIBDIR) group_include="k$(subst install_,,$@)" \
BASEDIR=$(D)-extra-modules \
cfg_prefix=$(D)-extra-modules \
Expand Down
10 changes: 5 additions & 5 deletions pkg/kamailio/deb/focal/rules
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,14 @@ test_build_all:
$(BUILD_MODULES): test_build_all
$(MAKE) every-module group_include="k$(subst build_,,$@)" quiet=verbose

test_install_all:
test_install_all: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
$(MAKE) install quiet=verbose LIBDIR=$(LIBDIR) group_include="kstandard"

$(INSTALL_MODULES): test_install_all
$(INSTALL_MODULES): build test_install_all
$(MAKE) install-modules-all \
quiet=verbose \
LIBDIR=$(LIBDIR) \
Expand All @@ -140,14 +140,14 @@ $(INSTALL_MODULES): test_install_all
for d in $(DUP_LIBS_DIRS); do \
test "$$d" != "$(D)-$${module}-modules/usr/$(LIBDIR)/kamailio" && \
for r in `find $$d -name 'lib*' | xargs`; do \
echo "removing $(GRP) lib `basename $$r` present also in $$d"; \
echo "removing $(subst install_,,$@) lib `basename $$r` present also in $$d"; \
rm -f $(D)-$(subst install_,,$@)-modules/usr/$(LIBDIR)/kamailio/`basename "$$r"`; \
done ; \
done
# clean empty dirs
find $(D)-$(GRP)-modules -depth -empty -type d -exec rmdir {} \;
find $(D)-$(subst install_,,$@)-modules -depth -empty -type d -exec rmdir {} \;

$(INSTALL_EXTRA):
$(INSTALL_EXTRA): build
$(MAKE) install-modules-all LIBDIR=$(LIBDIR) group_include="k$(subst install_,,$@)" \
BASEDIR=$(D)-extra-modules \
cfg_prefix=$(D)-extra-modules \
Expand Down
10 changes: 5 additions & 5 deletions pkg/kamailio/deb/jammy/rules
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,14 @@ test_build_all:
$(BUILD_MODULES): test_build_all
$(MAKE) every-module group_include="k$(subst build_,,$@)" quiet=verbose

test_install_all:
test_install_all: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
$(MAKE) install quiet=verbose LIBDIR=$(LIBDIR) group_include="kstandard"

$(INSTALL_MODULES): test_install_all
$(INSTALL_MODULES): build test_install_all
$(MAKE) install-modules-all \
quiet=verbose \
LIBDIR=$(LIBDIR) \
Expand All @@ -140,14 +140,14 @@ $(INSTALL_MODULES): test_install_all
for d in $(DUP_LIBS_DIRS); do \
test "$$d" != "$(D)-$${module}-modules/usr/$(LIBDIR)/kamailio" && \
for r in `find $$d -name 'lib*' | xargs`; do \
echo "removing $(GRP) lib `basename $$r` present also in $$d"; \
echo "removing $(subst install_,,$@) lib `basename $$r` present also in $$d"; \
rm -f $(D)-$(subst install_,,$@)-modules/usr/$(LIBDIR)/kamailio/`basename "$$r"`; \
done ; \
done
# clean empty dirs
find $(D)-$(GRP)-modules -depth -empty -type d -exec rmdir {} \;
find $(D)-$(subst install_,,$@)-modules -depth -empty -type d -exec rmdir {} \;

$(INSTALL_EXTRA):
$(INSTALL_EXTRA): build
$(MAKE) install-modules-all LIBDIR=$(LIBDIR) group_include="k$(subst install_,,$@)" \
BASEDIR=$(D)-extra-modules \
cfg_prefix=$(D)-extra-modules \
Expand Down
10 changes: 5 additions & 5 deletions pkg/kamailio/deb/jessie/rules
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@ test_build_all:
$(BUILD_MODULES): test_build_all
$(MAKE) every-module group_include="k$(subst build_,,$@)" quiet=verbose

test_install_all:
test_install_all: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
$(MAKE) install quiet=verbose LIBDIR=$(LIBDIR) group_include="kstandard"

$(INSTALL_MODULES): test_install_all
$(INSTALL_MODULES): build test_install_all
$(MAKE) install-modules-all \
quiet=verbose \
LIBDIR=$(LIBDIR) \
Expand All @@ -141,14 +141,14 @@ $(INSTALL_MODULES): test_install_all
for d in $(DUP_LIBS_DIRS); do \
test "$$d" != "$(D)-$${module}-modules/usr/$(LIBDIR)/kamailio" && \
for r in `find $$d -name 'lib*' | xargs`; do \
echo "removing $(GRP) lib `basename $$r` present also in $$d"; \
echo "removing $(subst install_,,$@) lib `basename $$r` present also in $$d"; \
rm -f $(D)-$(subst install_,,$@)-modules/usr/$(LIBDIR)/kamailio/`basename "$$r"`; \
done ; \
done
# clean empty dirs
find $(D)-$(GRP)-modules -depth -empty -type d -exec rmdir {} \;
find $(D)-$(subst install_,,$@)-modules -depth -empty -type d -exec rmdir {} \;

$(INSTALL_EXTRA):
$(INSTALL_EXTRA): build
$(MAKE) install-modules-all LIBDIR=$(LIBDIR) group_include="k$(subst install_,,$@)" \
BASEDIR=$(D)-extra-modules \
cfg_prefix=$(D)-extra-modules \
Expand Down
10 changes: 5 additions & 5 deletions pkg/kamailio/deb/precise/rules
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,14 @@ test_build_all:
$(BUILD_MODULES): test_build_all
$(MAKE) every-module group_include="k$(subst build_,,$@)" quiet=verbose

test_install_all:
test_install_all: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
$(MAKE) install quiet=verbose LIBDIR=$(LIBDIR) group_include="kstandard"

$(INSTALL_MODULES): test_install_all
$(INSTALL_MODULES): build test_install_all
$(MAKE) install-modules-all \
quiet=verbose \
LIBDIR=$(LIBDIR) \
Expand All @@ -140,14 +140,14 @@ $(INSTALL_MODULES): test_install_all
for d in $(DUP_LIBS_DIRS); do \
test "$$d" != "$(D)-$${module}-modules/usr/$(LIBDIR)/kamailio" && \
for r in `find $$d -name 'lib*' | xargs`; do \
echo "removing $(GRP) lib `basename $$r` present also in $$d"; \
echo "removing $(subst install_,,$@) lib `basename $$r` present also in $$d"; \
rm -f $(D)-$(subst install_,,$@)-modules/usr/$(LIBDIR)/kamailio/`basename "$$r"`; \
done ; \
done
# clean empty dirs
find $(D)-$(GRP)-modules -depth -empty -type d -exec rmdir {} \;
find $(D)-$(subst install_,,$@)-modules -depth -empty -type d -exec rmdir {} \;

$(INSTALL_EXTRA):
$(INSTALL_EXTRA): build
$(MAKE) install-modules-all LIBDIR=$(LIBDIR) group_include="k$(subst install_,,$@)" \
BASEDIR=$(D)-extra-modules \
cfg_prefix=$(D)-extra-modules \
Expand Down
10 changes: 5 additions & 5 deletions pkg/kamailio/deb/sid/rules
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,14 @@ test_build_all:
$(BUILD_MODULES): test_build_all
$(MAKE) every-module group_include="k$(subst build_,,$@)" quiet=verbose

test_install_all:
test_install_all: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
$(MAKE) install quiet=verbose LIBDIR=$(LIBDIR) group_include="kstandard"

$(INSTALL_MODULES): test_install_all
$(INSTALL_MODULES): build test_install_all
$(MAKE) install-modules-all \
quiet=verbose \
LIBDIR=$(LIBDIR) \
Expand All @@ -140,14 +140,14 @@ $(INSTALL_MODULES): test_install_all
for d in $(DUP_LIBS_DIRS); do \
test "$$d" != "$(D)-$${module}-modules/usr/$(LIBDIR)/kamailio" && \
for r in `find $$d -name 'lib*' | xargs`; do \
echo "removing $(GRP) lib `basename $$r` present also in $$d"; \
echo "removing $(subst install_,,$@) lib `basename $$r` present also in $$d"; \
rm -f $(D)-$(subst install_,,$@)-modules/usr/$(LIBDIR)/kamailio/`basename "$$r"`; \
done ; \
done
# clean empty dirs
find $(D)-$(GRP)-modules -depth -empty -type d -exec rmdir {} \;
find $(D)-$(subst install_,,$@)-modules -depth -empty -type d -exec rmdir {} \;

$(INSTALL_EXTRA):
$(INSTALL_EXTRA): build
$(MAKE) install-modules-all LIBDIR=$(LIBDIR) group_include="k$(subst install_,,$@)" \
BASEDIR=$(D)-extra-modules \
cfg_prefix=$(D)-extra-modules \
Expand Down
10 changes: 5 additions & 5 deletions pkg/kamailio/deb/stretch/rules
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@ test_build_all:
$(BUILD_MODULES): test_build_all
$(MAKE) every-module group_include="k$(subst build_,,$@)" quiet=verbose

test_install_all:
test_install_all: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
$(MAKE) install quiet=verbose LIBDIR=$(LIBDIR) group_include="kstandard"

$(INSTALL_MODULES): test_install_all
$(INSTALL_MODULES): build test_install_all
$(MAKE) install-modules-all \
quiet=verbose \
LIBDIR=$(LIBDIR) \
Expand All @@ -141,14 +141,14 @@ $(INSTALL_MODULES): test_install_all
for d in $(DUP_LIBS_DIRS); do \
test "$$d" != "$(D)-$${module}-modules/usr/$(LIBDIR)/kamailio" && \
for r in `find $$d -name 'lib*' | xargs`; do \
echo "removing $(GRP) lib `basename $$r` present also in $$d"; \
echo "removing $(subst install_,,$@) lib `basename $$r` present also in $$d"; \
rm -f $(D)-$(subst install_,,$@)-modules/usr/$(LIBDIR)/kamailio/`basename "$$r"`; \
done ; \
done
# clean empty dirs
find $(D)-$(GRP)-modules -depth -empty -type d -exec rmdir {} \;
find $(D)-$(subst install_,,$@)-modules -depth -empty -type d -exec rmdir {} \;

$(INSTALL_EXTRA):
$(INSTALL_EXTRA): build
$(MAKE) install-modules-all LIBDIR=$(LIBDIR) group_include="k$(subst install_,,$@)" \
BASEDIR=$(D)-extra-modules \
cfg_prefix=$(D)-extra-modules \
Expand Down

0 comments on commit 13581d5

Please sign in to comment.