/[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 342 - (show annotations) (download)
Fri Dec 23 02:18:39 2011 UTC (17 months ago) by jame-guest
File size: 1993 byte(s)
Add usage of dh_perl to the debian packaging.
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 INSTALL = install
8
9
10 configure: configure-stamp
11 configure-stamp:
12 dh_testdir
13 # Add here commands to configure the package.
14
15 touch configure-stamp
16
17
18 build: build-stamp
19
20 build-stamp: configure-stamp
21 dh_testdir
22
23 # Add here commands to compile the package.
24 #docbook-to-man debian/ledgersmb.sgml > ledgersmb.1
25
26 touch $@
27
28 clean:
29 dh_testdir
30 dh_testroot
31 rm -f build-stamp configure-stamp
32
33 # Add here commands to clean up after the build process.
34 rm -f ledgersmb.conf
35
36 dh_clean
37
38 install: build
39 dh_testdir
40 dh_testroot
41 dh_prep
42 dh_installdirs
43
44 # Add here commands to install the package into debian/ledgersmb.
45
46 cp ledgersmb-httpd.conf.template ledgersmb-httpd.conf
47
48 sed -e 's|^spool = .*$$|spool = /var/lib/ledgersmb/spool|' \
49 -e 's|^latex : 1$$|latex : 0|' \
50 -e '/^localepath/d' \
51 ledgersmb.conf.default > ledgersmb.conf
52
53 perl Makefile.PL --skipdeps
54 $(MAKE)
55
56 # Corrections to file permissions
57 chmod +x $(CURDIR)/blib/lib/*.pl
58 chmod +x $(CURDIR)/scripts/*.pl
59 chmod +x $(CURDIR)/sql/modules/*.sh
60 chmod +x $(CURDIR)/tools/*.sh
61 chmod -x $(CURDIR)/locale/po/*
62 chmod -x $(CURDIR)/locale/html/*
63 chmod -x $(CURDIR)/sql/*sql
64 chmod -x $(CURDIR)/sql/coa/*sql
65 chmod -x $(CURDIR)/LedgerSMB/*pm
66 chmod -x $(CURDIR)/LedgerSMB/Auth/*pm
67 chmod -x $(CURDIR)/LedgerSMB/Taxes/*pm
68 chmod -x $(CURDIR)/LedgerSMB/Template/*pm
69
70 # Build architecture-independent files here.
71 binary-indep: build install
72 dh_testdir
73 dh_testroot
74 dh_installchangelogs Changelog
75 dh_installdocs
76 dh_installexamples
77 dh_install
78 dh_lintian
79 # dh_installdebconf
80 dh_link
81 dh_compress
82 dh_fixperms
83 dh_installdeb
84 dh_perl
85 dh_gencontrol
86 dh_md5sums
87 dh_builddeb
88
89 # Build architecture-dependent files here.
90 binary-arch: build install
91 # We have nothing to do by default.
92
93 binary: binary-indep binary-arch
94 .PHONY: build clean binary-indep binary-arch binary install

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5