~ubuntu-branches/ubuntu/karmic/openvas-server/karmic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Javier Fernandez-Sanguino Pen~a
  • Date: 2009-01-04 13:13:21 UTC
  • Revision ID: james.westby@ubuntu.com-20090104131321-55wg58w75zygb6ny
Tags: 2.0.0-2
* Brown paper bag release: Restore changes introduced from 1.0.2-2 which were
  missing in the previous package.
* Remove the openvas-plugins dependency as it is not currently in the
  archive. Users have to manually download the plugins currently. This will
  be restored once openvas-plugins is in the archive. (Closes: #511737)

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
32
32
        cp -f /usr/share/misc/config.guess config.guess
33
33
endif
34
 
        CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" ./configure $(CROSS) --prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --sharedstatedir=/var --libdir=\$${localstatedir}/lib --enable-tcpwrappers --enable-save-sessions --enable-save-kb
 
34
        ./configure $(CROSS) --prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --enable-tcpwrappers --enable-save-sessions --enable-save-kb CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
35
35
 
36
36
 
37
37
build: build-stamp
51
51
        rm -f build-stamp 
52
52
 
53
53
        # Add here commands to clean up after the build process.
54
 
        [ ! -f Makefile ] || [ ! -f openvas.tmpl ] || $(MAKE) distclean
 
54
        touch openvas.tmpl
 
55
        [ ! -f Makefile ] || $(MAKE) distclean
55
56
        rm -f config.sub config.guess
56
57
 
57
58
        dh_clean 
62
63
        dh_clean -k 
63
64
        dh_installdirs
64
65
 
65
 
        # Add here commands to install the package into debian/openvas-server.
66
 
        $(MAKE) prefix=$(CURDIR)/debian/openvas-server/usr sysconfdir=$(CURDIR)/debian/openvas-server/etc localstatedir=$(CURDIR)/debian/openvas-server/var sharedstatedir=$(CURDIR)/debian/openvas-server/var install
67
 
        install -m 640 debian/openvasd.conf debian/openvas-server/etc/openvas
68
 
        mv $(CURDIR)/debian/openvas-server/usr/include/openvas/* $(CURDIR)/debian/openvas-server-dev/usr/include/openvas/
69
 
        # Remove empty directory
70
 
        -rm -rf $(CURDIR)/debian/openvas-server/usr/include/
71
 
        mv $(CURDIR)/debian/openvas-server/usr/bin/openvasd-config $(CURDIR)/debian/openvas-server-dev/usr/bin/
72
 
 
 
66
        # Add here commands to install the package into debian/tmp
 
67
        $(MAKE) prefix=$(CURDIR)/debian/tmp/usr sysconfdir=$(CURDIR)/debian/tmp/etc localstatedir=$(CURDIR)/debian/tmp/var install
 
68
        install -m 640 debian/openvasd.conf debian/tmp/etc/openvas
73
69
 
74
70
# Build architecture-independent files here.
75
71
binary-indep: build install
81
77
        dh_testroot
82
78
        dh_installchangelogs CHANGES
83
79
        dh_installdocs
84
 
        dh_installexamples
85
 
        dh_install
 
80
        dh_install --sourcedir=debian/tmp
 
81
        ( cd debian/openvas-server-dev/usr/share/doc/ ; rm -rf openvas-server-dev; ln -s openvas-server openvas-server-dev; )
86
82
        dh_installdebconf       
87
83
        dh_installlogrotate
88
84
        dh_installinit -n -r -u stop 20 0 6 .
89
 
        dh_installman
 
85
        dh_installman --sourcedir=debian/tmp
90
86
        dh_link
91
87
        dh_strip
92
88
        dh_compress