1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
14a15
> docdir = $(prefix)/$(docdir)
17,18c18,19
< install -d $(datadir)/bibus
< install -m644 *.py MySQL_Bibus.ini $(datadir)/bibus/
---
> install -d $(PKGDIR)/$(datadir)/bibus
> install -m644 *.py MySQL_Bibus.ini $(PKGDIR)/$(datadir)/bibus/
21c22
< find $$dir ! -wholename '*CVS*' -a -type f -exec install -m644 '{}' -D $(datadir)/bibus/'{}' ';' ; \
---
> find $$dir ! -wholename '*CVS*' -a -type f -exec install -m644 '{}' -D $(PKGDIR)/$(datadir)/bibus/'{}' ';' ; \
23c24
< install -m644 Setup/UnoConnectionListener.odg -D $(datadir)/bibus/Setup/UnoConnectionListener.odg
---
> install -m644 Setup/UnoConnectionListener.odg -D $(PKGDIR)/$(datadir)/bibus/Setup/UnoConnectionListener.odg
27c28
< install -m644 $$dir/LC_MESSAGES/bibus.mo -D $(datadir)/$$dir/LC_MESSAGES/bibus.mo ; \
---
> install -m644 $$dir/LC_MESSAGES/bibus.mo -D $(PKGDIR)/$(datadir)/$$dir/LC_MESSAGES/bibus.mo ; \
31c32
< install -m644 bibus.config -D $(sysconfdir)/bibus.config
---
> install -m644 bibus.config -D $(PKGDIR)/$(sysconfdir)/bibus.config
33c34
< install -m644 Setup/bibus.1 -D $(man1dir)/bibus.1
---
> install -m644 Setup/bibus.1 -D $(PKGDIR)/$(man1dir)/bibus.1
36,37c37,38
< install -m644 Pixmaps/bibus.png -D $(datadir)/icons/hicolor/48x48/apps/bibus.png
< install -m644 Setup/bibus.desktop -D $(datadir)/applications/bibus.desktop
---
> install -m644 Pixmaps/bibus.png -D $(PKGDIR)/$(datadir)/icons/hicolor/48x48/apps/bibus.png
> install -m644 Setup/bibus.desktop -D $(PKGDIR)/$(datadir)/applications/bibus.desktop
43,45c44,46
< install -d $(bindir)
< ln -sf $(datadir)/bibus/bibusStart.py $(bindir)/bibus
< chmod 755 $(datadir)/bibus/bibusStart.py
---
> install -d $(PKGDIR)/$(bindir)
> ln -sf $(datadir)/bibus/bibusStart.py $(PKGDIR)/$(bindir)/bibus
> chmod 755 $(PKGDIR)/$(datadir)/bibus/bibusStart.py
48,49c49,50
< install -m755 -d $(datadir)/doc/bibus
< install -m644 Docs/*.txt Docs/CHANGELOG Docs/copying $(datadir)/doc/bibus
---
> install -m755 -d $(PKGDIR)/$(docdir)
> install -m644 Docs/*.txt Docs/CHANGELOG Docs/copying $(PKGDIR)/$(docdir)
52,60c53,61
< echo '[PATH]' > $(datadir)/bibus/bibus.cfg
< echo 'python = $(python)' >> $(datadir)/bibus/bibus.cfg
< echo 'oopath = $(oopath)' >> $(datadir)/bibus/bibus.cfg
< echo 'ooure = $(ooure)' >> $(datadir)/bibus/bibus.cfg
< echo 'oobasis = $(oobasis)' >> $(datadir)/bibus/bibus.cfg
< echo 'docdir = $(datadir)/doc/bibus/html' >> $(datadir)/bibus/bibus.cfg
< echo 'licence = $(datadir)/doc/bibus/copying' >> $(datadir)/bibus/bibus.cfg
< echo 'localedir = $(datadir)/locale' >> $(datadir)/bibus/bibus.cfg
< echo 'systemconf = $(sysconfdir)/bibus.config' >> $(datadir)/bibus/bibus.cfg
---
> echo '[PATH]' > $(PKGDIR)/$(datadir)/bibus/bibus.cfg
> echo 'python = $(python)' >> $(PKGDIR)/$(datadir)/bibus/bibus.cfg
> echo 'oopath = $(oopath)' >> $(PKGDIR)/$(datadir)/bibus/bibus.cfg
> echo 'ooure = $(ooure)' >> $(PKGDIR)/$(datadir)/bibus/bibus.cfg
> echo 'oobasis = $(oobasis)' >> $(PKGDIR)/$(datadir)/bibus/bibus.cfg
> echo 'docdir = $(docdir)/html' >> $(PKGDIR)/$(datadir)/bibus/bibus.cfg
> echo 'licence = $(docdir)/copying' >> $(PKGDIR)/$(datadir)/bibus/bibus.cfg
> echo 'localedir = $(datadir)/locale' >> $(PKGDIR)/$(datadir)/bibus/bibus.cfg
> echo 'systemconf = $(sysconfdir)/bibus.config' >> $(PKGDIR)/$(datadir)/bibus/bibus.cfg
66c67
< find html/en/* -type f -exec install -m644 '{}' -D $(datadir)/doc/bibus/'{}' ';'
---
> find html/en/* -type f -exec install -m644 '{}' -D $(PKGDIR)/$(docdir)/'{}' ';'
71,72c72,73
< $(python) -c "import compileall ; compileall.compile_dir('$(datadir)/bibus')"
< $(python) -O -c "import compileall ; compileall.compile_dir('$(datadir)/bibus')"
---
> $(python) -c "import compileall ; compileall.compile_dir('$(PKGDIR)/$(datadir)/bibus')"
> $(python) -O -c "import compileall ; compileall.compile_dir('$(PKGDIR)/$(datadir)/bibus')"
86,97c87,98
< # write uninstaller in $(datadir)/bibus/Setup/uninstall.sh
< echo "#!/bin/sh" > $(datadir)/bibus/Setup/uninstall.sh
< echo "rm -rf $(datadir)/bibus" >> $(datadir)/bibus/Setup/uninstall.sh
< echo "rm $(bindir)/bibus" >> $(datadir)/bibus/Setup/uninstall.sh
< echo "find $(datadir)/locale -name bibus.mo -exec rm -f {} \;" >> $(datadir)/bibus/Setup/uninstall.sh
< echo "rm $(sysconfdir)/bibus.config" >> $(datadir)/bibus/Setup/uninstall.sh
< echo "rm $(man1dir)/bibus.1" >> $(datadir)/bibus/Setup/uninstall.sh
< echo "rm -rf $(datadir)/doc/bibus" >> $(datadir)/bibus/Setup/uninstall.sh
< echo "rm $(datadir)/applications/bibus.desktop" >> $(datadir)/bibus/Setup/uninstall.sh
< echo "rm $(datadir)/icons/hicolor/48x48/apps/bibus.png" >> $(datadir)/bibus/Setup/uninstall.sh
< chmod 744 $(datadir)/bibus/Setup/uninstall.sh
< # end uninstaller
---
> # # write uninstaller in $(datadir)/bibus/Setup/uninstall.sh
> # echo "#!/bin/sh" > $(PKGDIR)/$(datadir)/bibus/Setup/uninstall.sh
> # echo "rm -rf $(datadir)/bibus" >> $(PKGDIR)/$(datadir)/bibus/Setup/uninstall.sh
> # echo "rm $(bindir)/bibus" >> $(PKGDIR)/$(datadir)/bibus/Setup/uninstall.sh
> # echo "find $(datadir)/locale -name bibus.mo -exec rm -f {} \;" >> $(PKGDIR)/$(datadir)/bibus/Setup/uninstall.sh
> # echo "rm $(sysconfdir)/bibus.config" >> $(datadir)/bibus/Setup/uninstall.sh
> # echo "rm $(man1dir)/bibus.1" >> $(PKGDIR)/$(datadir)/bibus/Setup/uninstall.sh
> # echo "rm -rf $(docdir)" >> $(PKGDIR)/$(datadir)/bibus/Setup/uninstall.sh
> # echo "rm $(datadir)/applications/bibus.desktop" >> $(PKGDIR)/$(datadir)/bibus/Setup/uninstall.sh
> # echo "rm $(datadir)/icons/hicolor/48x48/apps/bibus.png" >> $(PKGDIR)/$(datadir)/bibus/Setup/uninstall.sh
> # chmod 744 $(datadir)/bibus/Setup/uninstall.sh
> # # end uninstaller
|