Github messages for voidlinux
 help / color / mirror / Atom feed
From: wael444 <wael444@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: tinyramfs-0.1.0
Date: Sun, 17 Jul 2022 11:09:59 +0200	[thread overview]
Message-ID: <20220717090959.27F8yuwBDp0W9Cgh5B6AVebpRn2P4P4MvGWsrM555DM@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-38105@inbox.vuxu.org>

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

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

https://github.com/wael444/void-packages tinyramfs
https://github.com/void-linux/void-packages/pull/38105

New package: tinyramfs-0.1.0
#### 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**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)

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

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

From f55754c858aac01515725984995aaff4491ae8b0 Mon Sep 17 00:00:00 2001
From: wael <40663@proton.me>
Date: Sun, 17 Jul 2022 11:58:35 +0300
Subject: [PATCH] New package: tinyramfs-0.1.0

---
 srcpkgs/tinyramfs/files/kernel-hook-postinst |  5 +++++
 srcpkgs/tinyramfs/files/kernel-hook-postrm   |  5 +++++
 srcpkgs/tinyramfs/template                   | 20 ++++++++++++++++++++
 3 files changed, 30 insertions(+)
 create mode 100755 srcpkgs/tinyramfs/files/kernel-hook-postinst
 create mode 100755 srcpkgs/tinyramfs/files/kernel-hook-postrm
 create mode 100644 srcpkgs/tinyramfs/template

diff --git a/srcpkgs/tinyramfs/files/kernel-hook-postinst b/srcpkgs/tinyramfs/files/kernel-hook-postinst
new file mode 100755
index 000000000000..5a591fd55490
--- /dev/null
+++ b/srcpkgs/tinyramfs/files/kernel-hook-postinst
@@ -0,0 +1,5 @@
+#!/bin/sh
+PKGNAME="$1"
+VERSION="$2"
+
+usr/bin/tinyramfs -f -k ${VERSION} boot/initramfs-${VERSION}.img
diff --git a/srcpkgs/tinyramfs/files/kernel-hook-postrm b/srcpkgs/tinyramfs/files/kernel-hook-postrm
new file mode 100755
index 000000000000..0badb451e491
--- /dev/null
+++ b/srcpkgs/tinyramfs/files/kernel-hook-postrm
@@ -0,0 +1,5 @@
+#!/bin/sh
+PKGNAME="$1"
+VERSION="$2"
+
+rm -f boot/initramfs-${VERSION}.img
diff --git a/srcpkgs/tinyramfs/template b/srcpkgs/tinyramfs/template
new file mode 100644
index 000000000000..f1229cb81378
--- /dev/null
+++ b/srcpkgs/tinyramfs/template
@@ -0,0 +1,20 @@
+# Template file for 'tinyramfs'
+pkgname=tinyramfs
+version=0.1.0
+revision=1
+build_style=gnu-makefile
+depends="util-linux cpio binutils eudev kmod"
+short_desc="Tiny initramfs written in POSIX shell"
+maintainer="wael <40663@proton.me>"
+license="GPL-3.0-only"
+homepage="https://github.com/illiliti/tinyramfs"
+distfiles="https://github.com/illiliti/tinyramfs/archive/refs/tags/${version}.tar.gz"
+checksum=a78ecd56a52a02bc1f4b86ba829a957ad1f83c252bfde66562d5c3ef40be7c51
+# checking requires qemu, locally this still fails
+make_check=no
+
+post_install() {
+	vinstall ${FILESDIR}/kernel-hook-postinst 755 etc/kernel.d/post-install 20-tinyramfs
+	vinstall ${FILESDIR}/kernel-hook-postrm 755 etc/kernel.d/post-remove 20-tinyramfs
+	rm -rf ${DESTDIR}/usr/lib/dracut/hook.d/systemd-udev
+}

  reply	other threads:[~2022-07-17  9:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-17  9:02 [PR PATCH] " wael444
2022-07-17  9:09 ` wael444 [this message]
2022-07-17 18:30 ` wael444
2022-07-18 10:08 ` dkwo
2022-07-18 10:17 ` wael444
2022-07-18 12:09 ` dkwo
2022-09-26 18:09 ` ahesford
2022-10-01  9:28 ` [PR PATCH] [Closed]: " wael444
2023-02-28 18:31 ` dkwo
2023-02-28 18:45 ` apprehensions

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220717090959.27F8yuwBDp0W9Cgh5B6AVebpRn2P4P4MvGWsrM555DM@z \
    --to=wael444@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).