Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: booster-0.3
@ 2021-03-13 14:53 travankor
  2021-03-13 15:16 ` [PR REVIEW] " ericonr
                   ` (139 more replies)
  0 siblings, 140 replies; 141+ messages in thread
From: travankor @ 2021-03-13 14:53 UTC (permalink / raw)
  To: ml

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

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

https://github.com/travankor/void-packages booster
https://github.com/void-linux/void-packages/pull/29434

New package: booster-0.3
<!-- 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?
- [ ] 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/29434.patch is attached

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

From e35da2f9508e6d033759da9c6d3b19e8fa9166b8 Mon Sep 17 00:00:00 2001
From: travankor <travankor@tuta.io>
Date: Sat, 13 Mar 2021 07:51:37 -0700
Subject: [PATCH] New package: booster-0.3

---
 srcpkgs/booster/files/kernel-hook-postinst | 15 +++++++++
 srcpkgs/booster/files/kernel-hook-postrm   | 11 +++++++
 srcpkgs/booster/template                   | 38 ++++++++++++++++++++++
 3 files changed, 64 insertions(+)
 create mode 100644 srcpkgs/booster/files/kernel-hook-postinst
 create mode 100644 srcpkgs/booster/files/kernel-hook-postrm
 create mode 100644 srcpkgs/booster/template

diff --git a/srcpkgs/booster/files/kernel-hook-postinst b/srcpkgs/booster/files/kernel-hook-postinst
new file mode 100644
index 00000000000..0efbcecb56e
--- /dev/null
+++ b/srcpkgs/booster/files/kernel-hook-postinst
@@ -0,0 +1,15 @@
+#!/bin/sh
+#
+# Kernel post-install hook for booster.
+#
+# Arguments passed to this script: $1 pkgname, $2 version.
+#
+PKGNAME="$1"
+VERSION="$2"
+
+if [ ! -x usr/bin/booster ]; then
+	exit 0
+fi
+
+usr/bin/booster -output boot/initramfs-${VERSION}.img -kernelVersion ${VERSION}
+exit $?
diff --git a/srcpkgs/booster/files/kernel-hook-postrm b/srcpkgs/booster/files/kernel-hook-postrm
new file mode 100644
index 00000000000..ef13d1967a6
--- /dev/null
+++ b/srcpkgs/booster/files/kernel-hook-postrm
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# Kernel post-remove hook for booster.
+#
+# Arguments passed to this script: $1 pkgname, $2 version.
+#
+PKGNAME="$1"
+VERSION="$2"
+
+rm -f boot/initramfs-${VERSION}.img
+exit $?
diff --git a/srcpkgs/booster/template b/srcpkgs/booster/template
new file mode 100644
index 00000000000..08e1e9a7cd6
--- /dev/null
+++ b/srcpkgs/booster/template
@@ -0,0 +1,38 @@
+# Template file for 'booster'
+pkgname=booster
+version=0.3
+revision=1
+build_style=go
+go_import_path=github.com/anatol/booster
+go_package="${go_import_path}/init ${go_import_path}/generator"
+go_mod_mode=readonly
+hostmakedepends="git"
+depends="busybox-static"
+short_desc="Fast and secure initramfs generator"
+maintainer="travankor <travankor@tuta.io>"
+license="MIT"
+homepage="https://github.com/anatol/booster"
+distfiles="https://github.com/anatol/booster/archive/${version}.tar.gz"
+checksum=77067a5056e1070aee0f27130c31ebbf7cacca18644dc4906290371a04f07371
+
+do_build() {
+	cd generator
+	CGO_CPPFLAGS="${CPPFLAGS}" CGO_CFLAGS="${CFLAGS}" CGO_CXXFLAGS="${CXXFLAGS}" CGO_LDFLAGS="${LDFLAGS}" \
+	go build -trimpath -buildmode=pie -mod=readonly -modcacherw -ldflags "-linkmode external -extldflags"
+
+	cd ../init
+	CGO_ENABLED=0 go build -trimpath -mod=readonly -modcacherw
+}
+
+do_install() {
+	vbin generator/booster
+	vman generator/booster.1
+	vinstall init/init 755 usr/lib/booster
+}
+
+post_install() {
+	vlicense LICENSE
+
+	vinstall ${FILESDIR}/kernel-hook-postinst 755 etc/kernel.d/post-install 20-booster
+	vinstall ${FILESDIR}/kernel-hook-postrm 755 etc/kernel.d/post-remove 20-booster
+}

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

