From 8d8b994cf9fd6f288ad5cb25ae707e014db0ae10 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Fri, 9 Sep 2011 12:39:42 +0200 Subject: nss-mdns: new package Signed-off-by: Michael Olbrich --- rules/nss-mdns.in | 13 +++++++++++ rules/nss-mdns.make | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 rules/nss-mdns.in create mode 100644 rules/nss-mdns.make diff --git a/rules/nss-mdns.in b/rules/nss-mdns.in new file mode 100644 index 000000000..4360b96ff --- /dev/null +++ b/rules/nss-mdns.in @@ -0,0 +1,13 @@ +## SECTION=networking + +config NSS_MDNS + tristate + select AVAHI + select AVAHI_DAEMON + prompt "nss-mdns" + help + nss-mdns is a plugin for the GNU Name Service Switch (NSS) + functionality of the GNU C Library (glibc) providing host name + resolution via Multicast DNS (aka Zeroconf, aka Apple Rendezvous, + aka Apple Bonjour), effectively allowing name resolution by + common Unix/Linux programs in the ad-hoc mDNS domain .local. diff --git a/rules/nss-mdns.make b/rules/nss-mdns.make new file mode 100644 index 000000000..9e9c70f67 --- /dev/null +++ b/rules/nss-mdns.make @@ -0,0 +1,66 @@ +# -*-makefile-*- +# +# Copyright (C) 2011 by Michael Olbrich +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_NSS_MDNS) += nss-mdns + +# +# Paths and names +# +NSS_MDNS_VERSION := 0.10 +NSS_MDNS_MD5 := 03938f17646efbb50aa70ba5f99f51d7 +NSS_MDNS := nss-mdns-$(NSS_MDNS_VERSION) +NSS_MDNS_SUFFIX := tar.gz +NSS_MDNS_URL := http://0pointer.de/lennart/projects/nss-mdns/$(NSS_MDNS).$(NSS_MDNS_SUFFIX) +NSS_MDNS_SOURCE := $(SRCDIR)/$(NSS_MDNS).$(NSS_MDNS_SUFFIX) +NSS_MDNS_DIR := $(BUILDDIR)/$(NSS_MDNS) +NSS_MDNS_LICENSE := LGPLv2.1+ + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +NSS_MDNS_CONF_TOOL := autoconf +NSS_MDNS_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + --disable-lynx \ + --enable-avahi \ + --disable-legacy + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/nss-mdns.targetinstall: + @$(call targetinfo) + + @$(call install_init, nss-mdns) + @$(call install_fixup, nss-mdns,PRIORITY,optional) + @$(call install_fixup, nss-mdns,SECTION,base) + @$(call install_fixup, nss-mdns,AUTHOR,"Michael Olbrich ") + @$(call install_fixup, nss-mdns,DESCRIPTION,missing) + + @$(call install_lib, nss-mdns, 0, 0, 0644, libnss_mdns) + @$(call install_lib, nss-mdns, 0, 0, 0644, libnss_mdns4) + @$(call install_lib, nss-mdns, 0, 0, 0644, libnss_mdns6) + @$(call install_lib, nss-mdns, 0, 0, 0644, libnss_mdns_minimal) + @$(call install_lib, nss-mdns, 0, 0, 0644, libnss_mdns4_minimal) + @$(call install_lib, nss-mdns, 0, 0, 0644, libnss_mdns6_minimal) + + @$(call install_finish, nss-mdns) + + @$(call touch) + +# vim: syntax=make -- cgit v1.2.3