Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: superd-0.7
@ 2022-10-14 11:55 JamiKettunen
  2022-10-14 21:19 ` [PR REVIEW] " paper42
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: JamiKettunen @ 2022-10-14 11:55 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JamiKettunen/void-packages superd
https://github.com/void-linux/void-packages/pull/39949

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

Since I had to add a `do_check()` myself it made me wonder if the go build-style should have a default of some kind. Thoughts?

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

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

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
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, (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/39949.patch is attached

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

From 12672fc7bc0f429162248d7848455ff7387a8a33 Mon Sep 17 00:00:00 2001
From: Jami Kettunen <jami.kettunen@protonmail.com>
Date: Mon, 26 Sep 2022 00:08:23 +0300
Subject: [PATCH] New package: superd-0.7

---
 .../patches/ignore-binaries-on-install.diff   | 18 +++++++++++++++
 srcpkgs/superd/template                       | 23 +++++++++++++++++++
 2 files changed, 41 insertions(+)
 create mode 100644 srcpkgs/superd/patches/ignore-binaries-on-install.diff
 create mode 100644 srcpkgs/superd/template

diff --git a/srcpkgs/superd/patches/ignore-binaries-on-install.diff b/srcpkgs/superd/patches/ignore-binaries-on-install.diff
new file mode 100644
index 000000000000..47b69733cf11
--- /dev/null
+++ b/srcpkgs/superd/patches/ignore-binaries-on-install.diff
@@ -0,0 +1,18 @@
+Let xbps-src handle (cross)building super{d,ctl} binaries properly with the go build-style.
+
+--- a/Makefile
++++ b/Makefile
+@@ -58,12 +58,10 @@ doc: $(DOCS)
+ clean:
+ 	$(RM) $(DOCS) superd superctl
+ 
+-install: $(DOCS) superd superctl
++install: $(DOCS)
+ 	mkdir -m755 -p \
+ 		$(DESTDIR)$(SYSCONFDIR)/superd/services \
+ 		$(DESTDIR)$(SHAREDIR)/superd/services
+-	install -Dm755 superd -t $(DESTDIR)$(BINDIR)/
+-	install -Dm755 superctl -t $(DESTDIR)$(BINDIR)/
+ 	install -Dm644 superd.1 -t $(DESTDIR)$(MANDIR)/man1/
+ 	install -Dm644 superd.service.5 -t $(DESTDIR)$(MANDIR)/man5/
+ 	install -Dm644 superctl.1 -t $(DESTDIR)$(MANDIR)/man1/
diff --git a/srcpkgs/superd/template b/srcpkgs/superd/template
new file mode 100644
index 000000000000..ec9b94dc6186
--- /dev/null
+++ b/srcpkgs/superd/template
@@ -0,0 +1,23 @@
+# Template file for 'superd'
+pkgname=superd
+version=0.7
+revision=1
+build_style=go
+go_import_path="sr.ht/~craftyguy/superd"
+go_package="${go_import_path}/cmd/superd ${go_import_path}/cmd/superctl"
+go_ldflags="-X 'main.Version=${version}'"
+hostmakedepends="scdoc"
+short_desc="Lightweight user service supervising daemon"
+maintainer="Jami Kettunen <jami.kettunen@protonmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://sr.ht/~craftyguy/superd/"
+distfiles="https://git.sr.ht/~craftyguy/superd/archive/${version}.tar.gz"
+checksum=7563647dd5303752237e1b8453c770dd83c908a239da73f48b11e2151109586b
+
+do_check() {
+	go test ./...
+}
+
+post_install() {
+	make PREFIX=/usr DESTDIR=${DESTDIR} install
+}

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

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

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-14 11:55 [PR PATCH] New package: superd-0.7 JamiKettunen
2022-10-14 21:19 ` [PR REVIEW] " paper42
2022-10-14 22:11 ` [PR PATCH] [Updated] " JamiKettunen
2022-10-14 22:11 ` [PR REVIEW] " JamiKettunen
2022-10-14 22:27 ` JamiKettunen
2022-10-15  0:09 ` JamiKettunen
2022-10-16 19:17 ` [PR PATCH] [Updated] " JamiKettunen
2022-10-16 20:27 ` [PR PATCH] [Merged]: " paper42

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