Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 75046
Collapse All | Expand All

(-)mDNSResponder.orig/mDNSPosix/Makefile (-26 / +17 lines)
Lines 352-358 Link Here
352
352
353
all: setup Daemon libdns_sd Client Responder ProxyResponder Identify NetMonitor dnsextd $(OPTIONALTARG)
353
all: setup Daemon libdns_sd Client Responder ProxyResponder Identify NetMonitor dnsextd $(OPTIONALTARG)
354
354
355
install: setup InstalledDaemon InstalledLib InstalledStartup InstalledManPages $(OPTINSTALL)
355
install: setup InstalledDaemon InstalledLib InstalledManPages $(OPTINSTALL)
356
356
357
# 'setup' sets up the build directory structure the way we want
357
# 'setup' sets up the build directory structure the way we want
358
setup:
358
setup:
Lines 401-436 Link Here
401
#############################################################################
401
#############################################################################
402
402
403
# The Install targets place built stuff in their proper places
403
# The Install targets place built stuff in their proper places
404
InstalledDaemon: $(INSTBASE)/sbin/mdnsd
404
InstalledDaemon: ${DESTDIR}/$(INSTBASE)/sbin/mdnsd
405
	@echo $+ " installed"
405
	@echo $+ " installed"
406
406
407
InstalledLib: $(INSTBASE)/lib/libdns_sd.$(LDSUFFIX).$(LIBVERS) $(INSTBASE)/include/dns_sd.h
407
InstalledLib: ${DESTDIR}/$(INSTBASE)/lib/libdns_sd.$(LDSUFFIX).$(LIBVERS) ${DESTDIR}/$(INSTBASE)/include/dns_sd.h
408
	@echo $+ " installed"
408
	@echo $+ " installed"
409
409
410
InstalledStartup: $(STARTUPSCRIPTDIR)/$(STARTUPSCRIPTNAME)
410
InstalledStartup: ${DESTDIR}/$(STARTUPSCRIPTDIR)/$(STARTUPSCRIPTNAME)
411
	@echo $+ " installed"
411
	@echo $+ " installed"
412
412
413
InstalledNSS: $(NSSINSTPATH)/$(NSSLINKNAME) /etc/nss_mdns.conf $(MANPATH)/man5/nss_mdns.conf.5 $(MANPATH)/man8/libnss_mdns.8
413
InstalledNSS: ${DESTDIR}/$(NSSINSTPATH)/$(NSSLINKNAME) ${DESTDIR}/etc/nss_mdns.conf ${DESTDIR}/$(MANPATH)/man5/nss_mdns.conf.5 ${DESTDIR}/$(MANPATH)/man8/libnss_mdns.8
414
	@echo $+ " installed"
414
	@echo $+ " installed"
415
415
416
InstalledManPages: $(MANPATH)/man8/mdnsd.8
416
InstalledManPages: ${DESTDIR}/$(MANPATH)/man8/mdnsd.8
417
	@echo $+ " installed"
417
	@echo $+ " installed"
418
418
419
$(INSTBASE)/sbin/mdnsd: $(BUILDDIR)/mdnsd
419
${DESTDIR}/$(INSTBASE)/sbin/mdnsd: $(BUILDDIR)/mdnsd
420
	$(CP) $< $@
420
	$(CP) $< $@
421
421
422
$(INSTBASE)/lib/libdns_sd.$(LDSUFFIX).$(LIBVERS): $(BUILDDIR)/libdns_sd.$(LDSUFFIX)
422
${DESTDIR}/$(INSTBASE)/lib/libdns_sd.$(LDSUFFIX).$(LIBVERS): $(BUILDDIR)/libdns_sd.$(LDSUFFIX)
423
	$(CP) $< $@
423
	$(CP) $< $@
424
	$(LN) $@ $(INSTBASE)/lib/libdns_sd.$(LDSUFFIX)
424
	$(LN) $@ ${DESTDIR}/$(INSTBASE)/lib/libdns_sd.$(LDSUFFIX)
425
ifdef LDCONFIG
426
    # -m means 'merge into existing database', -R means 'rescan directories'
427
	$(LDCONFIG) -mR
428
endif
429
425
430
$(INSTBASE)/include/dns_sd.h: $(SHAREDDIR)/dns_sd.h
426
${DESTDIR}/$(INSTBASE)/include/dns_sd.h: $(SHAREDDIR)/dns_sd.h
431
	$(CP) $< $@
427
	$(CP) $< $@
432
428
433
$(STARTUPSCRIPTDIR)/$(STARTUPSCRIPTNAME): mdnsd.sh $(STARTUPSCRIPTDIR)
429
${DESTDIR}/$(STARTUPSCRIPTDIR)/$(STARTUPSCRIPTNAME): mdnsd.sh $(STARTUPSCRIPTDIR)
434
	$(CP) $< $@
430
	$(CP) $< $@
435
	chmod ugo+x $@
431
	chmod ugo+x $@
436
ifdef RUNLEVELSCRIPTSDIR
432
ifdef RUNLEVELSCRIPTSDIR
Lines 446-476 Link Here
446
endif
442
endif
447
endif
443
endif
448
444
449
$(NSSINSTPATH)/$(NSSLINKNAME): $(NSSINSTPATH)/$(NSSLIBFILE)
445
${DESTDIR}/$(NSSINSTPATH)/$(NSSLINKNAME): ${DESTDIR}/$(NSSINSTPATH)/$(NSSLIBFILE)
450
	$(LN) $< $@
446
	$(LN) $< $@
451
	ldconfig
452
447
453
$(NSSINSTPATH)/$(NSSLIBFILE): $(BUILDDIR)/$(NSSLIBFILE)
448
${DESTDIR}/$(NSSINSTPATH)/$(NSSLIBFILE): $(BUILDDIR)/$(NSSLIBFILE)
454
	$(CP) $< $@
449
	$(CP) $< $@
455
	chmod 444 $@
450
	chmod 444 $@
456
451
457
/etc/nss_mdns.conf: nss_mdns.conf
452
${DESTDIR}/etc/nss_mdns.conf: nss_mdns.conf
458
	$(CP) $< $@
453
	$(CP) $< $@
459
	chmod 444 $@
454
	chmod 444 $@
460
	# Check the nsswitch.conf file.
461
	# If 'mdns' does not already appear on the "hosts:" line, then add it right before 'dns'
462
	cp -f /etc/nsswitch.conf /etc/nsswitch.conf.pre-mdns
463
	sed -e '/mdns/!s/^\(hosts:.*\)dns\(.*\)/\1mdns dns\2/' /etc/nsswitch.conf.pre-mdns > /etc/nsswitch.conf
464
455
465
$(MANPATH)/man5/%.5: %.5
456
${DESTDIR}/$(MANPATH)/man5/%.5: %.5
466
	cp $< $@
457
	cp $< $@
467
	chmod 444 $@
458
	chmod 444 $@
468
459
469
$(MANPATH)/man8/%.8: %.8
460
${DESTDIR}/$(MANPATH)/man8/%.8: %.8
470
	cp $< $@
461
	cp $< $@
471
	chmod 444 $@
462
	chmod 444 $@
472
463
473
$(MANPATH)/man8/mdnsd.8: $(SHAREDDIR)/mDNSResponder.8
464
${DESTDIR}/$(MANPATH)/man8/mdnsd.8: $(SHAREDDIR)/mDNSResponder.8
474
	cp $< $@
465
	cp $< $@
475
	chmod 444 $@
466
	chmod 444 $@
476
467

Return to bug 75046