Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-vim/vim-nftables/files/, app-vim/vim-nftables/
Date: Thu, 20 Feb 2020 23:29:51
Message-Id: 1582241378.8b03bd4bad5835093ff44834251ba0e9cdad54be.chutzpah@gentoo
1 commit: 8b03bd4bad5835093ff44834251ba0e9cdad54be
2 Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
3 AuthorDate: Thu Feb 20 23:26:11 2020 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 20 23:29:38 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b03bd4b
7
8 app-vim/vim-nftables: New package
9
10 Copyright: Sony Interactive Entertainment Inc.
11 Package-Manager: Portage-2.3.89, Repoman-2.3.20
12 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
13
14 app-vim/vim-nftables/Manifest | 1 +
15 ...vim-nftables-0_pre20200220-extra-keywords.patch | 22 ++++++++++++++++++
16 app-vim/vim-nftables/metadata.xml | 11 +++++++++
17 .../vim-nftables/vim-nftables-0_pre20200220.ebuild | 27 ++++++++++++++++++++++
18 4 files changed, 61 insertions(+)
19
20 diff --git a/app-vim/vim-nftables/Manifest b/app-vim/vim-nftables/Manifest
21 new file mode 100644
22 index 00000000000..7cda0a9521b
23 --- /dev/null
24 +++ b/app-vim/vim-nftables/Manifest
25 @@ -0,0 +1 @@
26 +DIST vim-nftables-0_pre20200220.tar.gz 2419 BLAKE2B 7ee16e013f0873f5bd5d1e6beb3c824eabe38b759145a20aa0c9bb16b0abbb640d10eed59ffdc77ae0b4a7091158cc6d732cdec2589886edf52a8f6574f1145e SHA512 061b4410f261ea5449c366261ff8b3fd9ab15995ab73ac2f77a6de58e0d8764a0828973cbde152eb637f4bc6a8882c56efecdda65c7ecd6ca69df4f92fd190fe
27
28 diff --git a/app-vim/vim-nftables/files/vim-nftables-0_pre20200220-extra-keywords.patch b/app-vim/vim-nftables/files/vim-nftables-0_pre20200220-extra-keywords.patch
29 new file mode 100644
30 index 00000000000..b0634911578
31 --- /dev/null
32 +++ b/app-vim/vim-nftables/files/vim-nftables-0_pre20200220-extra-keywords.patch
33 @@ -0,0 +1,22 @@
34 +From e378b1484a85399032ff32d86ad2a5bde936762f Mon Sep 17 00:00:00 2001
35 +From: adrian5 <adrian5@××××××××××××××××××××.com>
36 +Date: Mon, 17 Feb 2020 22:13:50 +0100
37 +Subject: [PATCH] Add icmpv6 keyword
38 +
39 +---
40 + syntax/nftables.vim | 2 +-
41 + 1 file changed, 1 insertion(+), 1 deletion(-)
42 +
43 +diff --git a/syntax/nftables.vim b/syntax/nftables.vim
44 +index c80eb9d..d5d0e3f 100644
45 +--- a/syntax/nftables.vim
46 ++++ b/syntax/nftables.vim
47 +@@ -23,7 +23,7 @@ syn keyword Function table chain
48 + syn keyword Statement type hook
49 + syn keyword Type ip ip6 inet arp bridge
50 + syn keyword Type filter nat route
51 +-syn keyword Type ether vlan arp ip ip6 tcp udp udplite sctp dccp ah esp ipcomp icmp
52 ++syn keyword Type ether vlan arp ip ip6 tcp udp udplite sctp dccp ah esp ipcomp icmp icmpv6 igmp
53 + syn keyword Type ct
54 + syn keyword Type length protocol priority mark iif iifname iiftype oif oifname oiftype skuid skgid rtclassid
55 + syn keyword Constant prerouting input forward output postrouting
56
57 diff --git a/app-vim/vim-nftables/metadata.xml b/app-vim/vim-nftables/metadata.xml
58 new file mode 100644
59 index 00000000000..0172dae3d8e
60 --- /dev/null
61 +++ b/app-vim/vim-nftables/metadata.xml
62 @@ -0,0 +1,11 @@
63 +<?xml version="1.0" encoding="UTF-8"?>
64 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
65 +<pkgmetadata>
66 + <maintainer type="person">
67 + <email>chutzpah@g.o</email>
68 + <name>Patrick McLean</name>
69 + </maintainer>
70 + <maintainer type="project">
71 + <email>vim@g.o</email>
72 + </maintainer>
73 +</pkgmetadata>
74
75 diff --git a/app-vim/vim-nftables/vim-nftables-0_pre20200220.ebuild b/app-vim/vim-nftables/vim-nftables-0_pre20200220.ebuild
76 new file mode 100644
77 index 00000000000..779cf131057
78 --- /dev/null
79 +++ b/app-vim/vim-nftables/vim-nftables-0_pre20200220.ebuild
80 @@ -0,0 +1,27 @@
81 +# Copyright 2020 Gentoo Authors
82 +# Distributed under the terms of the GNU General Public License v2
83 +
84 +EAPI=7
85 +
86 +inherit vim-plugin
87 +
88 +COMMIT_ID="aad8540ef56f495baa589f646edc1253db990f1a"
89 +
90 +DESCRIPTION="vim plugin: "
91 +HOMEPAGE="https://github.com/nfnty/vim-nftables"
92 +SRC_URI="https://github.com/nfnty/${PN}/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
93 +S="${WORKDIR}/${PN}-${COMMIT_ID}"
94 +
95 +LICENSE="MIT"
96 +KEYWORDS="~amd64 ~x86"
97 +
98 +PATCHES=(
99 + "${FILESDIR}/vim-nftables-0_pre20200220-extra-keywords.patch"
100 +)
101 +
102 +src_prepare() {
103 + default
104 +
105 + # will install license file by default
106 + rm LICENSE || die
107 +}