~ubuntu-branches/ubuntu/karmic/openssh-blacklist/karmic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2008-05-29 09:37:50 UTC
  • mfrom: (0.1.2 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080529093750-xvvhfshtxjapejir
Tags: 0.4.1
debian/openssh-blacklist{,-extra}.preinst: Correctly clean up old
/etc/ssh blacklist entries (Closes: 483549).

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
        dh_testroot
26
26
        dh_clean -k 
27
27
        dh_installdirs
28
 
        # Add here commands to install the package into debian/openssh-blacklist.
29
 
        cat $(CURDIR)/debian/blacklist.prefix > $(CURDIR)/debian/openssh-blacklist/etc/ssh/blacklist.DSA-1024
30
 
        cat $(CURDIR)/blacklist.DSA-1024 | cut -d ' ' -f 2 | cut -b13- | sort >> $(CURDIR)/debian/openssh-blacklist/etc/ssh/blacklist.DSA-1024
31
 
        cat $(CURDIR)/debian/blacklist.prefix > $(CURDIR)/debian/openssh-blacklist/etc/ssh/blacklist.RSA-2048
32
 
        cat $(CURDIR)/blacklist.RSA-2048 | cut -d ' ' -f 2 | cut -b13- | sort >> $(CURDIR)/debian/openssh-blacklist/etc/ssh/blacklist.RSA-2048
 
28
        mkdir -p $(CURDIR)/debian/tmp/usr/share/ssh
 
29
        # Trim blacklists to reduce the size of the package without too
 
30
        # drastically creating false positives.
 
31
        for i in $$(cd $(CURDIR) && ls [RD]SA-*.?e* | cut -d. -f1 | sort -u); do \
 
32
                cat $(CURDIR)/debian/blacklist.prefix > $(CURDIR)/debian/tmp/usr/share/ssh/blacklist.$$i; \
 
33
                cat $(CURDIR)/$$i.* | cut -b13- | sort >> $(CURDIR)/debian/tmp/usr/share/ssh/blacklist.$$i; \
 
34
        done
 
35
        for i in $$(cd $(CURDIR) && ls [RD]SA-*.all | cut -d. -f1 | sort -u); do \
 
36
                cat $(CURDIR)/$$i.* >> $(CURDIR)/debian/tmp/usr/share/ssh/blacklist.$$i; \
 
37
        done
33
38
 
34
39
# Build architecture-dependent files here.
35
40
binary-arch: build install
41
46
        dh_testroot
42
47
        dh_installchangelogs 
43
48
        dh_installdocs
44
 
        dh_installexamples
45
 
#       dh_install
 
49
        dh_installexamples -p openssh-blacklist-extra generate-blacklist.sh
 
50
        dh_install --sourcedir=debian/tmp
46
51
#       dh_installmenu
47
52
#       dh_installdebconf       
48
53
#       dh_installlogrotate