source: salt-server/trunk/fuentes/debian/rules @ 473

Last change on this file since 473 was 473, checked in by daduve, 4 years ago

Adding files

  • Property svn:executable set to *
File size: 2.1 KB
Line 
1#!/usr/bin/make -f
2# -*- makefile -*-
3# Sample debian/rules that uses debhelper.
4# This file was originally written by Joey Hess and Craig Small.
5# As a special exception, when this file is copied by dh-make into a
6# dh-make output file, you may use that output file without restriction.
7# This special exception was added by Craig Small in version 0.37 of dh-make.
8
9# Uncomment this to turn on verbose mode.
10#export DH_VERBOSE=1
11
12
13
14
15CFLAGS = -Wall -g
16
17configure: configure-stamp
18configure-stamp:
19        dh_testdir
20        # Add here commands to configure the package.
21        tar xzf so.tgz
22        touch configure-stamp
23
24build-arch: build
25
26build-indep: build
27
28
29build: build-stamp
30build-stamp: configure-stamp
31        dh_testdir
32        docbook-to-man $(CURDIR)/debian/sltsrv.sgml >  $(CURDIR)/debian/sltsrv.1
33        docbook-to-man $(CURDIR)/debian/sltsrw.sgml >  $(CURDIR)/debian/sltsrw.1
34        touch $@
35
36clean:
37        dh_testdir
38        dh_testroot
39        rm -f build-stamp configure-stamp
40        rm -Rf so
41        dh_clean
42
43install: build
44        dh_testdir
45        dh_testroot
46        dh_prep
47        dh_installdirs
48
49        # Add here commands to install the package into debian/tmp
50        chmod +x install_server
51        DESTDIR=$(CURDIR)/debian/salt-server ./install_server
52        #install -o root -g root -m 0644 debian/salt-server.lintian  debian/salt-server/usr/share/lintian/overrides/salt-server
53        chmod -x salt.cfg sltsrv.config
54        cp sltsrv.config $(CURDIR)/debian/salt-common/var/lib/salt/
55        cp salt.cfg $(CURDIR)/debian/salt-common/etc/salt/
56        cp -R salt-help $(CURDIR)/debian/salt-help/usr/share/
57
58
59# Build architecture-independent files here.
60binary-indep: build install
61# We have nothing to do by default.
62
63# Build architecture-dependent files here.
64binary-arch: build install
65        dh_testdir
66        dh_testroot
67        dh_installchangelogs
68        dh_installdocs
69        dh_install
70#       dh_installdebconf       
71#       dh_installlogrotate
72        dh_installinit -n -psalt-server
73        dh_installman -psalt-server debian/sltsrv.1 debian/sltsrw.1
74        dh_link
75        dh_strip
76        dh_compress
77        dh_fixperms
78#       dh_python
79#       dh_makeshlibs
80        dh_installdeb
81        dh_shlibdeps
82        dh_gencontrol
83        dh_md5sums
84        dh_builddeb
85
86binary: binary-indep binary-arch
87.PHONY: build clean binary-indep binary-arch binary install configure
Note: See TracBrowser for help on using the repository browser.