/[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 181 - (show annotations) (download)
Mon May 26 22:42:48 2008 UTC (4 years, 11 months ago) by lyz-guest
File size: 1913 byte(s)
Patch edits for proper building, updated docs

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/*
58 chmod +x $(CURDIR)/debian/ledgersmb/usr/share/ledgersmb/upgrade-templates.pl
59 chmod -x $(CURDIR)/debian/ledgersmb/usr/share/ledgersmb/favicon.ico
60 #cp debian/README.Ubuntu $(CURDIR)/debian/ledgersmb/usr/share/doc/ledgersmb
61
62
63 # Build architecture-independent files here.
64 binary-indep: build install
65 dh_testdir
66 dh_testroot
67 dh_installchangelogs Changelog
68 dh_installdocs
69 dh_installexamples
70 # dh_install
71 # dh_installdebconf
72 dh_link
73 dh_compress
74 dh_fixperms
75 dh_installdeb
76 dh_gencontrol
77 dh_md5sums
78 dh_builddeb
79
80 # Build architecture-dependent files here.
81 binary-arch: build install
82 # We have nothing to do by default.
83
84 binary: binary-indep binary-arch
85 .PHONY: build clean binary-indep binary-arch binary install

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5