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
105
|
diff -ur avahi-0.6.30.orig/avahi-python/avahi/Makefile.am avahi-0.6.30/avahi-python/avahi/Makefile.am
--- avahi-0.6.30.orig/avahi-python/avahi/Makefile.am 2010-06-29 06:30:34.000000000 +0300
+++ avahi-0.6.30/avahi-python/avahi/Makefile.am 2012-01-16 00:07:41.159974487 +0200
@@ -31,7 +31,7 @@
-e 's,@FIRST_KEY\@,key = self.db.firstkey(),g' \
-e 's,@CHECK_KEY\@,while key is not None:,g' \
-e 's,@NEXT_KEY\@,key = self.db.nextkey(key),g' \
- -e 's,@pkglibdir\@,$(pkglibdir),g' $< > $@ && \
+ -e 's,@pkgdatadir\@,$(pkgdatadir),g' $< > $@ && \
chmod +x $@
endif
@@ -44,7 +44,7 @@
-e 's,@FIRST_KEY\@,keys = self.db.keys(),g' \
-e 's,@CHECK_KEY\@,for key in keys:,g' \
-e 's,@NEXT_KEY\@,,g' \
- -e 's,@pkglibdir\@,$(pkglibdir),g' $< > $@ && \
+ -e 's,@pkgdatadir\@,$(pkgdatadir),g' $< > $@ && \
chmod +x $@
endif
diff -ur avahi-0.6.30.orig/avahi-python/avahi/ServiceTypeDatabase.py.in avahi-0.6.30/avahi-python/avahi/ServiceTypeDatabase.py.in
--- avahi-0.6.30.orig/avahi-python/avahi/ServiceTypeDatabase.py.in 2010-06-29 06:30:34.000000000 +0300
+++ avahi-0.6.30/avahi-python/avahi/ServiceTypeDatabase.py.in 2012-01-16 00:05:13.440986312 +0200
@@ -26,7 +26,7 @@
class ServiceTypeDatabase:
"""ServiceTypeDatabase maps service types to descriptions"""
- def __init__(self, filename = "@pkglibdir@/service-types.db"):
+ def __init__(self, filename = "@pkgdatadir@/service-types.db"):
self.db = @DBM@.open(filename, "r")
diff -ur avahi-0.6.30.orig/avahi-ui/Makefile.am avahi-0.6.30/avahi-ui/Makefile.am
--- avahi-0.6.30.orig/avahi-ui/Makefile.am 2010-06-29 06:30:35.000000000 +0300
+++ avahi-0.6.30/avahi-ui/Makefile.am 2012-01-16 00:08:41.330969679 +0200
@@ -62,18 +62,18 @@
if HAVE_GDBM
libavahi_ui_la_SOURCES += ../avahi-utils/stdb.h ../avahi-utils/stdb.c
-libavahi_ui_la_CFLAGS += -DDATABASE_FILE=\"$(pkglibdir)/service-types.db\"
+libavahi_ui_la_CFLAGS += -DDATABASE_FILE=\"$(pkgdatadir)/service-types.db\"
libavahi_ui_la_LIBADD += -lgdbm
-libavahi_ui_gtk3_la_CFLAGS += -DDATABASE_FILE=\"$(pkglibdir)/service-types.db\"
+libavahi_ui_gtk3_la_CFLAGS += -DDATABASE_FILE=\"$(pkgdatadir)/service-types.db\"
libavahi_ui_gtk3_la_LIBADD += -lgdbm
endif
if HAVE_DBM
libavahi_ui_la_SOURCES += ../avahi-utils/stdb.h ../avahi-utils/stdb.c
-libavahi_ui_la_CFLAGS += -DDATABASE_FILE=\"$(pkglibdir)/service-types.db\"
+libavahi_ui_la_CFLAGS += -DDATABASE_FILE=\"$(pkgdatadir)/service-types.db\"
-libavahi_ui_gtk3_la_CFLAGS += -DDATABASE_FILE=\"$(pkglibdir)/service-types.db\"
+libavahi_ui_gtk3_la_CFLAGS += -DDATABASE_FILE=\"$(pkgdatadir)/service-types.db\"
endif
bin_PROGRAMS = bssh
diff -ur avahi-0.6.30.orig/avahi-utils/Makefile.am avahi-0.6.30/avahi-utils/Makefile.am
--- avahi-0.6.30.orig/avahi-utils/Makefile.am 2010-06-29 06:30:35.000000000 +0300
+++ avahi-0.6.30/avahi-utils/Makefile.am 2012-01-16 00:09:17.816966708 +0200
@@ -30,13 +30,13 @@
if HAVE_GDBM
avahi_browse_SOURCES += stdb.h stdb.c
-avahi_browse_CFLAGS += -DDATABASE_FILE=\"$(pkglibdir)/service-types.db\"
+avahi_browse_CFLAGS += -DDATABASE_FILE=\"$(pkgdatadir)/service-types.db\"
avahi_browse_LDADD += -lgdbm
endif
if HAVE_DBM
avahi_browse_SOURCES += stdb.h stdb.c
-avahi_browse_CFLAGS += -DDATABASE_FILE=\"$(pkglibdir)/service-types.db\"
+avahi_browse_CFLAGS += -DDATABASE_FILE=\"$(pkgdatadir)/service-types.db\"
endif
avahi_resolve_SOURCES = avahi-resolve.c sigint.c sigint.h
diff -ur avahi-0.6.30.orig/service-type-database/Makefile.am avahi-0.6.30/service-type-database/Makefile.am
--- avahi-0.6.30.orig/service-type-database/Makefile.am 2010-06-29 06:30:35.000000000 +0300
+++ avahi-0.6.30/service-type-database/Makefile.am 2012-01-16 00:10:53.704959089 +0200
@@ -18,13 +18,12 @@
EXTRA_DIST=build-db.in service-types
pkgdata_DATA=service-types
-pkglib_DATA=
if HAVE_PYTHON
if HAVE_GDBM
noinst_SCRIPTS=build-db
-pkglib_DATA+=service-types.db
+pkgdata_DATA+=service-types.db
build-db: build-db.in
$(AM_V_GEN)sed -e 's,@PYTHON\@,$(PYTHON),g' \
@@ -41,7 +40,7 @@
if HAVE_DBM
noinst_SCRIPTS=build-db
-pkglib_DATA+=service-types.db.pag service-types.db.dir
+pkgdata_DATA+=service-types.db.pag service-types.db.dir
build-db: build-db.in
$(AM_V_GEN)sed -e 's,@PYTHON\@,$(PYTHON),g' \
|