end of thread, other threads:[~2022-10-14 20:41 UTC | newest]

Thread overview: 141+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-13 14:53 [PR PATCH] New package: booster-0.3 travankor
2021-03-13 15:16 ` [PR REVIEW] " ericonr
2021-03-13 22:55 ` travankor
2021-03-13 23:10 ` travankor
2021-03-13 23:11 ` travankor
2021-03-13 23:30 ` ericonr
2021-03-15  3:06 ` [PR PATCH] [Updated] " travankor
2021-03-15  3:17 ` travankor
2021-03-15  3:32 ` travankor
2021-03-15  3:35 ` travankor
2021-03-15  3:50 ` travankor
2021-03-15  3:55 ` travankor
2021-03-16 14:03 ` travankor
2021-04-11  4:01 ` [PR REVIEW] " ericonr
2021-04-11 17:31 ` [PR PATCH] [Updated] New package: booster-0.4 travankor
2021-04-12 13:21 ` travankor
2021-04-25  2:03 ` travankor
2021-04-25  3:38 ` travankor
2021-04-25  3:51 ` travankor
2021-04-25 13:16 ` travankor
2021-04-25 17:08 ` [PR REVIEW] " travankor
2021-04-25 17:14 ` [PR PATCH] [Updated] " travankor
2021-04-25 17:17 ` travankor
2021-04-25 17:19 ` [PR PATCH] [Updated] " travankor
2021-05-13 13:19 ` travankor
2021-05-15 13:36 ` [PR PATCH] [Updated] New package: booster-0.5 travankor
2021-05-18 14:13 ` UsernameRandomlyGenerated
2021-05-24 16:15 ` dkwo
2021-05-27 18:50 ` dkwo
2021-06-01 19:13 ` travankor
2021-06-06  8:39 ` dkwo
2021-06-12 17:23 ` dkwo
2021-06-12 17:24 ` dkwo
2021-06-12 17:26 ` dkwo
2021-06-12 17:52 ` paper42
2021-06-12 17:52 ` paper42
2021-06-12 18:15 ` dkwo
2021-06-23  3:08 ` anatol
2021-06-30  8:33 ` dkwo
2021-06-30  9:14 ` travankor
2021-06-30 13:06 ` [PR PATCH] [Updated] " travankor
2021-07-01  3:51 ` [PR REVIEW] " ericonr
2021-07-01  3:51 ` ericonr
2021-07-01  3:58 ` ericonr
2021-07-01  4:01 ` ericonr
2021-07-01 13:03 ` [PR PATCH] [Updated] " travankor
2021-07-01 13:05 ` travankor
2021-07-01 13:08 ` [PR PATCH] [Updated] " travankor
2021-07-01 15:15 ` anatol
2021-07-02  9:36 ` dkwo
2021-07-20 17:12 ` anatol
2021-07-21 15:48 ` [PR PATCH] [Updated] " travankor
2021-07-22  7:43 ` New package: booster-0.6 dkwo
2021-09-11 23:27 ` anatol
2021-09-12  6:31 ` dkwo
2021-09-12 10:36 ` [PR REVIEW] " paper42
2021-09-12 10:36 ` paper42
2021-09-12 10:36 ` paper42
2021-09-12 11:28 ` ahesford
2021-09-12 11:36 ` paper42
2021-09-13 14:42 ` [PR PATCH] [Updated] " travankor
2021-09-13 14:44 ` travankor
2021-09-14 14:02 ` travankor
2021-09-14 14:08 ` travankor
2021-09-14 14:16 ` travankor
2021-09-14 14:25 ` travankor
2021-09-14 22:57 ` travankor
2021-09-27 23:37 ` anatol
2021-10-12  8:48 ` dkwo
2021-10-14 19:32 ` anatol
2021-10-16 11:56 ` dkwo
2021-10-16 12:21 ` dkwo
2021-11-07  9:54 ` dkwo
2021-11-07 10:19 ` dkwo
2021-11-07 14:14 ` anatol
2021-11-07 14:15 ` anatol
2021-11-07 15:17 ` anatol
2021-11-08 10:01 ` dkwo
2021-11-08 14:04 ` anatol
2021-11-08 17:19 ` dkwo
2021-11-08 20:45 ` anatol
2021-11-09 13:13 ` dkwo
2021-11-09 19:05 ` nilium
2021-11-09 20:59 ` anatol
2021-11-09 21:17 ` nilium
2021-11-10  9:25 ` dkwo
2021-11-10 15:22 ` anatol
2021-11-10 21:38 ` [PR PATCH] [Updated] " travankor
2021-11-10 21:48 ` travankor
2021-11-10 23:12 ` [PR REVIEW] New package: booster-0.7 anatol
2021-11-11  7:59 ` travankor
2021-11-12  1:31 ` anatol
2021-11-12 10:12 ` dkwo
2021-11-12 16:03 ` anatol
2021-11-12 21:46 ` [PR PATCH] [Updated] " travankor
2021-11-12 21:47 ` [PR REVIEW] " travankor
2021-11-13  9:29 ` dkwo
2021-12-03  2:56 ` anatol
2022-03-06 21:13 ` anatol
2022-05-28  0:07 ` [PR PATCH] [Updated] " travankor
2022-07-03 11:46 ` dkwo
2022-07-03 13:05 ` anatol
2022-07-03 13:08 ` anatol
2022-07-03 13:10 ` anatol
2022-07-03 18:58 ` dkwo
2022-07-18  1:57 ` anatol
2022-07-23  9:09 ` oynqr
2022-07-31 23:01 ` CameronNemo
2022-07-31 23:45 ` CameronNemo
2022-08-01  3:56 ` anatol
2022-08-01  3:59 ` [PR REVIEW] " anatol
2022-08-01 13:40 ` [PR PATCH] [Updated] " travankor
2022-08-01 13:42 ` travankor
2022-08-01 13:46 ` [PR PATCH] [Updated] New package: booster-0.8 travankor
2022-08-01 14:55 ` [PR REVIEW] " CameronNemo
2022-08-01 14:55 ` CameronNemo
2022-08-01 19:57 ` [PR PATCH] [Updated] " travankor
2022-08-26 10:42 ` JamiKettunen
2022-09-08 20:08 ` [PR PATCH] [Updated] " travankor
2022-09-26 12:21 ` New package: booster-0.9 ahesford
2022-10-03 15:08 ` dkwo
2022-10-09 20:36 ` [PR PATCH] [Updated] " travankor
2022-10-09 23:11 ` [PR REVIEW] " CameronNemo
2022-10-09 23:31 ` ahesford
2022-10-09 23:33 ` ahesford
2022-10-10  2:51 ` CameronNemo
2022-10-10  6:58 ` [PR PATCH] [Updated] " travankor
2022-10-10 14:02 ` ahesford
2022-10-10 14:33 ` ahesford
2022-10-10 14:49 ` ahesford
2022-10-10 14:58 ` ahesford
2022-10-10 14:59 ` ahesford
2022-10-10 18:14 ` CameronNemo
2022-10-10 18:14 ` CameronNemo
2022-10-10 18:26 ` ahesford
2022-10-10 20:51 ` anatol
2022-10-10 20:51 ` anatol
2022-10-10 22:03 ` ahesford
2022-10-14 20:13 ` dkwo
2022-10-14 20:41 ` ahesford
2022-10-14 20:41 ` [PR PATCH] [Closed]: " ahesford

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