diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2015-03-25 14:13:54 +0200 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2015-03-25 14:14:49 +0200 |
commit | 78c3ff3c64ddd48f408771f58b22c5030d5ca399 (patch) | |
tree | cc36777b2f64f775c8d2d3484fa90368ad9bf0af /main/augeas | |
parent | c01fda0e709162f47ecad9d38f34f300df48a223 (diff) | |
download | alpine_aports-78c3ff3c64ddd48f408771f58b22c5030d5ca399.tar.bz2 alpine_aports-78c3ff3c64ddd48f408771f58b22c5030d5ca399.tar.xz alpine_aports-78c3ff3c64ddd48f408771f58b22c5030d5ca399.zip |
main/augeas: Dns_Zone: allow whitespace at the end of line
Diffstat (limited to 'main/augeas')
-rw-r--r-- | main/augeas/0002-Dns_Zone-allow-whitespace-at-the-end-of-the-line.patch | 65 | ||||
-rw-r--r-- | main/augeas/APKBUILD | 6 |
2 files changed, 70 insertions, 1 deletions
diff --git a/main/augeas/0002-Dns_Zone-allow-whitespace-at-the-end-of-the-line.patch b/main/augeas/0002-Dns_Zone-allow-whitespace-at-the-end-of-the-line.patch new file mode 100644 index 0000000000..09be128581 --- /dev/null +++ b/main/augeas/0002-Dns_Zone-allow-whitespace-at-the-end-of-the-line.patch | |||
@@ -0,0 +1,65 @@ | |||
1 | From 796b2d796a7e05788d707f178383dc22f384563b Mon Sep 17 00:00:00 2001 | ||
2 | From: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | ||
3 | Date: Wed, 25 Mar 2015 12:23:05 +0200 | ||
4 | Subject: [PATCH 2/2] Dns_Zone: allow whitespace at the end of the line | ||
5 | |||
6 | --- | ||
7 | lenses/dns_zone.aug | 4 ++-- | ||
8 | lenses/tests/test_dns_zone.aug | 29 +++++++++++++++++++++++++++++ | ||
9 | 2 files changed, 31 insertions(+), 2 deletions(-) | ||
10 | |||
11 | diff --git a/lenses/dns_zone.aug b/lenses/dns_zone.aug | ||
12 | index 77c3485..4db194c 100644 | ||
13 | --- a/lenses/dns_zone.aug | ||
14 | +++ b/lenses/dns_zone.aug | ||
15 | @@ -16,8 +16,8 @@ module Dns_Zone = | ||
16 | |||
17 | autoload xfm | ||
18 | |||
19 | -let eol = del /(([ \t\n]*;[^\n]*)?\n)+/ "\n" | ||
20 | -let opt_eol = del /(([ \t\n]*;[^\n]*)?\n)*/ "" | ||
21 | +let eol = del /([ \t\n]*(;[^\n]*)?\n)+/ "\n" | ||
22 | +let opt_eol = del /([ \t\n]*(;[^\n]*)?\n)*/ "" | ||
23 | |||
24 | let ws = del /[ \t]+|(([ \t\n]*;[^\n]*)?\n)+[ \t]*/ " " | ||
25 | let opt_ws = del /(([ \t\n]*;[^\n]*)?\n)*[ \t]*/ "" | ||
26 | diff --git a/lenses/tests/test_dns_zone.aug b/lenses/tests/test_dns_zone.aug | ||
27 | index 07ff583..2537c4d 100644 | ||
28 | --- a/lenses/tests/test_dns_zone.aug | ||
29 | +++ b/lenses/tests/test_dns_zone.aug | ||
30 | @@ -353,3 +353,32 @@ bar TXT \"ab cd\\\\ef\\\"gh\" | ||
31 | { "$ORIGIN" = "example.com." } | ||
32 | { "foo" { "1" { "type" = "TXT" } { "rdata" = "abc\\\\def\\\"ghi" } } } | ||
33 | { "bar" { "1" { "type" = "TXT" } { "rdata" = "\"ab cd\\\\ef\\\"gh\"" } } } | ||
34 | + | ||
35 | + | ||
36 | +(* Whitespace at the end of the line *) | ||
37 | +test lns get " | ||
38 | +$ORIGIN example.com. \n@ IN SOA ns root.example.com. (1 2 3 4 5) \t | ||
39 | +foo 1D IN A 10.1.2.3\t | ||
40 | +" = | ||
41 | + { "$ORIGIN" = "example.com." } | ||
42 | + { "@" | ||
43 | + { "1" | ||
44 | + { "class" = "IN" } | ||
45 | + { "type" = "SOA" } | ||
46 | + { "mname" = "ns" } | ||
47 | + { "rname" = "root.example.com." } | ||
48 | + { "serial" = "1" } | ||
49 | + { "refresh" = "2" } | ||
50 | + { "retry" = "3" } | ||
51 | + { "expiry" = "4" } | ||
52 | + { "minimum" = "5" } | ||
53 | + } | ||
54 | + } | ||
55 | + { "foo" | ||
56 | + { "1" | ||
57 | + { "ttl" = "1D" } | ||
58 | + { "class" = "IN" } | ||
59 | + { "type" = "A" } | ||
60 | + { "rdata" = "10.1.2.3" } | ||
61 | + } | ||
62 | + } | ||
63 | -- | ||
64 | 2.1.0 | ||
65 | |||
diff --git a/main/augeas/APKBUILD b/main/augeas/APKBUILD index e0734f2de8..8c62950226 100644 --- a/main/augeas/APKBUILD +++ b/main/augeas/APKBUILD | |||
@@ -1,7 +1,7 @@ | |||
1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> | 1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> |
2 | pkgname=augeas | 2 | pkgname=augeas |
3 | pkgver=1.3.0 | 3 | pkgver=1.3.0 |
4 | pkgrel=3 | 4 | pkgrel=4 |
5 | pkgdesc="A configuration editing tool" | 5 | pkgdesc="A configuration editing tool" |
6 | url="http://augeas.net" | 6 | url="http://augeas.net" |
7 | arch="all" | 7 | arch="all" |
@@ -13,6 +13,7 @@ install="" | |||
13 | subpackages="$pkgname-dev $pkgname-doc $pkgname-tests $pkgname-libs" | 13 | subpackages="$pkgname-dev $pkgname-doc $pkgname-tests $pkgname-libs" |
14 | source="http://download.augeas.net/augeas-$pkgver.tar.gz | 14 | source="http://download.augeas.net/augeas-$pkgver.tar.gz |
15 | 0001-Dns_Zone-new-lens-to-parse-DNS-zone-files.patch | 15 | 0001-Dns_Zone-new-lens-to-parse-DNS-zone-files.patch |
16 | 0002-Dns_Zone-allow-whitespace-at-the-end-of-the-line.patch | ||
16 | 0001-Dnsmasq-add-structure-to-address-and-server-options.patch | 17 | 0001-Dnsmasq-add-structure-to-address-and-server-options.patch |
17 | 0001-Shellvars-allow-partial-quoting-mixing-multiple-styl.patch | 18 | 0001-Shellvars-allow-partial-quoting-mixing-multiple-styl.patch |
18 | 0002-Shellvars-allow-wrapping-loop-condition-to-multiple-.patch | 19 | 0002-Shellvars-allow-wrapping-loop-condition-to-multiple-.patch |
@@ -77,6 +78,7 @@ libs() { | |||
77 | 78 | ||
78 | md5sums="c8890b11a04795ecfe5526eeae946b2d augeas-1.3.0.tar.gz | 79 | md5sums="c8890b11a04795ecfe5526eeae946b2d augeas-1.3.0.tar.gz |
79 | cf358f5ff6c222cebd443922bf7ab51d 0001-Dns_Zone-new-lens-to-parse-DNS-zone-files.patch | 80 | cf358f5ff6c222cebd443922bf7ab51d 0001-Dns_Zone-new-lens-to-parse-DNS-zone-files.patch |
81 | e63c8127cf269ad6bb7756dbbf343b9d 0002-Dns_Zone-allow-whitespace-at-the-end-of-the-line.patch | ||
80 | b140791828aec2037c411164102ef8cd 0001-Dnsmasq-add-structure-to-address-and-server-options.patch | 82 | b140791828aec2037c411164102ef8cd 0001-Dnsmasq-add-structure-to-address-and-server-options.patch |
81 | 0b7d8ef1d472a1cd3b5742afcbc40c7b 0001-Shellvars-allow-partial-quoting-mixing-multiple-styl.patch | 83 | 0b7d8ef1d472a1cd3b5742afcbc40c7b 0001-Shellvars-allow-partial-quoting-mixing-multiple-styl.patch |
82 | 51c15f48a3086aedcb9b50c379396e9a 0002-Shellvars-allow-wrapping-loop-condition-to-multiple-.patch | 84 | 51c15f48a3086aedcb9b50c379396e9a 0002-Shellvars-allow-wrapping-loop-condition-to-multiple-.patch |
@@ -91,6 +93,7 @@ e48785687b03c48022426182fbba785e 0009-Shellvars-case-support-on-same-line-with- | |||
91 | 4bfc55219b2a1284b84c739951221f63 0011-Shellvars-allow-command-specific-environment-variabl.patch" | 93 | 4bfc55219b2a1284b84c739951221f63 0011-Shellvars-allow-command-specific-environment-variabl.patch" |
92 | sha256sums="80763031af76515a8ea66013ddc3c466742a15d2e907c7c8e2e3b7410262e2af augeas-1.3.0.tar.gz | 94 | sha256sums="80763031af76515a8ea66013ddc3c466742a15d2e907c7c8e2e3b7410262e2af augeas-1.3.0.tar.gz |
93 | f025c4cf27dee9c59a5f4a0eede5e4843c4b28cea0d7c32ed7f07181d71acb47 0001-Dns_Zone-new-lens-to-parse-DNS-zone-files.patch | 95 | f025c4cf27dee9c59a5f4a0eede5e4843c4b28cea0d7c32ed7f07181d71acb47 0001-Dns_Zone-new-lens-to-parse-DNS-zone-files.patch |
96 | 8bcd28d8f7a41e81933c3be5e61257c1e4188442156ca25459a4a3acfa25d5f8 0002-Dns_Zone-allow-whitespace-at-the-end-of-the-line.patch | ||
94 | 0cb29dfdef3f293c5a4db06704072a6672ce728c82d4b2a7260da341522efc37 0001-Dnsmasq-add-structure-to-address-and-server-options.patch | 97 | 0cb29dfdef3f293c5a4db06704072a6672ce728c82d4b2a7260da341522efc37 0001-Dnsmasq-add-structure-to-address-and-server-options.patch |
95 | 3824c87fca915f2ace1acbcbaed075d8e77268d239d5159aa8603907558f638f 0001-Shellvars-allow-partial-quoting-mixing-multiple-styl.patch | 98 | 3824c87fca915f2ace1acbcbaed075d8e77268d239d5159aa8603907558f638f 0001-Shellvars-allow-partial-quoting-mixing-multiple-styl.patch |
96 | e05119d39bba5dd49bf6fa887f38ba3825e308efd9e8dc491694414f740b9737 0002-Shellvars-allow-wrapping-loop-condition-to-multiple-.patch | 99 | e05119d39bba5dd49bf6fa887f38ba3825e308efd9e8dc491694414f740b9737 0002-Shellvars-allow-wrapping-loop-condition-to-multiple-.patch |
@@ -105,6 +108,7 @@ ef71befc9759945fc953b28c7e81db63057a58297c8dd9642d52ec12e77f105e 0008-Shellvars | |||
105 | 61bffc11faf4442f23c22b3a06c329284cfa75ca9db5d27b60ac528dbedc3ba3 0011-Shellvars-allow-command-specific-environment-variabl.patch" | 108 | 61bffc11faf4442f23c22b3a06c329284cfa75ca9db5d27b60ac528dbedc3ba3 0011-Shellvars-allow-command-specific-environment-variabl.patch" |
106 | sha512sums="92cc2cf83faa42e83621fe0f73fe9f7247d802f17da781e51d068056d20b1645de1f0ea0d5070c0d5729a3f6554d64a95e31111bf3e44b959386559619843e79 augeas-1.3.0.tar.gz | 109 | sha512sums="92cc2cf83faa42e83621fe0f73fe9f7247d802f17da781e51d068056d20b1645de1f0ea0d5070c0d5729a3f6554d64a95e31111bf3e44b959386559619843e79 augeas-1.3.0.tar.gz |
107 | f495b8f98b08489b46188b5fbd5c571409c323433cf246eeb8daac054b473e61ff39fdbc438b29a37d0435c24ec5720533d064e28d614dd7c520d2b68bef4c7d 0001-Dns_Zone-new-lens-to-parse-DNS-zone-files.patch | 110 | f495b8f98b08489b46188b5fbd5c571409c323433cf246eeb8daac054b473e61ff39fdbc438b29a37d0435c24ec5720533d064e28d614dd7c520d2b68bef4c7d 0001-Dns_Zone-new-lens-to-parse-DNS-zone-files.patch |
111 | 3459aec9948aa8aa80877ffa35b13799e6be818c267e7a60a293d87c908e71399ff3ad856e98da1d4cfbba65b034996384868db86297cf3977307d77c44bca64 0002-Dns_Zone-allow-whitespace-at-the-end-of-the-line.patch | ||
108 | f2cdf6fcd84de4f86bc54d89292d3c4c19070b1c6d5149af6a8d7c49678e2a7527b6549ad114e5ccec53d4d9582814153732f69a4c0228243aac96c48a0e1d1d 0001-Dnsmasq-add-structure-to-address-and-server-options.patch | 112 | f2cdf6fcd84de4f86bc54d89292d3c4c19070b1c6d5149af6a8d7c49678e2a7527b6549ad114e5ccec53d4d9582814153732f69a4c0228243aac96c48a0e1d1d 0001-Dnsmasq-add-structure-to-address-and-server-options.patch |
109 | 2a231a4f5db8c86b2710e83d4c74062a67980812df367276fc4876ccb01799881da98d95f0385972a7c229e83c18a758c67e7d5a9bef03fe8e3bd549136dcfc9 0001-Shellvars-allow-partial-quoting-mixing-multiple-styl.patch | 113 | 2a231a4f5db8c86b2710e83d4c74062a67980812df367276fc4876ccb01799881da98d95f0385972a7c229e83c18a758c67e7d5a9bef03fe8e3bd549136dcfc9 0001-Shellvars-allow-partial-quoting-mixing-multiple-styl.patch |
110 | af2c9021f4f1286e449b0bcb3e9bee781aa7b9be2835fd48cc3fe4e2ac50d4979af06edc6272fd4fc08eaa93a7e7cc77472ca6f9b093090443657630a6512b5a 0002-Shellvars-allow-wrapping-loop-condition-to-multiple-.patch | 114 | af2c9021f4f1286e449b0bcb3e9bee781aa7b9be2835fd48cc3fe4e2ac50d4979af06edc6272fd4fc08eaa93a7e7cc77472ca6f9b093090443657630a6512b5a 0002-Shellvars-allow-wrapping-loop-condition-to-multiple-.patch |