github.com/apptainer/singularity@v3.1.1+incompatible/dist/debian/rules (about)

     1  #!/usr/bin/make -f
     2  
     3  srcpkg = $(shell LC_ALL=C dpkg-parsechangelog | grep '^Source:' | cut -d ' ' -f 2,2)
     4  debver = $(shell LC_ALL=C dpkg-parsechangelog | grep '^Version:' | cut -d ' ' -f 2,2 )
     5  uver = $(shell echo $(debver) | cut -d '-' -f 1,1 )
     6  
     7  #DH_VERBOSE=1
     8  export DEB_BUILD_MAINT_OPTIONS = hardening=+all
     9  
    10  PKGDIR=debian/singularity-container
    11  export SINGULARITY_CACHEDIR=$(PKGDIR)/var/lib/singularity/cache
    12  
    13  %:
    14  	dh $@  --with autoreconf
    15  
    16  override_dh_auto_configure:
    17  	dh_auto_configure -- --localstatedir=/var/lib
    18  
    19  override_dh_auto_install:
    20  	dh_auto_install
    21  	: # move bash completions into now new standard location
    22  	mv $(PKGDIR)/etc/bash_completion.d $(PKGDIR)/usr/share/bash-completion/completions
    23  
    24  override_dh_installman:
    25  	: # Very sloppy man pages for now
    26  	debian/generate_manpages $(PKGDIR) $(debver)
    27  	dh_installman
    28  
    29  override_dh_installdocs:
    30  	dh_installdocs README.md CONTRIBUTORS.md
    31  
    32  override_dh_auto_test:
    33  
    34  override_dh_fixperms:
    35  	dh_fixperms
    36  	chown root.root $(PKGDIR)/usr/lib/*/singularity/bin/*
    37  	chmod 4755 $(PKGDIR)/usr/lib/*/singularity/bin/*-suid