Github messages for voidlinux
 help / color / mirror / Atom feed
From: ArsenArsen <ArsenArsen@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] parpd: new package
Date: Sat, 09 Oct 2021 22:26:36 +0200	[thread overview]
Message-ID: <20211009202636.D_twvndoEWVMwhU96QNJsV3crABAoMrI_9Mncra5r5k@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-33295@inbox.vuxu.org>

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

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

https://github.com/ArsenArsen/void-packages new-package-parpd
https://github.com/void-linux/void-packages/pull/33295

parpd: new package
#### 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?
- [x] 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

#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-glibc)
- [x] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [x] aarch64
  - [ ] aarch64-musl - does not appear to build on musl? I can't do further testing right now, but it's probably due to some glibc-specific transient header include.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new-package-parpd-33295.patch --]
[-- Type: text/x-diff, Size: 4457 bytes --]

From fa87815246277657959da359b42aa766e551c987 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= <arsen@aarsen.me>
Date: Sun, 3 Oct 2021 15:03:40 +0200
Subject: [PATCH] New package: parpd-1.7

---
 srcpkgs/parpd/files/parpd.conf                |  1 +
 srcpkgs/parpd/files/parpd/run                 |  3 ++
 .../patches/0001-fix-building-on-musl.patch   | 24 +++++++++++
 .../0002-Linux-File-compile-warnings.patch    | 43 +++++++++++++++++++
 srcpkgs/parpd/template                        | 20 +++++++++
 5 files changed, 91 insertions(+)
 create mode 100644 srcpkgs/parpd/files/parpd.conf
 create mode 100644 srcpkgs/parpd/files/parpd/run
 create mode 100644 srcpkgs/parpd/patches/0001-fix-building-on-musl.patch
 create mode 100644 srcpkgs/parpd/patches/0002-Linux-File-compile-warnings.patch
 create mode 100644 srcpkgs/parpd/template

