/[pkg-sql-ledger]/ledger-smb/trunk/debian/rules
ViewVC logotype

Contents of /ledger-smb/trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 262 - (show annotations) (download)
Sat Oct 1 23:43:15 2011 UTC (19 months, 3 weeks ago) by jame-guest
File size: 1898 byte(s)
Use dh_lintian to install lintian overrides.
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 include /usr/share/dpatch/dpatch.make
7
8 DESTDIR = $(CURDIR)/debian/ledgersmb
9 INSTALL = install
10
11
12 configure: configure-stamp
13 configure-stamp: patch-stamp
14 dh_testdir
15 # Add here commands to configure the package.
16
17 touch configure-stamp
18
19
20 build: build-stamp
21
22 build-stamp: configure-stamp
23 dh_testdir
24
25 # Add here commands to compile the package.
26 $(MAKE)
27 #docbook-to-man debian/ledgersmb.sgml > ledgersmb.1
28
29 touch $@
30
31 clean: unpatch
32 dh_testdir
33 dh_testroot
34 rm -f build-stamp configure-stamp
35
36 # Add here commands to clean up after the build process.
37 #-$(MAKE) clean
38 rm -f ledgersmb.conf
39
40 dh_clean
41
42 install: build
43 dh_testdir
44 dh_testroot
45 dh_clean -k
46 dh_installdirs
47
48 # Add here commands to install the package into debian/ledgersmb.
49 sed -e 's|^spool = .*$$|spool = /var/lib/ledgersmb/spool|' \
50 -e 's|^latex : 1$$|latex : 0|' \
51 -e '/^localepath/d' \
52 ledgersmb.conf.default > ledgersmb.conf
53
54
55 $(MAKE) install DESTDIR=$(CURDIR)/debian/ledgersmb
56 chown www-data:www-data $(CURDIR)/debian/ledgersmb/etc/ledgersmb/*
57 chmod 0600 $(CURDIR)/debian/ledgersmb/etc/ledgersmb/*.conf $(CURDIR)/debian/ledgersmb/etc/ledgersmb/*.pl
58 chmod +x $(CURDIR)/debian/ledgersmb/usr/share/ledgersmb/upgrade-templates.pl
59 chmod -x $(CURDIR)/debian/ledgersmb/usr/share/ledgersmb/favicon.ico
60
61 # Build architecture-independent files here.
62 binary-indep: build install
63 dh_testdir
64 dh_testroot
65 dh_installchangelogs Changelog
66 dh_installdocs
67 dh_installexamples
68 # dh_install
69 dh_lintian
70 # dh_installdebconf
71 dh_link
72 dh_compress
73 dh_fixperms
74 dh_installdeb
75 dh_gencontrol
76 dh_md5sums
77 dh_builddeb
78
79 # Build architecture-dependent files here.
80 binary-arch: build install
81 # We have nothing to do by default.
82
83 binary: binary-indep binary-arch
84 .PHONY: build clean binary-indep binary-arch binary install

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5