Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: tinyramfs-0.1.0
@ 2022-07-17  9:02 wael444
  2022-07-17  9:09 ` [PR PATCH] [Updated] " wael444
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: wael444 @ 2022-07-17  9:02 UTC (permalink / raw)
  To: ml

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

There is a new 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: 2153 bytes --]

From e3a187dcc0081f8f071c3e890a2530542bafe3b9 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                   | 18 ++++++++++++++++++
 3 files changed, 28 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..10c013502ef3
--- /dev/null
+++ b/srcpkgs/tinyramfs/template
@@ -0,0 +1,18 @@
+# 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}.zip"
+checksum=0a05bcc6963aa24383ea3dca747c50f8cbdff2621858e5eb9e233cf670cb617d
+
+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
+}

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

end of thread, other threads:[~2023-02-28 18:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-17  9:02 [PR PATCH] New package: tinyramfs-0.1.0 wael444
2022-07-17  9:09 ` [PR PATCH] [Updated] " wael444
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

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