Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: tirdad-0.1.20
@ 2022-01-10  2:09 gbeliako
  2022-01-10  2:14 ` [PR PATCH] [Updated] " gbeliako
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: gbeliako @ 2022-01-10  2:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1242 bytes --]

There is a new pull request by gbeliako against master on the void-packages repository

https://github.com/gbeliako/void-packages tirdad-branch
https://github.com/void-linux/void-packages/pull/34974

New package: tirdad-0.1.20
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!---->
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**


<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- x86_64-musl (crossbuild)
<!--   - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/34974.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-tirdad-branch-34974.patch --]
[-- Type: text/x-diff, Size: 3314 bytes --]

From 45ecbb1106e5c132118c9bbed67981e9a77eaf2c Mon Sep 17 00:00:00 2001
From: chaquen <void@cgps.xyz>
Date: Mon, 10 Jan 2022 13:06:25 +1100
Subject: [PATCH] New package: tirdad-0.1.20

---
 srcpkgs/tirdad/INSTALL            | 20 ++++++++++++++++++++
 srcpkgs/tirdad/REMOVE             |  2 ++
 srcpkgs/tirdad/patches/arch.patch | 19 +++++++++++++++++++
 srcpkgs/tirdad/template           | 26 ++++++++++++++++++++++++++
 4 files changed, 67 insertions(+)
 create mode 100644 srcpkgs/tirdad/INSTALL
 create mode 100644 srcpkgs/tirdad/REMOVE
 create mode 100644 srcpkgs/tirdad/patches/arch.patch
 create mode 100644 srcpkgs/tirdad/template

diff --git a/srcpkgs/tirdad/INSTALL b/srcpkgs/tirdad/INSTALL
new file mode 100644
index 000000000000..0a10ea4758f4
--- /dev/null
+++ b/srcpkgs/tirdad/INSTALL
@@ -0,0 +1,20 @@
+# INSTALL
+case "$ACTION" in
+pre)
+	# Actions to execute before the package files are unpacked.
+	;;
+post)
+	if [ "$UPDATE" = "yes" ]; then
+		# actions to execute if package is being updated.
+		sudo rmmod /etc/tirdad.ko
+		sudo insmod /etc/tirdad.ko
+	else
+		# actions to execute if package is being installed.
+		sudo insmod /etc/tirdad.ko
+		if ! grep -q tirdad "/etc/rc.local"; then
+			sudo echo "# Load tirdad module at boot to generate random TCP Initial Sequence Numbers" >> /etc/rc.local
+			sudo echo "insmod /etc/tirdad.ko" >> /etc/rc.local
+		fi
+	fi
+	;;
+esac
diff --git a/srcpkgs/tirdad/REMOVE b/srcpkgs/tirdad/REMOVE
new file mode 100644
index 000000000000..413922087c64
--- /dev/null
+++ b/srcpkgs/tirdad/REMOVE
@@ -0,0 +1,2 @@
+# REMOVE
+sudo sed -i '/tirdad/d' /etc/rc.local
diff --git a/srcpkgs/tirdad/patches/arch.patch b/srcpkgs/tirdad/patches/arch.patch
new file mode 100644
index 000000000000..13a1dd8c3a0f
--- /dev/null
+++ b/srcpkgs/tirdad/patches/arch.patch
@@ -0,0 +1,19 @@
+--- a/module/tirdad.c
++++ b/module/tirdad.c
+@@ -30,7 +30,15 @@
+ siphash_key_t last_secret;
+ 
+ unsigned long tcp_secure_seq_adr;
+-
++unsigned long __stack_chk_guard;
++void __stack_chk_guard_setup(void)
++{
++	     __stack_chk_guard = 0xBAAAAAAD;//provide some magic numbers
++}
++void __stack_chk_fail(void)                         
++{
++ /* Error message */                                 
++}// will be called when guard variable is corrupted 
+ #define AGGREGATE_KEY_SIZE	16
+ #define FUSION_SIZE		12
+ 
diff --git a/srcpkgs/tirdad/template b/srcpkgs/tirdad/template
new file mode 100644
index 000000000000..97adb236f06f
--- /dev/null
+++ b/srcpkgs/tirdad/template
@@ -0,0 +1,26 @@
+# Template file for 'tirdad'
+pkgname=tirdad
+version=0.1.20
+revision=1
+_realversion="${version}-1"
+#archs="i686 x86_64"
+wrksrc="${pkgname}-${_realversion}"
+#create_wrksrc=yes
+build_style=gnu-makefile
+#configure_args=""
+#make_build_args=""
+#make_install_args=""
+#conf_files=""
+#make_dirs="/var/log/dir 0755 root root"
+hostmakedepends="linux-headers gcc"
+#makedepends=""
+#depends=""
+short_desc="Tirdad is a kernel module to generate random TCP Initial Sequence Numbs"
+maintainer="Chaquen <void@cgps.xyz>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/Whonix/tirdad"
+distfiles="https://github.com/Whonix/tirdad/archive/refs/tags/${_realversion}.tar.gz"
+checksum=5e75b743cfca980a08a0696cb685c86dd42d6566ff557959292506bceaf1a86d
+do_install() {
+	vconf module/tirdad.ko
+}

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PR PATCH] [Updated] New package: tirdad-0.1.20
  2022-01-10  2:09 [PR PATCH] New package: tirdad-0.1.20 gbeliako
@ 2022-01-10  2:14 ` gbeliako
  2022-04-11  2:08 ` github-actions
  2022-06-21  2:13 ` [PR PATCH] [Closed]: " github-actions
  2 siblings, 0 replies; 4+ messages in thread
