Github messages for voidlinux
 help / color / mirror / Atom feed
From: basploeger <basploeger@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: apcupsd-3.14.14
Date: Tue, 12 Apr 2022 22:03:26 +0200	[thread overview]
Message-ID: <20220412200326.2RrnvsqV6bsEf2sw2iUojSpXdKIzsjWCPOVldobTrHM@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-36654@inbox.vuxu.org>

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

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

https://github.com/basploeger/void-packages apcupsd-cont
https://github.com/void-linux/void-packages/pull/36654

New package: apcupsd-3.14.14
This PR is based on #13876.

#### 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**

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

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

From 01eb78b4d27e70c12cb72cfc86592f24cc50d893 Mon Sep 17 00:00:00 2001
From: Bas Ploeger <5904333+basploeger@users.noreply.github.com>
Date: Sat, 2 Apr 2022 22:00:49 +0200
Subject: [PATCH] New package: apcupsd-3.14.14

---
 srcpkgs/apcupsd/files/apcupsd/run |  3 +++
 srcpkgs/apcupsd/template          | 40 +++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+)
 create mode 100644 srcpkgs/apcupsd/files/apcupsd/run
 create mode 100644 srcpkgs/apcupsd/template

diff --git a/srcpkgs/apcupsd/files/apcupsd/run b/srcpkgs/apcupsd/files/apcupsd/run
new file mode 100644
index 000000000000..2c0b807da287
--- /dev/null
+++ b/srcpkgs/apcupsd/files/apcupsd/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+[ -r conf] && . ./conf
+exec apcupsd -b ${OPTS}
diff --git a/srcpkgs/apcupsd/template b/srcpkgs/apcupsd/template
new file mode 100644
index 000000000000..1980eb8d81b4
--- /dev/null
+++ b/srcpkgs/apcupsd/template
@@ -0,0 +1,40 @@
+# Template file for 'apcupsd'
+pkgname=apcupsd
+version=3.14.14
+revision=1
+build_style=gnu-configure
+configure_args="
+ --disable-install-distdir
+ --enable-modbus-usb
+ --enable-usb
+ --sysconfdir=/etc/apcupsd
+ --with-dev=''
+ --with-halpolicydir=
+ --with-pwrfail-dir=/etc/apcupsd
+ --with-upscable=usb
+ --with-upstype=usb"
+hostmakedepends="autoconf automake pkg-config"
+makedepends="libusb-compat-devel net-snmp-devel"
+depends="libusb-compat net-snmp nullmailer"
+conf_files="/etc/apcupsd/*"
+short_desc="APC UPS daemon with integrated tcp/ip remote shutdown"
+maintainer="Bas Ploeger <s.c.w.ploeger@gmail.com>"
+license="GPL-2.0-only"
+homepage="http://www.apcupsd.org/"
+distfiles="${SOURCEFORGE_SITE}/apcupsd/apcupsd-${version}.tar.gz"
+checksum="db7748559b6b4c3784f9856561ef6ac6199ef7bd019b3edcd7e0a647bf8f9867"
+
+# Avoid passing an invalid arg 'strip' to the install command for the binaries.
+make_install_args="STRIP="
+
+pre_configure() {
+	export SHUTDOWN=/usr/bin/shutdown
+	export WALL=/usr/bin/wall
+	export APCUPSD_MAIL=/usr/bin/mail
+}
+
+post_install() {
+	# This binary is not needed and conflicts with a binary from an other package.
+	rm ${DESTDIR}/usr/bin/smtp
+	vsv apcupsd
+}

  parent reply	other threads:[~2022-04-12 20:03 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-12  7:27 [PR PATCH] " basploeger
2022-04-12  7:34 ` [PR PATCH] [Updated] " basploeger
2022-04-12 18:13 ` [PR REVIEW] " classabbyamp
2022-04-12 18:13 ` classabbyamp
2022-04-12 19:33 ` [PR PATCH] [Updated] " basploeger
2022-04-12 19:40 ` [PR REVIEW] " basploeger
2022-04-12 19:40 ` basploeger
2022-04-12 19:42 ` basploeger
2022-04-12 19:47 ` basploeger
2022-04-12 20:02 ` [PR PATCH] [Updated] " basploeger
2022-04-12 20:03 ` basploeger [this message]
2022-04-12 20:08 ` basploeger
2022-04-29 16:54 ` basploeger
2022-04-29 17:06 ` [PR REVIEW] " classabbyamp
2022-04-29 19:48 ` basploeger
2022-04-29 19:48 ` basploeger
2022-05-04 18:51 ` basploeger
2022-05-05  0:03 ` classabbyamp
2022-05-05 20:11 ` [PR PATCH] [Merged]: " abenson

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=20220412200326.2RrnvsqV6bsEf2sw2iUojSpXdKIzsjWCPOVldobTrHM@z \
    --to=basploeger@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).