Skip to content

Commit

Permalink
addpkg: fwknop
Browse files Browse the repository at this point in the history
  • Loading branch information
XieJiSS committed Nov 25, 2021
1 parent e0c59d0 commit 1028383
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
12 changes: 12 additions & 0 deletions fwknop/0000-fix-unknown-command.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- doc/libfko.texi 2021-11-25 21:48:55.888957565 +0800
+++ doc/libfko.texi 2021-11-25 21:50:19.738958709 +0800
@@ -4,9 +4,6 @@
@include version.texi
@settitle Firewall Knock Operator Library - libfko
@c @setchapternewpage odd
-@ifnothtml
-@setcontentsaftertitlepage
-@end ifnothtml
@finalout
@c Unify some of the indices.
@syncodeindex tp fn
27 changes: 27 additions & 0 deletions fwknop/riscv64.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
--- PKGBUILD
+++ PKGBUILD
@@ -17,12 +17,22 @@ backup=(etc/${pkgname}/access.conf
etc/${pkgname}/fwknopd.conf)
depends=('gpgme' 'iptables' 'libpcap' 'wget')
source=(https://cipherdyne.org/fwknop/download/fwknop-${pkgver}.tar.bz2{,.asc}
- fwknopd.service)
+ fwknopd.service
+ 0000-fix-unknown-command.patch)
sha512sums=('3fe0a7c673ebe3d417da9bf8e3c9a882181391ecc64d9f67e77e00a56f9f7bcec2c6d94dc51a5ee77a6c64a89f032a865dd304f1cb8ebb359580c70dc0cd374f'
'SKIP'
- 'a171682a054495bb10315e98a300ddbe4adf1f653b719d3344ecb6cfb8ccd15043cffbbd28304c4f15569a12ddcd9733409448d596f0c706e48d4fda2c877a6a')
+ 'a171682a054495bb10315e98a300ddbe4adf1f653b719d3344ecb6cfb8ccd15043cffbbd28304c4f15569a12ddcd9733409448d596f0c706e48d4fda2c877a6a'
+ 'f7d3a44679d0c1d0eb1cc67d7a81b980225e57b6fe7de51aab2f996e508a2bf88ce167b97ebc682373074f9d29835b567dc20200187dfe4b602ff58d0dc9f093')
validpgpkeys=('4D6644A9DA036904BDA2CB90E6C9E3350D3E7410') # Michael Rash (Signing key for cipherdyne.org projects) <mbr@cipherdyne.org>

+prepare() {
+ cd ${pkgname}-${pkgver}
+
+ # setcontentsaftertitlepage is deprecated, ref: https://www.gnu.org/software/texinfo/manual/texinfo/html_node/Obsolete-_0040_002dCommands.html
+ # see-also: https://www.mail-archive.com/m4-patches@gnu.org/msg01151.html
+ patch -p0 -i ../0000-fix-unknown-command.patch
+}
+
build() {
cd ${pkgname}-${pkgver}
CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common

0 comments on commit 1028383

Please sign in to comment.