aboutsummaryrefslogtreecommitdiff
path: root/avahi-daemon
AgeCommit message (Collapse)Author
2016-08-10ARG_MAX isn't a constant.Elliott Hughes
Use sysconf(_SC_ARG_MAX) instead. Change-Id: I0eb94fbb45d08dee769e47c4aa2266b67013cb5f
2016-06-09Move the hacked-up glob.h off bionic internals.Elliott Hughes
This file isn't upstream (in avahi, that is; obviously it's in FreeBSD), and can just be removed when we add <glob.h> to bionic. For now, since avahi actually wants all the functionality, just turn everything on. Change-Id: I878c61312e955f6813359f93b3d466d317f09968
2015-09-28Fix init filename.android-wear-n-preview-3android-wear-n-preview-2android-wear-n-preview-1android-n-preview-4android-n-preview-3android-n-preview-2android-n-preview-1n-preview-2brillo-m9-releasebrillo-m9-devbrillo-m8-releasebrillo-m8-devbrillo-m7-releasebrillo-m7-mr-devbrillo-m7-devbrillo-m10-releasebrillo-m10-devJorge Lucangeli Obes
Android is using <service>.rc instead of init.<service>.rc. Bug: 24465893 Change-Id: I5a451c8dcbf3c47ea983727f5cafc86abd0b44cc
2015-08-21Fix spelling of avahi-daemon targetAlex Vakulenko
This prevented avahi-daemon from building anything Change-Id: Icee9c6c55356b1f5d6cfd78f9bcb979af060be17
2015-08-21Assume size_t is defined everywhere __BIONIC__ is defined.Robert Ginda
This failed some builders which did not have a _SIZE_T_DECLARED macro but also did not have the __size_t symbol. Change-Id: Ifa69506afa07272dde64e234497094c1aed6a9a2
2015-08-20Disable tilde expansion on BIONICRobert Ginda
The issetugid function isn't defined in bionic, and we don't need it for avahi anyway. Change-Id: I427fd8f0a932618ea9a9672cc71e964ad0710ae4
2015-08-20Stop using LOCAL_INIT_SERVICE variable.Robert Ginda
Change-Id: I25f9669bb3d2bfd55dc30994b20c0610058c20fb
2015-08-14Add args, inet group, and a .PHONY target for our rc fileRobert Ginda
Add args to the avahi-daemon: --syslog: logs to syslog instead of STDERR --no-drop-root: We're not starting as root, so there's nothing to drop. Without this option, avahi complains that it wasn't started as root and exits. Add ourselves to the inet group so we can internet. Add a .PHONY target so the rc file is always regenerated. Otherwise, changes to the makefile that would invalidate previous build output would be ignored. Bug: 22827641 Change-Id: I727481f2bcf88908b7e25fbbe37a3421c33c5efe
2015-08-14Install avahi-daemon.confRobert Ginda
Bug: 22827641 Change-Id: Iac854de993b4e23affb50ea1522bcb9ed3b51c9c
2015-08-14Relax required definesRobert Ginda
Made the following preprocessor defines optional: DAVAHI_DAEMON_RUNTIME_DIR Used as the parent of the the PID file. If left undefined, we just don't make or clean up a PID file. This will still be required if you're building with chroot support. AVAHI_SOCKET This was used for a simpler-than-dbus IPC mechanism over a domain socket. Now if left undefined, this simple_protocol code is not compiled in. AVAHI_CONFIG_DIR Was used to set up inotify watches to restart on config changes. Our main config file will be on a read-only partition. The services config file is still being watched via the AVAHI_SERVICE_DIR macro. AVAHI_DBUS_INTROSPECTION_DIR Location of the dbus xml files describing the avahi api. Now if left undefined we'll fail to respond to an introspection request over dbus. Change-Id: I509dfa393d6d6f0a4cdaff9fefa01adbf9d4216b
2015-08-13Generate init.avahi-daemon.rc file.Robert Ginda
Bug: 22827641 Change-Id: Ic9b8b62e38cfad9e18313dfadb7d7f2f68084d89
2015-08-13Remove LOCAL_MODULE_TAGS vars, switch to SHARED libs.Robert Ginda
These components will have to be included in the PRODUCT_PACKAGES of products that want them. Switch avahi-common and avahi-core back to shared libs. Change-Id: I280fc308c71b8b89b0da29dc997852dbe5879c3b
2015-08-12Initial add of Android.mk files.Robert Ginda
These files were initially generated by the third party "androgenizer", but then updated and cleaned up by hand. The changes to the generated files were: * Hand edited some Android.mk files to add the lib prefix, changed build types, fix references to the dbus library. * Remove Android.mk files for avahi-glib and avahi-gobject since we're not going to need them. * Remove outdated LOCAL_PRELINK_MODULE variable. * Remove LOCAL_MODULE_TAGS from static modules. * Convert literal tabs to 4 spaces. * Dump a warning and exit from update_android_mk.sh, since we've diverged from the generated output. Change user/group (in config.h) from "avahi" to "system". Bug: 22827641 Change-Id: I84c3d7a96e091797f4380003045836f8183531ad
2015-08-11rename avahi-common/malloc.[ch] to avahi-malloc.Robert Ginda
This is to avoid clashing with the system malloc.h, which occurs in an android build beacause of the order of the generated includes. This change was generated with the script: cat > rename_malloc.sh <<EOF replace() { local search="$1" local replace="$2" FILES=$(grep -l "$search" $(find . -name '*.[ch]')) for file in $FILES; do echo $file sed "s|$search|$replace|" < $file > sed.tmp mv sed.tmp $file done } replace "include \"malloc.h\"" "include \"avahi-malloc.h\"" replace "include \"avahi-common/malloc.h\"" \ "include \"avahi-common/avahi-malloc.h\"" replace "include <avahi-common/malloc.h>" \ "include \"avahi-common/avahi-malloc.h\"" EOF Bug: 22827641 Change-Id: I1eeb4a57993650d8aae62f0686942cfac367b9a8
2015-08-11Apply patch 0001 from http://www.avahi.org/ticket/354Robert Ginda
This applies Apply patch 0001 from http://www.avahi.org/ticket/354 "Add support for building on Android", by "asoliverez_ccu". This patch is applied without modification. I used this just as a first step to generate initial Android.mk files. In the followup "Android.mk tweaks" CL, I hand hacked them into submission. The steps are committed as separate CLs in case someone needs to rerun or retrace them in the future. Bug: 22827641 Change-Id: Iaefdbd5aa2ea497e06ba25700a326073fbffc018
2013-03-11avahi-daemon: add option "host-name-from-machine-id="David Zeuthen
Signed-off-by: David Zeuthen <zeuthen@chromium.org>
2012-06-19build-sys: fix MKDIR_P for recent automakeMarc-Antoine Perennou
2012-04-02avahi-daemon: don't leak host info by defaultLennart Poettering
2012-04-02avahi-daemon: don't add 0pointer.de and zeroconf.org to default browse listLennart Poettering
2011-09-01systemd: syslog.target is not longer usefulLennart Poettering
2011-04-02systemd: fix sd_is_socket() invocationLennart Poettering
2011-03-09systemd: update sd-daemon.[ch]Lennart Poettering
2011-03-08chroot: suppress error messages if the chroot pipe is closedLennart Poettering
2011-02-18setproctitle: use defined() around __linux__ in #elifPaddy Smith
2010-11-18daemon: we better stay away from SIGQUIT since it is supposed to cause a ↵Lennart Poettering
core dump
2010-10-24systemd: update sd-daemon.[ch]Lennart Poettering
2010-10-05systemd: pull in avahi from dbus activation indirectly to make it possible ↵Lennart Poettering
to deactivate it
2010-10-05systemd: update sd-daemon.[ch]Lennart Poettering
2010-07-13main: fix minor indenting mishapLennart Poettering
2010-07-13systemd: update sd-daemon.[ch] from upśtreamLennart Poettering
2010-07-10daemon: unblock all signals by defaultLennart Poettering
2010-07-10systemd: send status message when shutting downLennart Poettering
2010-07-10daemon: reset signals on initializationLennart Poettering
2010-07-10daemon: return successful error code when we ran successfullyLennart Poettering
2010-07-10daemon: make sure we never choke on SIGPIPELennart Poettering
2010-07-10systemd: enable status messages by defaultLennart Poettering
2010-07-10systemd: properly format status messageLennart Poettering
2010-07-10systemd: update sd-daemon.[ch]Lennart Poettering
2010-07-10systemd: send status updates to the init systemLennart Poettering
2010-07-03systemd: simplify systemd unit files following the recent ↵Lennart Poettering
DefaultDependencies= changes
2010-06-30systemd: add description strings to all systemd services/socketsLennart Poettering
2010-06-29core: implement packet rate limiting and enable it by defaultLennart Poettering
2010-06-29main: don't abort if daemon_close_all() cannot close valgrind fdsLennart Poettering
2010-06-29main: fix minor memory leakLennart Poettering
2010-06-28dbus: allow root to set the host name unconditionallyLennart Poettering
2010-06-28static-services: unescape host name when using it in static service namesLennart Poettering
2010-06-28daemon: bump up resource limit of open file descriptors a littleLennart Poettering
This should allow more clients to query hsot names via the simple protocol. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=412256
2010-06-27build-sys: install systemd service filesLennart Poettering
2010-06-26dbus: move interfaces into standard D-Bus interfaces directoryLennart Poettering
http://avahi.org/ticket/268
2010-06-25daemon: don't include long prefix blurb in ssh-sftp.serviceLennart Poettering
The old service name describes the service type which can much better be described on the client side. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=389336