pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/openresolv /etc/resolv.conf is a file that holds t...
details: https://anonhg.NetBSD.org/pkgsrc/rev/bbf8630a6ed1
branches: trunk
changeset: 551478:bbf8630a6ed1
user: roy <roy%pkgsrc.org@localhost>
date: Tue Dec 16 14:57:58 2008 +0000
description:
/etc/resolv.conf is a file that holds the configuration for the local
resolution of domain names. Normally this file is either static or maintained
by a local daemon, normally a DHCP daemon. But what happens if more than one
thing wants to control the file? Say you have wired and wireless interfaces to
different subnets and run a VPN or two on top of that, how do you say which one
controls the file? It's also not as easy as just adding and removing the
nameservers each client knows about as different clients could add the same
nameservers.
Enter resolvconf, the middleman between the network configuration services and
/etc/resolv.conf. resolvconf itself is just a script that stores, removes and
lists a full resolv.conf generated for the interface. It then calls all the
helper scripts it knows about so it can configure the real /etc/resolv.conf
and optionally any local nameservers other can libc.
diffstat:
net/openresolv/DESCR | 14 ++++++++++++++
net/openresolv/MESSAGE | 4 ++++
net/openresolv/Makefile | 34 ++++++++++++++++++++++++++++++++++
net/openresolv/PLIST | 10 ++++++++++
net/openresolv/distinfo | 5 +++++
5 files changed, 67 insertions(+), 0 deletions(-)
diffs (87 lines):
diff -r 2e81e712cbb4 -r bbf8630a6ed1 net/openresolv/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/openresolv/DESCR Tue Dec 16 14:57:58 2008 +0000
@@ -0,0 +1,14 @@
+/etc/resolv.conf is a file that holds the configuration for the local
+resolution of domain names. Normally this file is either static or maintained
+by a local daemon, normally a DHCP daemon. But what happens if more than one
+thing wants to control the file? Say you have wired and wireless interfaces to
+different subnets and run a VPN or two on top of that, how do you say which one
+controls the file? It's also not as easy as just adding and removing the
+nameservers each client knows about as different clients could add the same
+nameservers.
+
+Enter resolvconf, the middleman between the network configuration services and
+/etc/resolv.conf. resolvconf itself is just a script that stores, removes and
+lists a full resolv.conf generated for the interface. It then calls all the
+helper scripts it knows about so it can configure the real /etc/resolv.conf
+and optionally any local nameservers other can libc.
diff -r 2e81e712cbb4 -r bbf8630a6ed1 net/openresolv/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/openresolv/MESSAGE Tue Dec 16 14:57:58 2008 +0000
@@ -0,0 +1,4 @@
+To ensure that resolvconf works correctly, you should ensure that
+${PREFIX} is available before any clients such as dhcpcd attempt to use it.
+On NetBSD, for example, you could do this by setting this in /etc/rc.conf
+critical_filesystems_local="/usr /var"
diff -r 2e81e712cbb4 -r bbf8630a6ed1 net/openresolv/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/openresolv/Makefile Tue Dec 16 14:57:58 2008 +0000
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/12/16 14:57:58 roy Exp $
+#
+
+DISTNAME= openresolv-2.0
+CATEGORIES= net
+MASTER_SITES= ftp://roy.marples.name/pub/openresolv/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= roy%marples.name@localhost
+HOMEPAGE= http://roy.marples.name/projects/openresolv/
+COMMENT= Framework for managing /etc/resolv.conf
+
+USE_LANGUAGES= # none
+
+PKG_DESTDIR_SUPPORT= user-destdir
+PKG_SYSCONFSUBDIR= resolvconf
+EGDIR= ${PREFIX}/share/examples/resolvconf
+
+MAKE_ENV+= MANDIR=${PREFIX}/${PKGMANDIR} \
+ SYSCONFDIR=${PKG_SYSCONFDIR}
+INSTALL_MAKE_FLAGS+= SYSCONFDIR=${EGDIR}
+
+OWN_DIRS= ${PKG_SYSCONFDIR}/update.d
+OWN_DIRS+= ${PKG_SYSCONFDIR}/resolv.conf.d
+CONF_FILES= ${EGDIR}/resolv.conf.d/head \
+ ${PKG_SYSCONFDIR}/resolv.conf.d/head
+
+CONF_FILES_PERMS=
+.for s in libc dnsmasq named
+CONF_FILES_PERMS+= ${EGDIR}/update.d/${s} ${PKG_SYSCONFDIR}/update.d/${s} \
+ ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0755
+.endfor
+
+.include "../../mk/bsd.pkg.mk"
diff -r 2e81e712cbb4 -r bbf8630a6ed1 net/openresolv/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/openresolv/PLIST Tue Dec 16 14:57:58 2008 +0000
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/12/16 14:57:58 roy Exp $
+man/man8/resolvconf.8
+sbin/resolvconf
+share/examples/resolvconf/resolv.conf.d/head
+share/examples/resolvconf/update.d/dnsmasq
+share/examples/resolvconf/update.d/libc
+share/examples/resolvconf/update.d/named
+@dirrm share/examples/resolvconf/resolv.conf.d
+@dirrm share/examples/resolvconf/update.d
+@dirrm share/examples/resolvconf
diff -r 2e81e712cbb4 -r bbf8630a6ed1 net/openresolv/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/openresolv/distinfo Tue Dec 16 14:57:58 2008 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/12/16 14:57:58 roy Exp $
+
+SHA1 (openresolv-2.0.tar.bz2) = 91cbbcae79686ae2b661e8e2dcf461809e9e200e
+RMD160 (openresolv-2.0.tar.bz2) = fdac1ae91c6ee5e36ae809570aae3d3310124b30
+Size (openresolv-2.0.tar.bz2) = 9211 bytes
Home |
Main Index |
Thread Index |
Old Index