diff --git a/srcpkgs/parpd/files/parpd.conf b/srcpkgs/parpd/files/parpd.conf
new file mode 100644
index 000000000000..926fc5f839d2
--- /dev/null
+++ b/srcpkgs/parpd/files/parpd.conf
@@ -0,0 +1 @@
+# see parpd.conf(5)
diff --git a/srcpkgs/parpd/files/parpd/run b/srcpkgs/parpd/files/parpd/run
new file mode 100644
index 000000000000..029dfdac68dd
--- /dev/null
+++ b/srcpkgs/parpd/files/parpd/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+[ -r conf ] && . ./conf
+exec parpd ${OPTS:=-fl} 1>&2
diff --git a/srcpkgs/parpd/patches/0001-fix-building-on-musl.patch b/srcpkgs/parpd/patches/0001-fix-building-on-musl.patch
new file mode 100644
index 000000000000..71d6efe01d33
--- /dev/null
+++ b/srcpkgs/parpd/patches/0001-fix-building-on-musl.patch
@@ -0,0 +1,24 @@
+From 466a788c7533b19f20f6d91514773e89e87f5f6e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= <arsen@aarsen.me>
+Date: Wed, 6 Oct 2021 11:37:14 +0200
+Subject: [PATCH 1/2] fix building on musl
+
+---
+ parpd.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/parpd.c b/parpd.c
+index a178696..19e266c 100644
+--- a/parpd.c
++++ b/parpd.c
+@@ -57,6 +57,7 @@ const char copyright[] = "Copyright (c) 2008-2017 Roy Marples";
+ #include <search.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <signal.h>
+ #include <string.h>
+ #include <syslog.h>
+ #include <unistd.h>
+-- 
+2.32.0
+
diff --git a/srcpkgs/parpd/patches/0002-Linux-File-compile-warnings.patch b/srcpkgs/parpd/patches/0002-Linux-File-compile-warnings.patch
new file mode 100644
index 000000000000..c57b45e19d51
--- /dev/null
+++ b/srcpkgs/parpd/patches/0002-Linux-File-compile-warnings.patch
@@ -0,0 +1,43 @@
+From 5b32ed79ccc1c9bb9a5bd815c28c4a4730cd1cc5 Mon Sep 17 00:00:00 2001
+From: Roy Marples <roy@marples.name>
+Date: Mon, 7 Oct 2019 15:07:25 +0100
+Subject: [PATCH 2/2] Linux: File compile warnings
+
+---
+ lpf.c | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/lpf.c b/lpf.c
+index 36cbd1c..cfd517b 100644
+--- a/lpf.c
++++ b/lpf.c
+@@ -27,6 +27,7 @@
+ #include <sys/types.h>
+ #include <sys/ioctl.h>
+ #include <sys/socket.h>
++#include <sys/uio.h>
+ 
+ #include <arpa/inet.h>
+ #include <net/if.h>
+@@ -91,7 +92,7 @@ bpf_open_arp(struct interface *ifp)
+ 	memset(&su, 0, sizeof(su));
+ 	su.sll.sll_family = PF_PACKET;
+ 	su.sll.sll_protocol = htons(ETH_P_ALL);
+-	su.sll.sll_ifindex = if_nametoindex(ifp->ifname);
++	su.sll.sll_ifindex = (int)if_nametoindex(ifp->ifname);
+ 	if (bind(s, &su.sa, sizeof(su.sll)) == -1)
+ 		goto eexit;
+ 
+@@ -140,7 +141,7 @@ bpf_read(struct interface *ifp, void *data, size_t len)
+ 	}
+ 	bytes -= ETHER_HDR_LEN;
+ 	if ((size_t)bytes > len)
+-		bytes = len;
+-	memcpy(data, ifp->buffer + ETHER_HDR_LEN, bytes);
++		bytes = (ssize_t)len;
++	memcpy(data, ifp->buffer + ETHER_HDR_LEN, (size_t)bytes);
+ 	return bytes;
+ }
+-- 
+2.32.0
+
diff --git a/srcpkgs/parpd/template b/srcpkgs/parpd/template
new file mode 100644
index 000000000000..0991d61360f8
--- /dev/null
+++ b/srcpkgs/parpd/template
@@ -0,0 +1,20 @@
+# Template file for 'parpd'
+pkgname=parpd
+version=1.7
+revision=1
+build_style=gnu-makefile
+make_install_args="BINDIR=/usr/bin"
+short_desc="RFC 1027 compliant Proxy ARP Daemon"
+maintainer="Arsen Arsenović <arsen@aarsen.me>"
+license="BSD-2-Clause"
+homepage="https://roy.marples.name/projects/parpd/"
+distfiles="https://roy.marples.name/downloads/parpd/parpd-${version}.tar.xz"
+checksum=f1f2ed753243b86205922ab0ec1cd0f426779e6b8c273206f0568e819a3fe3b4
+conf_files=/etc/parpd.conf
+
+post_install() {
+	vsv parpd
+	vlicense LICENSE
+
+	vconf "${FILESDIR}/parpd.conf"
+}

  parent reply	other threads:[~2021-10-09 20:26 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-03 13:41 [PR PATCH] " ArsenArsen
2021-10-03 15:23 ` [PR REVIEW] " paper42
2021-10-03 15:23 ` paper42
2021-10-03 15:23 ` paper42
2021-10-03 17:40 ` [PR REVIEW] " ArsenArsen
2021-10-03 17:41 ` [PR PATCH] [Updated] " ArsenArsen
2021-10-06  9:49 ` ArsenArsen
2021-10-06  9:53 ` ArsenArsen
2021-10-08 20:04 ` paper42
2021-10-09 20:20 ` [PR PATCH] [Updated] " ArsenArsen
2021-10-09 20:20 ` ArsenArsen
2021-10-09 20:26 ` ArsenArsen [this message]
2021-10-11 22:00 ` [PR PATCH] [Merged]: " paper42

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=20211009202636.D_twvndoEWVMwhU96QNJsV3crABAoMrI_9Mncra5r5k@z \
    --to=arsenarsen@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).