also omit the dh_installmenu calls, then
authormirabilos <m@mirbsd.org>
Sat, 20 Oct 2018 19:55:29 +0000 (21:55 +0200)
committermirabilos <mirabilos@evolvis.org>
Sat, 20 Oct 2018 19:55:29 +0000 (21:55 +0200)
debian/rules

index 8a74682..7cdcf22 100755 (executable)
@@ -131,7 +131,8 @@ SUBST_EP:=          -e '/@PRIO@EXTRA@/d'
 HOMEPAGE:=             http://www.mirbsd.org/jupp.htm
 SUBST_HP:=             -e '/@HP@DOT@/d' -e '/@HP@OLD@/d' -e 's\ 1@HP@MODERN@\ 1${HOMEPAGE}\ 1'
 SELINUX_DEP:=          libselinux1-dev [linux-any]
-MENU_SUBST:=           \#
+MENU_SUBST:=           cat
+USE_MENU:=             0
 
 BREAKS:=               Breaks
 SUBST_VARS+=           BREAKS
@@ -145,13 +146,13 @@ endif
 # wheezy, jessie
 ifneq (,$(findstring wheezy,${DEB_BUILD_OPTIONS}))
 DEBHELPER_VERSION:=    9
-MENU_SUBST:=           cat
+USE_MENU:=             1
 endif
 # lenny, squeeze
 ifneq (,$(findstring lenny,${DEB_BUILD_OPTIONS}))
 DEBHELPER_VERSION:=    5
+USE_MENU:=             1
 SELINUX_DEP:=          libselinux1-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386]
-MENU_SUBST:=           cat
 endif
 ifneq (,$(findstring lenny,${DEB_BUILD_OPTIONS})$(findstring sarge,${DEB_BUILD_OPTIONS}))
 DSF:=                  1.0
@@ -161,6 +162,7 @@ endif
 # sarge, etch (although etch has debhelper 5)
 ifneq (,$(findstring sarge,${DEB_BUILD_OPTIONS}))
 DEBHELPER_VERSION:=    4
+USE_MENU:=             1
 SELINUX_DEP:=          libselinux1-dev
 SUBST_HP:=             -e '/@HP@MODERN@/d' -e '/^VCS-[gB][ir][to][:w]/d' \
                        -e 's/@HP@DOT@//' -e 's\ 1@HP@OLD@\ 1${HOMEPAGE}\ 1'
@@ -321,8 +323,10 @@ ifneq (11,${DEBHELPER_VERSION})
            -e 's! debian-watch-does-not-check-gpg-signature! debian-watch-may-check-gpg-signature!g' \
            <debian/source/lintian-overrides >debian/source.lintian-overrides
 endif
+ifneq (,$(findstring 1,${USE_MENU}))
        ${MENU_SUBST} <debian/joe-jupp.menu.in >debian/joe-jupp.menu
        ${MENU_SUBST} <debian/jupp.menu.in >debian/jupp.menu
+endif
        sed ${SUBST_EP} ${SUBST_HP} \
            $(foreach v,${SUBST_VARS},-e 's\ 1@@'$(call shellescape,$v)'@@\ 1'$(call shellescape,$(strip ${$v}))'\ 1') \
            <debian/control.in >debian/.gencontrol_stamp
@@ -367,7 +371,9 @@ binary-indep: build-indep
        if test -x "$$(which dh_prep)"; then dh_prep -i; else dh_clean -i -k; fi
        dh_installchangelogs -i
        dh_install -i
+ifneq (,$(findstring 1,${USE_MENU}))
        dh_installmenu -i
+endif
        # will be replaced by links to jupp
        rm -rf debian/joe-jupp/usr/share/doc/joe-jupp
        dh_link -i
@@ -385,7 +391,9 @@ binary-arch: build-arch
        dh_installchangelogs -a
        dh_installdocs -a
        dh_install -a
+ifneq (,$(findstring 1,${USE_MENU}))
        dh_installmenu -a
+endif
        dh_installman -a
        dh_link -a
        dh_strip -a