fix selinux dep
authormirabilos <t.glaser@tarent.de>
Sun, 3 Dec 2017 00:17:59 +0000 (01:17 +0100)
committermirabilos <t.glaser@tarent.de>
Sun, 3 Dec 2017 00:17:59 +0000 (01:17 +0100)
debian/rules

index d0a7c74..b52ae3c 100755 (executable)
@@ -122,18 +122,20 @@ DSF:=                     3.0 (quilt)
 SUBST_EP:=             -e '/@PRIO@EXTRA@/d'
 HOMEPAGE:=             https://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]
 
 ifneq (,$(findstring lenny,${DEB_BUILD_OPTIONS}))
 DEBHELPER_VERSION:=    5
+SELINUX_DEP:=          libselinux1-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386]
 endif
 ifneq (,$(findstring lenny,${DEB_BUILD_OPTIONS})$(findstring sarge,${DEB_BUILD_OPTIONS}))
 DSF:=                  1.0
 SUBST_EP:=             -e 's/@PRIO@EXTRA@/Priority: extra/'
-SELINUX_ARCHS:=                !kfreebsd-i386 !kfreebsd-amd64 !hurd-i386
 BREAKS:=               Conflicts
 endif
 ifneq (,$(findstring sarge,${DEB_BUILD_OPTIONS}))
 DEBHELPER_VERSION:=    4
+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'
 endif
@@ -141,8 +143,6 @@ endif
 DSC_DEPS:=             debhelper (>= ${DEBHELPER_VERSION})
 SUBST_VARS+=           DSC_DEPS
 
-SELINUX_ARCHS:=                linux-any
-
 BREAKS:=               Breaks
 SUBST_VARS+=           BREAKS
 
@@ -241,7 +241,7 @@ DSC_DEPS:=          ${DSC_DEPS}, libtinfo-dev | libncurses-dev
 endif
 
 ifeq (1,${USE_SELINUX})
-DSC_DEPS:=             ${DSC_DEPS}, libselinux1-dev [$(strip ${SELINUX_ARCHS})]
+DSC_DEPS:=             ${DSC_DEPS}, $(strip ${SELINUX_DEP})
 endif
 
 ifeq (,$(findstring noautotools,${DEB_BUILD_OPTIONS}))