Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: zramd-0.9.2
@ 2021-08-11 13:15 bakayuuko
  2021-08-11 13:17 ` Duncaen
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bakayuuko @ 2021-08-11 13:15 UTC (permalink / raw)
  To: ml

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

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

https://github.com/bakayuuko/void-packages zramd
https://github.com/void-linux/void-packages/pull/32458

New package: zramd-0.9.2
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

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

From 6a0163032fb341c2913afc418707140b895c9e15 Mon Sep 17 00:00:00 2001
From: bakayuuko <bakayuuko@protonmail.com>
Date: Wed, 11 Aug 2021 19:45:03 +0700
Subject: [PATCH] New package: zramd-0.9.2

---
 srcpkgs/zramd/files/zramd/run |  2 ++
 srcpkgs/zramd/template        | 43 +++++++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+)
 create mode 100644 srcpkgs/zramd/files/zramd/run
 create mode 100644 srcpkgs/zramd/template

diff --git a/srcpkgs/zramd/files/zramd/run b/srcpkgs/zramd/files/zramd/run
new file mode 100644
index 000000000000..487f17b20a8b
--- /dev/null
+++ b/srcpkgs/zramd/files/zramd/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec zramd start
diff --git a/srcpkgs/zramd/template b/srcpkgs/zramd/template
new file mode 100644
index 000000000000..01c63c49065c
--- /dev/null
+++ b/srcpkgs/zramd/template
@@ -0,0 +1,43 @@
+# Template file for 'zramd'
+pkgname=zramd
+version=0.9.2
+revision=1
+archs="x86_64* armv[67]l* aarch64*"
+create_wrksrc=yes
+depends="coreutils util-linux"
+short_desc="Automatically setup swap on zram"
+maintainer="bakayuuko <bakayuuko@protonmail.com>"
+license="MIT"
+homepage="https://github.com/maximumadmin/zramd"
+
+case "$XBPS_TARGET_MACHINE" in
+	x86_64*)
+		_dist_arch="amd64"
+		checksum="af9f61fa432b9a837905a221442b7b04836620e2fc8eeb2fa4debf42a0d2df06
+		9cb77e0aeebc35f9f2d3deb17a6f0c355d3f1869f3da8c395dcbfc829e7049fc"
+		;;
+	arm*l*)
+		_dist_arch="armhf"
+		checksum="af9f61fa432b9a837905a221442b7b04836620e2fc8eeb2fa4debf42a0d2df06
+		9f6748424c58ab98fa6f19312c7718beb51eab23b9532776bf91fe1dd87a56af"
+		;;
+	aarch64*)
+		_dist_arch="arm64"
+		checksum="af9f61fa432b9a837905a221442b7b04836620e2fc8eeb2fa4debf42a0d2df06
+		31dd2e28f2acb041dce26fa38a4622e7b0da97ae8069a1a304dccc91609c61be"
+		;;
+esac
+
+distfiles="https://raw.githubusercontent.com/maximumadmin/zramd/master/LICENSE>LICENSE.txt
+https://github.com/maximumadmin/zramd/releases/download/v${version}/zramd_${_dist_arch}.tar.gz"
+skip_extraction="LICENSE.txt"
+
+do_install() {
+	mv zramd_${_dist_arch} zramd
+	vbin zramd
+}
+
+post_install() {
+	vsv zramd
+	vlicense ${XBPS_SRCDISTDIR}/${pkgname}-${version}/LICENSE.txt LICENSE.md
+}

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

* Re: New package: zramd-0.9.2
  2021-08-11 13:15 [PR PATCH] New package: zramd-0.9.2 bakayuuko
@ 2021-08-11 13:17 ` Duncaen
  2021-08-11 13:22 ` Duncaen
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Duncaen @ 2021-08-11 13:17 UTC (permalink / raw)
  To: ml

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

New comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/32458#issuecomment-896819354

Comment:
This is open source software, it should be build from source.

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

* Re: New package: zramd-0.9.2
  2021-08-11 13:15 [PR PATCH] New package: zramd-0.9.2 bakayuuko
  2021-08-11 13:17 ` Duncaen
@ 2021-08-11 13:22 ` Duncaen
  2021-08-11 13:23 ` Duncaen
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Duncaen @ 2021-08-11 13:22 UTC (permalink / raw)
  To: ml

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

New comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/32458#issuecomment-896823400

Comment:
Does this even work? 
https://github.com/maximumadmin/zramd/blob/f8079546604e5d439a63e5e7d892d7425a367e8d/internal/system/system.go#L14 this is some broken software, ppid is not 1 with runit and it will just exit https://github.com/maximumadmin/zramd/blob/f8079546604e5d439a63e5e7d892d7425a367e8d/zramd.go#L207

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

* Re: New package: zramd-0.9.2
  2021-08-11 13:15 [PR PATCH] New package: zramd-0.9.2 bakayuuko
  2021-08-11 13:17 ` Duncaen
  2021-08-11 13:22 ` Duncaen
@ 2021-08-11 13:23 ` Duncaen
  2021-08-11 13:26 ` Duncaen
  2021-08-11 13:31 ` [PR PATCH] [Closed]: " bakayuuko
  4 siblings, 0 replies; 6+ messages in thread
From: Duncaen @ 2021-08-11 13:23 UTC (permalink / raw)
  To: ml

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

New comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/32458#issuecomment-896823400

Comment:
Does this even work? 
https://github.com/maximumadmin/zramd/blob/f8079546604e5d439a63e5e7d892d7425a367e8d/internal/system/system.go#L14 this is some broken software, ppid is not 1 with runit and it will just exit https://github.com/maximumadmin/zramd/blob/f8079546604e5d439a63e5e7d892d7425a367e8d/zramd.go#L207

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

* Re: New package: zramd-0.9.2
  2021-08-11 13:15 [PR PATCH] New package: zramd-0.9.2 bakayuuko
                   ` (2 preceding siblings ...)
  2021-08-11 13:23 ` Duncaen
@ 2021-08-11 13:26 ` Duncaen
  2021-08-11 13:31 ` [PR PATCH] [Closed]: " bakayuuko
  4 siblings, 0 replies; 6+ messages in thread
From: Duncaen @ 2021-08-11 13:26 UTC (permalink / raw)
  To: ml

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

New comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/32458#issuecomment-896826523

Comment:
This also is not a daemon, the runit service is wrong and would just restart "zramd" endlessly.
It has 17 stars on github and this is basically a shell script written in go, I don't see a benefit in adding this, we already have zramen, if you want to use some extra program to set this up.

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

* Re: [PR PATCH] [Closed]: New package: zramd-0.9.2
  2021-08-11 13:15 [PR PATCH] New package: zramd-0.9.2 bakayuuko
                   ` (3 preceding siblings ...)
  2021-08-11 13:26 ` Duncaen
@ 2021-08-11 13:31 ` bakayuuko
  4 siblings, 0 replies; 6+ messages in thread
From: bakayuuko @ 2021-08-11 13:31 UTC (permalink / raw)
  To: ml

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

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

New package: zramd-0.9.2
https://github.com/void-linux/void-packages/pull/32458

Description:
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

end of thread, other threads:[~2021-08-11 13:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-11 13:15 [PR PATCH] New package: zramd-0.9.2 bakayuuko
2021-08-11 13:17 ` Duncaen
2021-08-11 13:22 ` Duncaen
2021-08-11 13:23 ` Duncaen
2021-08-11 13:26 ` Duncaen
2021-08-11 13:31 ` [PR PATCH] [Closed]: " bakayuuko

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).