/[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 328 - (hide annotations) (download)
Thu Dec 15 15:01:15 2011 UTC (17 months, 1 week ago) by jame-guest
File size: 1984 byte(s)
Create default ledgersmb-httpd.conf from ledgersmb-httpd.conf.template.
1 lyz-guest 151 #!/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 lyz-guest 181 configure: configure-stamp
11 jame-guest 270 configure-stamp:
12 lyz-guest 181 dh_testdir
13     # Add here commands to configure the package.
14    
15     touch configure-stamp
16    
17    
18 lyz-guest 151 build: build-stamp
19    
20 lyz-guest 181 build-stamp: configure-stamp
21 lyz-guest 151 dh_testdir
22    
23 lyz-guest 181 # Add here commands to compile the package.
24     #docbook-to-man debian/ledgersmb.sgml > ledgersmb.1
25 lyz-guest 151
26 lyz-guest 181 touch $@
27    
28 jame-guest 273 clean:
29 lyz-guest 151 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 jame-guest 269 dh_prep
42 lyz-guest 151 dh_installdirs
43    
44     # Add here commands to install the package into debian/ledgersmb.
45 jame-guest 328
46     cp ledgersmb-httpd.conf.template ledgersmb-httpd.conf
47    
48 lyz-guest 151 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 dblaber-guest 170
53 jame-guest 296 perl Makefile.PL --skipdeps
54     $(MAKE)
55    
56 jame-guest 299 # 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 jame-guest 285 chmod -x $(CURDIR)/locale/po/*
62 jame-guest 293 chmod -x $(CURDIR)/locale/html/*
63 jame-guest 285 chmod -x $(CURDIR)/sql/*sql
64 jame-guest 293 chmod -x $(CURDIR)/sql/coa/*sql
65 jame-guest 285 chmod -x $(CURDIR)/LedgerSMB/*pm
66 jame-guest 293 chmod -x $(CURDIR)/LedgerSMB/Auth/*pm
67 jame-guest 285 chmod -x $(CURDIR)/LedgerSMB/Taxes/*pm
68     chmod -x $(CURDIR)/LedgerSMB/Template/*pm
69 lyz-guest 151
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 jame-guest 279 dh_install
78 jame-guest 262 dh_lintian
79 jame-guest 270 # dh_installdebconf
80 lyz-guest 151 dh_link
81     dh_compress
82     dh_fixperms
83     dh_installdeb
84     dh_gencontrol
85     dh_md5sums
86     dh_builddeb
87    
88 lyz-guest 162 # Build architecture-dependent files here.
89     binary-arch: build install
90     # We have nothing to do by default.
91    
92 lyz-guest 151 binary: binary-indep binary-arch
93 lyz-guest 167 .PHONY: build clean binary-indep binary-arch binary install

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5