/[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 359 - (show annotations) (download)
Sun Dec 25 21:08:19 2011 UTC (16 months, 4 weeks ago) by jame-guest
File size: 2039 byte(s)
Use find command to fix permissions on *.sh files.
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 DESTDIR = $(CURDIR)/debian/ledgersmb
7 LSMBDIR = $(DESTDIR)/usr/share/ledgersmb
8 INSTALL = install
9
10
11 configure: configure-stamp
12 configure-stamp:
13 dh_testdir
14 # Add here commands to configure the package.
15
16 touch configure-stamp
17
18
19 build: build-arch build-indep
20
21 build-arch: build-stamp
22
23 build-indep: build-stamp
24
25 build-stamp: configure-stamp
26 dh_testdir
27
28 # Add here commands to compile the package.
29 #docbook-to-man debian/ledgersmb.sgml > ledgersmb.1
30
31 touch $@
32
33 clean:
34 dh_testdir
35 dh_testroot
36 rm -f build-stamp configure-stamp
37
38 # Add here commands to clean up after the build process.
39 rm -f ledgersmb-httpd.conf
40 rm -f ledgersmb.conf
41 if test -e Makefile; then $(MAKE) distclean; fi
42
43 dh_clean
44
45 install: build
46 dh_testdir
47 dh_testroot
48 dh_prep
49 dh_installdirs
50
51 # Add here commands to install the package into debian/ledgersmb.
52
53 cp ledgersmb-httpd.conf.template ledgersmb-httpd.conf
54
55 sed -e 's|^spool = .*$$|spool = /var/lib/ledgersmb/spool|' \
56 -e 's|^latex : 1$$|latex : 0|' \
57 -e '/^localepath/d' \
58 ledgersmb.conf.default > ledgersmb.conf
59
60 perl Makefile.PL --skipdeps
61 $(MAKE)
62
63
64 # Build architecture-independent files here.
65 binary-indep: build install
66 dh_testdir
67 dh_testroot
68 dh_installchangelogs Changelog
69 dh_installdocs
70 dh_installexamples
71 dh_install
72 dh_lintian
73 # dh_installdebconf
74 dh_link
75 dh_compress
76 dh_fixperms
77 # Corrections to file permissions
78 chmod +x $(LSMBDIR)/scripts/*.pl
79 chmod -x $(LSMBDIR)/locale/po/*
80 chmod -x $(LSMBDIR)/locale/html/*
81 find $(LSMBDIR) -name '*.sh' -exec chmod +x '{}' \;
82 find $(LSMBDIR) -name '*.pm' -exec chmod -x '{}' \;
83 find $(LSMBDIR) -name '*.sql' -exec chmod -x '{}' \;
84 dh_installdeb
85 dh_perl
86 dh_gencontrol
87 dh_md5sums
88 dh_builddeb
89
90 # Build architecture-dependent files here.
91 binary-arch: build install
92 # We have nothing to do by default.
93
94 binary: binary-indep binary-arch
95 .PHONY: build build-indep build-arch clean binary-indep binary-arch binary install

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5