ffa33dc552
Remove --localstatedir=/var from all autotools packages where it is no longer needed. Also remove --localstatedir=/var/lib/dhcp from package dhcp. localstatedir is used by dhcp to set the default directory for the leases files. This can also be done by setting --with-*-lease-file=/var/lib/dhcp/*, which is done in dhcp.mk. A custom --localstatedir is left in: * proftpd.mk * mysql.mk This is safe to do: One of the good thing with autoconf is that if you pass: --localstatedir=/var ... --localstatedir=/var/something Then /var/something will be used. So, we can set --localstatedir=/var by default in the infrastructure, and still have certain packages doing weird things override it. [Thanks to Thomas Petazzoni] Signed-off-by: Jörg Krause <jkrause@posteo.de> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
20 lines
588 B
Makefile
20 lines
588 B
Makefile
################################################################################
|
|
#
|
|
# nss-mdns
|
|
#
|
|
################################################################################
|
|
|
|
NSS_MDNS_VERSION = 0.10
|
|
NSS_MDNS_SITE = http://0pointer.de/lennart/projects/nss-mdns
|
|
NSS_MDNS_LICENSE = LGPLv2.1+
|
|
NSS_MDNS_LICENSE_FILES = LICENSE
|
|
|
|
define NSS_MDNS_INSTALL_CONFIG
|
|
sed -r -i -e 's/^(hosts:[[:space:]]+).*/\1files mdns4_minimal [NOTFOUND=return] dns mdns4/' \
|
|
$(TARGET_DIR)/etc/nsswitch.conf
|
|
endef
|
|
|
|
NSS_MDNS_POST_INSTALL_TARGET_HOOKS += NSS_MDNS_INSTALL_CONFIG
|
|
|
|
$(eval $(autotools-package))
|