source: ocsinventory-agent/trunk/fuentes/debian/rules @ 468

Last change on this file since 468 was 468, checked in by mabarracus, 5 years ago

Copyt trusty code

  • Property svn:executable set to *
File size: 1.7 KB
Line 
1#!/usr/bin/make -f
2# -*- makefile -*-
3# Uncomment this to turn on verbose mode.
4#export DH_VERBOSE=1
5
6
7DEB_DH_INSTALL_CRON_ARGS=--name=ocsinventory-agent
8
9configure: configure-stamp
10configure-stamp:
11        dh_testdir
12
13        QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2
14
15        touch configure-stamp
16
17
18build: build-arch build-indep
19build-arch: build-stamp
20build-indep: build-stamp
21
22build-stamp: configure-stamp
23        dh_testdir
24
25        PERL_AUTOINSTALL=--skip perl Makefile.PL INSTALLDIRS=vendor
26
27        touch $@
28
29clean:
30        dh_testdir
31        dh_testroot
32        rm -f build-stamp configure-stamp
33
34        # Add here commands to clean up after the build process.
35        [ ! -f Makefile ] ||  $(MAKE) clean
36        rm -f Makefile.old
37
38        QUILT_PATCHES=debian/patches quilt pop -a -R || test $$? = 2
39        rm -rf .pc
40        [ ! -f ipdiscover ] || rm -f ipdiscover
41
42        dh_clean
43
44install: build
45        dh_testdir
46        dh_testroot
47        dh_clean -k
48        dh_installdirs
49
50        $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
51
52        install -d -m 0755 $(CURDIR)/debian/tmp/etc/ocsinventory
53        install -m 0644 etc/ocsinventory-agent/modules.conf $(CURDIR)/debian/tmp/etc/ocsinventory/
54
55        dh_install --list-missing --sourcedir=debian/tmp
56
57
58
59# Build architecture-dependent files here.
60binary-arch: build install
61# We have nothing to do by default.
62
63# Build architecture-independent files here.
64binary-indep: build install
65        dh_testdir
66        dh_testroot
67        dh_installchangelogs Changes
68        dh_installdocs
69        dh_installexamples
70#       dh_install
71        dh_installdebconf       
72        dh_installlogrotate
73#       dh_installinit
74        dh_installcron $(DEB_DH_INSTALL_CRON_ARGS)
75#       dh_installinfo
76        dh_installman
77        dh_link
78        dh_strip
79        dh_compress
80        dh_fixperms
81        dh_perl
82#       dh_makeshlibs
83        dh_installdeb
84        dh_shlibdeps
85        dh_gencontrol
86        dh_md5sums
87        dh_builddeb
88
89binary: binary-indep binary-arch
90.PHONY: build clean binary-indep binary-arch binary install configure
Note: See TracBrowser for help on using the repository browser.