From: gbeliako @ 2022-01-10  2:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1247 bytes --]

There is an updated pull request by gbeliako against master on the void-packages repository

https://github.com/gbeliako/void-packages tirdad-branch
https://github.com/void-linux/void-packages/pull/34974

New package: tirdad-0.1.20
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!---->
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**


<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- x86_64-musl (crossbuild)
<!--   - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/34974.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-tirdad-branch-34974.patch --]
[-- Type: text/x-diff, Size: 3320 bytes --]

From 3ddf3d2932376c364f4e96fccf5056b859c098f5 Mon Sep 17 00:00:00 2001
From: chaquen <void@cgps.xyz>
Date: Mon, 10 Jan 2022 13:06:25 +1100
Subject: [PATCH] New package: tirdad-0.1.20

---
 srcpkgs/tirdad/INSTALL            | 20 ++++++++++++++++++++
 srcpkgs/tirdad/REMOVE             |  2 ++
 srcpkgs/tirdad/patches/arch.patch | 19 +++++++++++++++++++
 srcpkgs/tirdad/template           | 26 ++++++++++++++++++++++++++
 4 files changed, 67 insertions(+)
 create mode 100644 srcpkgs/tirdad/INSTALL
 create mode 100644 srcpkgs/tirdad/REMOVE
 create mode 100644 srcpkgs/tirdad/patches/arch.patch
 create mode 100644 srcpkgs/tirdad/template

