blob: 973a2b555a273bdd8f4249c6702a8d0b2a031716 (
plain)
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
|
# $Id$
#
# This file is part of avahi.
#
# avahi is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# avahi is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with avahi; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.
AM_CFLAGS=-I$(top_srcdir)
# This cool debug trap works on i386/gcc only
AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")'
if HAVE_LIBDAEMON
if HAVE_EXPAT
pkgsysconfdir=$(sysconfdir)/avahi
servicedir=$(pkgsysconfdir)/services
introspectiondir=$(pkgdatadir)/introspection
AM_CFLAGS+= \
-DAVAHI_DAEMON_RUNTIME_DIR=\"$(avahi_runtime_dir)/avahi-daemon/\" \
-DAVAHI_SOCKET=\"$(avahi_socket)\" \
-DAVAHI_SERVICE_DIR=\"$(servicedir)\" \
-DAVAHI_CONFIG_FILE=\"$(pkgsysconfdir)/avahi-daemon.conf\" \
-DAVAHI_HOSTS_FILE=\"$(pkgsysconfdir)/hosts\" \
-DAVAHI_DBUS_INTROSPECTION_DIR=\"$(introspectiondir)\" \
-DAVAHI_CONFIG_DIR=\"$(pkgsysconfdir)\"
sbin_PROGRAMS = \
avahi-daemon
if ENABLE_TESTS
noinst_PROGRAMS = \
ini-file-parser-test
endif
avahi_daemon_SOURCES = \
main.c main.h \
simple-protocol.c simple-protocol.h \
static-services.c static-services.h \
static-hosts.c static-hosts.h \
ini-file-parser.c ini-file-parser.h \
setproctitle.c setproctitle.h \
../avahi-client/check-nss.c
avahi_daemon_CFLAGS = $(AM_CFLAGS) $(LIBDAEMON_CFLAGS)
avahi_daemon_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la ../avahi-core/libavahi-core.la $(LIBDAEMON_LIBS) -lexpat
ini_file_parser_test_SOURCES = \
ini-file-parser.c ini-file-parser.h \
ini-file-parser-test.c
ini_file_parser_test_CFLAGS = $(AM_CFLAGS)
ini_file_parser_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la ../avahi-core/libavahi-core.la
pkgsysconf_DATA = \
avahi-daemon.conf \
hosts
service_DATA = \
ssh.service \
sftp-ssh.service
pkgdata_DATA = \
avahi-service.dtd
if ENABLE_CHROOT
avahi_daemon_SOURCES += \
chroot.c chroot.h \
caps.c caps.h
avahi_daemon_LDADD += -lcap
endif
if HAVE_DLOPEN
avahi_daemon_LDADD += -ldl
endif
if HAVE_DBUS
dbusservicedir=$(DBUS_SYS_DIR)
avahi_daemon_SOURCES += \
dbus-protocol.c dbus-protocol.h \
dbus-util.c dbus-util.h \
dbus-internal.h \
dbus-async-address-resolver.c \
dbus-async-host-name-resolver.c \
dbus-async-service-resolver.c \
dbus-domain-browser.c \
dbus-entry-group.c \
dbus-service-browser.c \
dbus-service-type-browser.c \
dbus-sync-address-resolver.c \
dbus-sync-host-name-resolver.c \
dbus-sync-service-resolver.c \
dbus-record-browser.c \
../avahi-common/dbus.c ../avahi-common/dbus.h \
../avahi-common/dbus-watch-glue.c ../avahi-common/dbus-watch-glue.h
avahi_daemon_LDADD += \
$(DBUS_LIBS)
avahi_daemon_CFLAGS += $(DBUS_CFLAGS)
dbusservice_DATA = avahi-dbus.conf
introspection_DATA = \
Server.introspect \
EntryGroup.introspect \
DomainBrowser.introspect \
ServiceTypeBrowser.introspect \
ServiceBrowser.introspect \
ServiceResolver.introspect \
AddressResolver.introspect \
HostNameResolver.introspect \
RecordBrowser.introspect
endif
endif
endif
EXTRA_DIST = \
avahi-service.dtd \
avahi-daemon.conf \
example.service \
avahi-dbus.conf \
Server.introspect \
EntryGroup.introspect \
DomainBrowser.introspect \
ServiceTypeBrowser.introspect \
ServiceBrowser.introspect \
ServiceResolver.introspect \
AddressResolver.introspect \
HostNameResolver.introspect \
RecordBrowser.introspect \
ssh.service \
sftp-ssh.service \
hosts \
example.service \
introspect.dtd \
introspect.xsl
xmllint:
xmllint --noout --valid example.service
for F in $(introspection_DATA) ; do \
xmllint --noout --valid $$F ; \
done
install-data-local:
test -z "$(localstatedir)/run" || $(mkdir_p) "$(DESTDIR)$(localstatedir)/run"
|