add two new views (family and lookup) which aren't supported by the default
resolv.conf lens but that are supported by our resolv.conf.
This commit is contained in:
parent
8e11a40f49
commit
1f516b8197
@ -1,8 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2012/12/29 11:32:45 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.2 2012/12/29 13:19:27 jasper Exp $
|
||||
|
||||
COMMENT= configuration editing tool and API
|
||||
|
||||
DISTNAME= augeas-1.0.0
|
||||
REVISION= 0
|
||||
CATEGORIES= sysutils devel
|
||||
|
||||
SHARED_LIBS += augeas 0.0 # 16.0
|
||||
|
47
sysutils/augeas/patches/patch-lenses_resolv_aug
Normal file
47
sysutils/augeas/patches/patch-lenses_resolv_aug
Normal file
@ -0,0 +1,47 @@
|
||||
$OpenBSD: patch-lenses_resolv_aug,v 1.1 2012/12/29 13:19:27 jasper Exp $
|
||||
|
||||
From cadc9ccc9d03ab4112158051db7fad87c42741a3 Mon Sep 17 00:00:00 2001
|
||||
From: Jasper Lievisse Adriaanse <jasper@humppa.nl>
|
||||
Date: Sat, 29 Dec 2012 14:11:31 +0100
|
||||
Subject: [PATCH] Add two new views (family and lookup).
|
||||
|
||||
https://fedorahosted.org/augeas/ticket/320
|
||||
|
||||
--- lenses/resolv.aug.orig Sat Dec 29 14:15:29 2012
|
||||
+++ lenses/resolv.aug Sat Dec 29 14:15:40 2012
|
||||
@@ -71,6 +71,26 @@ let sortlist = Build.key_value_line_comment
|
||||
Sep.space)
|
||||
comment_eol
|
||||
|
||||
+(* View: lookup *)
|
||||
+let lookup =
|
||||
+ let lookup_entry = Build.flag("bind"|"file"|"yp")
|
||||
+ in Build.key_value_line_comment
|
||||
+ "lookup" Sep.space
|
||||
+ (Build.opt_list
|
||||
+ lookup_entry
|
||||
+ Sep.space)
|
||||
+ comment_eol
|
||||
+
|
||||
+(* View: family *)
|
||||
+let family =
|
||||
+ let family_entry = Build.flag("inet4"|"inet6")
|
||||
+ in Build.key_value_line_comment
|
||||
+ "family" Sep.space
|
||||
+ (Build.opt_list
|
||||
+ family_entry
|
||||
+ Sep.space)
|
||||
+ comment_eol
|
||||
+
|
||||
(************************************************************************
|
||||
* Group: SPECIAL OPTIONS
|
||||
*************************************************************************)
|
||||
@@ -104,6 +124,8 @@ let entry = nameserver
|
||||
| search
|
||||
| sortlist
|
||||
| options
|
||||
+ | lookup
|
||||
+ | family
|
||||
|
||||
(* View: lns *)
|
||||
let lns = ( empty | comment | entry )*
|
Loading…
x
Reference in New Issue
Block a user