diff --git a/srcpkgs/tirdad/INSTALL b/srcpkgs/tirdad/INSTALL
new file mode 100644
index 000000000000..0a10ea4758f4
--- /dev/null
+++ b/srcpkgs/tirdad/INSTALL
@@ -0,0 +1,20 @@
+# INSTALL
+case "$ACTION" in
+pre)
+	# Actions to execute before the package files are unpacked.
+	;;
+post)
+	if [ "$UPDATE" = "yes" ]; then
+		# actions to execute if package is being updated.
+		sudo rmmod /etc/tirdad.ko
+		sudo insmod /etc/tirdad.ko
+	else
+		# actions to execute if package is being installed.
+		sudo insmod /etc/tirdad.ko
+		if ! grep -q tirdad "/etc/rc.local"; then
+			sudo echo "# Load tirdad module at boot to generate random TCP Initial Sequence Numbers" >> /etc/rc.local
+			sudo echo "insmod /etc/tirdad.ko" >> /etc/rc.local
+		fi
+	fi
+	;;
+esac
diff --git a/srcpkgs/tirdad/REMOVE b/srcpkgs/tirdad/REMOVE
new file mode 100644
index 000000000000..413922087c64
--- /dev/null
+++ b/srcpkgs/tirdad/REMOVE
@@ -0,0 +1,2 @@
+# REMOVE
+sudo sed -i '/tirdad/d' /etc/rc.local
diff --git a/srcpkgs/tirdad/patches/arch.patch b/srcpkgs/tirdad/patches/arch.patch
new file mode 100644
index 000000000000..13a1dd8c3a0f
--- /dev/null
+++ b/srcpkgs/tirdad/patches/arch.patch
@@ -0,0 +1,19 @@
+--- a/module/tirdad.c
++++ b/module/tirdad.c
+@@ -30,7 +30,15 @@
+ siphash_key_t last_secret;
+ 
+ unsigned long tcp_secure_seq_adr;
+-
++unsigned long __stack_chk_guard;
++void __stack_chk_guard_setup(void)
++{
++	     __stack_chk_guard = 0xBAAAAAAD;//provide some magic numbers
++}
++void __stack_chk_fail(void)                         
++{
++ /* Error message */                                 
++}// will be called when guard variable is corrupted 
+ #define AGGREGATE_KEY_SIZE	16
+ #define FUSION_SIZE		12
+ 
diff --git a/srcpkgs/tirdad/template b/srcpkgs/tirdad/template
new file mode 100644
index 000000000000..fe9aa5670c37
--- /dev/null
+++ b/srcpkgs/tirdad/template
@@ -0,0 +1,26 @@
+# Template file for 'tirdad'
+pkgname=tirdad
+version=0.1.20
+revision=1
+_realversion="${version}-1"
+archs="x86_64 x86_64-musl"
+wrksrc="${pkgname}-${_realversion}"
+#create_wrksrc=yes
+build_style=gnu-makefile
+#configure_args=""
+#make_build_args=""
+#make_install_args=""
+#conf_files=""
+#make_dirs="/var/log/dir 0755 root root"
+hostmakedepends="linux-headers gcc"
+#makedepends=""
+#depends=""
+short_desc="Tirdad is a kernel module to generate random TCP Initial Sequence Numbs"
+maintainer="Chaquen <void@cgps.xyz>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/Whonix/tirdad"
+distfiles="https://github.com/Whonix/tirdad/archive/refs/tags/${_realversion}.tar.gz"
+checksum=5e75b743cfca980a08a0696cb685c86dd42d6566ff557959292506bceaf1a86d
+do_install() {
+	vconf module/tirdad.ko
+}

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: New package: tirdad-0.1.20
  2022-01-10  2:09 [PR PATCH] New package: tirdad-0.1.20 gbeliako
  2022-01-10  2:14 ` [PR PATCH] [Updated] " gbeliako
@ 2022-04-11  2:08 ` github-actions
  2022-06-21  2:13 ` [PR PATCH] [Closed]: " github-actions
  2 siblings, 0 replies; 4+ messages in thread
From: github-actions @ 2022-04-11  2:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/34974#issuecomment-1094469985

Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PR PATCH] [Closed]: New package: tirdad-0.1.20
  2022-01-10  2:09 [PR PATCH] New package: tirdad-0.1.20 gbeliako
  2022-01-10  2:14 ` [PR PATCH] [Updated] " gbeliako
  2022-04-11  2:08 ` github-actions
@ 2022-06-21  2:13 ` github-actions
  2 siblings, 0 replies; 4+ messages in thread
From: github-actions @ 2022-06-21  2:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1083 bytes --]

There's a closed pull request on the void-packages repository

New package: tirdad-0.1.20
https://github.com/void-linux/void-packages/pull/34974

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!---->
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**


<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- x86_64-musl (crossbuild)
<!--   - aarch64-musl
  - armv7l
  - armv6l-musl
-->


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-06-21  2:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-10  2:09 [PR PATCH] New package: tirdad-0.1.20 gbeliako
2022-01-10  2:14 ` [PR PATCH] [Updated] " gbeliako
2022-04-11  2:08 ` github-actions
2022-06-21  2:13 ` [PR PATCH] [Closed]: " github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).