Created
July 31, 2018 17:32
-
-
Save kylemanna/b403bfa8ab53bb1f69c44cd97c2cb4fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
post_install() { | |
cat << 'EOM' | |
==> To enable IPv4 multicast DNS lookups, append 'mdns4' to the hosts line | |
in /etc/nsswitch.conf. Use 'mdns6' for IPv6 or 'mdns' for both. | |
EOM | |
} | |
post_upgrade() { | |
if [ "$2" == "0.7-1" ]; then | |
echo -n "disabling mdns lookups in /etc/nsswitch.conf... " | |
sed -i -e '/^hosts: / s/ mdns\([46]\)\?\>//g' etc/nsswitch.conf && echo "done." | |
fi | |
cat << 'EOM' | |
==> Please note that due to security reasons from version 0.9 on the | |
minimal mDNS stack included in nss-mdns (dubbed "legacy") is no | |
longer built - nss-mdns will not work unless Avahi is running. | |
EOM | |
post_install | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id$ | |
# Maintainer: Tom Gundersen <teg@jklm.no> | |
# Contributor: Travis Willard <travis@archlinux.org> | |
pkgname=nss-mdns | |
pkgver=0.14.1 | |
pkgrel=1 | |
pkgdesc="glibc plugin providing host name resolution via mDNS" | |
arch=('x86_64') | |
url="http://0pointer.de/lennart/projects/nss-mdns/" | |
license=('LGPL') | |
depends=('glibc') | |
install=nss-mdns.install | |
source=("http://pkgs.fedoraproject.org/repo/pkgs/nss-mdns/nss-mdns-$pkgver.tar.gz/sha512/7c06b984443881a6c0a1f850ee33f14780562cc6168fe1cda176303eb799ece510d51d3830928616723bb95250ad6462978cd8b857f2b79d87116da2c1aeaa5e/nss-mdns-$pkgver.tar.gz") | |
sha512sums=('7c06b984443881a6c0a1f850ee33f14780562cc6168fe1cda176303eb799ece510d51d3830928616723bb95250ad6462978cd8b857f2b79d87116da2c1aeaa5e') | |
build() { | |
cd "${srcdir}"/${pkgname}-${pkgver} | |
./configure \ | |
--prefix=/usr \ | |
--sysconfdir=/etc \ | |
--localstatedir=/var \ | |
--disable-lynx | |
make | |
} | |
package() { | |
cd "${srcdir}"/${pkgname}-${pkgver} | |
make DESTDIR="${pkgdir}" install | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment