From 8b03bd4bad5835093ff44834251ba0e9cdad54be Mon Sep 17 00:00:00 2001 From: Patrick McLean Date: Thu, 20 Feb 2020 15:26:11 -0800 Subject: app-vim/vim-nftables: New package Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Patrick McLean --- app-vim/vim-nftables/Manifest | 1 + ...vim-nftables-0_pre20200220-extra-keywords.patch | 22 ++++++++++++++++++ app-vim/vim-nftables/metadata.xml | 11 +++++++++ .../vim-nftables/vim-nftables-0_pre20200220.ebuild | 27 ++++++++++++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 app-vim/vim-nftables/Manifest create mode 100644 app-vim/vim-nftables/files/vim-nftables-0_pre20200220-extra-keywords.patch create mode 100644 app-vim/vim-nftables/metadata.xml create mode 100644 app-vim/vim-nftables/vim-nftables-0_pre20200220.ebuild diff --git a/app-vim/vim-nftables/Manifest b/app-vim/vim-nftables/Manifest new file mode 100644 index 000000000000..7cda0a9521b1 --- /dev/null +++ b/app-vim/vim-nftables/Manifest @@ -0,0 +1 @@ +DIST vim-nftables-0_pre20200220.tar.gz 2419 BLAKE2B 7ee16e013f0873f5bd5d1e6beb3c824eabe38b759145a20aa0c9bb16b0abbb640d10eed59ffdc77ae0b4a7091158cc6d732cdec2589886edf52a8f6574f1145e SHA512 061b4410f261ea5449c366261ff8b3fd9ab15995ab73ac2f77a6de58e0d8764a0828973cbde152eb637f4bc6a8882c56efecdda65c7ecd6ca69df4f92fd190fe 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 new file mode 100644 index 000000000000..b06349115788 --- /dev/null +++ b/app-vim/vim-nftables/files/vim-nftables-0_pre20200220-extra-keywords.patch @@ -0,0 +1,22 @@ +From e378b1484a85399032ff32d86ad2a5bde936762f Mon Sep 17 00:00:00 2001 +From: adrian5 +Date: Mon, 17 Feb 2020 22:13:50 +0100 +Subject: [PATCH] Add icmpv6 keyword + +--- + syntax/nftables.vim | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/syntax/nftables.vim b/syntax/nftables.vim +index c80eb9d..d5d0e3f 100644 +--- a/syntax/nftables.vim ++++ b/syntax/nftables.vim +@@ -23,7 +23,7 @@ syn keyword Function table chain + syn keyword Statement type hook + syn keyword Type ip ip6 inet arp bridge + syn keyword Type filter nat route +-syn keyword Type ether vlan arp ip ip6 tcp udp udplite sctp dccp ah esp ipcomp icmp ++syn keyword Type ether vlan arp ip ip6 tcp udp udplite sctp dccp ah esp ipcomp icmp icmpv6 igmp + syn keyword Type ct + syn keyword Type length protocol priority mark iif iifname iiftype oif oifname oiftype skuid skgid rtclassid + syn keyword Constant prerouting input forward output postrouting diff --git a/app-vim/vim-nftables/metadata.xml b/app-vim/vim-nftables/metadata.xml new file mode 100644 index 000000000000..0172dae3d8ef --- /dev/null +++ b/app-vim/vim-nftables/metadata.xml @@ -0,0 +1,11 @@ + + + + + chutzpah@gentoo.org + Patrick McLean + + + vim@gentoo.org + + diff --git a/app-vim/vim-nftables/vim-nftables-0_pre20200220.ebuild b/app-vim/vim-nftables/vim-nftables-0_pre20200220.ebuild new file mode 100644 index 000000000000..779cf1310579 --- /dev/null +++ b/app-vim/vim-nftables/vim-nftables-0_pre20200220.ebuild @@ -0,0 +1,27 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit vim-plugin + +COMMIT_ID="aad8540ef56f495baa589f646edc1253db990f1a" + +DESCRIPTION="vim plugin: " +HOMEPAGE="https://github.com/nfnty/vim-nftables" +SRC_URI="https://github.com/nfnty/${PN}/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${COMMIT_ID}" + +LICENSE="MIT" +KEYWORDS="~amd64 ~x86" + +PATCHES=( + "${FILESDIR}/vim-nftables-0_pre20200220-extra-keywords.patch" +) + +src_prepare() { + default + + # will install license file by default + rm LICENSE || die +} -- cgit v1.2.3-65-gdbad