handle a couple more intricacies of backporting
authormirabilos <t.glaser@tarent.de>
Sun, 3 Dec 2017 00:02:00 +0000 (01:02 +0100)
committermirabilos <t.glaser@tarent.de>
Sun, 3 Dec 2017 00:02:00 +0000 (01:02 +0100)
debian/control.in
debian/rules

index e811435..7a3fb57 100644 (file)
@@ -48,6 +48,7 @@ Description: user friendly full screen text editor
  in the joe-jupp package.
 
 Package: joe-jupp
+@PRIO@EXTRA@
 Architecture: all
 Depends: ${misc:Depends}, jupp (>= 3.1.30)
 Conflicts: joe
index 8a86086..6ef7858 100755 (executable)
@@ -120,6 +120,7 @@ EXTRA_LDFLAGS=              -Wl,--as-needed
 # 5 is enough
 DEBHELPER_VERSION:=    9
 DSF:=                  3.0 (quilt)
+SUBST_EP:=             -e '/@PRIO@EXTRA@/d'
 DSC_DEPS:=             debhelper (>= ${DEBHELPER_VERSION})
 SUBST_VARS+=           DSC_DEPS
 
@@ -162,7 +163,9 @@ EXTRA_CFLAGS+=              -g3
 endif
 
 ifneq (,$(findstring lenny,${DEB_BUILD_OPTIONS}))
+DEBHELPER_VERSION:=    5
 DSF:=                  1.0
+SUBST_EP:=             -e 's/@PRIO@EXTRA@/Priority: extra/'
 SELINUX_ARCHS:=                !kfreebsd-i386 !kfreebsd-amd64 !hurd-i386
 BREAKS:=               Conflicts
 endif
@@ -270,7 +273,7 @@ debian/.control_stamp:
        fi)
        echo '${DSF}' >debian/source/format
        echo ${DEBHELPER_VERSION} >debian/compat
-       sed \
+       sed ${SUBST_EP} \
            $(foreach v,${SUBST_VARS},-e 's\ 1@@'$(call shellescape,$v)'@@\ 1'$(call shellescape,$(strip ${$v}))'\ 1') \
            <debian/control.in >debian/.gencontrol_stamp
        : bail out if these differ: in those cases,