From nobody Sun Feb 5 19:54:06 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P90TC29KLz3kmYZ; Sun, 5 Feb 2023 19:54:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P90TC1Gl1z4Nn7; Sun, 5 Feb 2023 19:54:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675626847; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=s+IR9XJ1jP3S0KErr84C3g9c2utmQdeLkAJvKhBwuqk=; b=M9azs7Eo9ZUOTswOfbi66VInQSfLyBjP+HSpmb9bmhQA2LZnxfiW3Jrzqhybncov9wUQAl 5x4z28MyOW9QICzksZyFVsKING3IAxs0aZj4J37f7hVFcDizFa+zoyAA1pkQwfqrF0ZhWF OBGqnNbDZ7ao6MllMnHKQTJ4t6KWF88uydwEmx8BY/7EPgFzv/H6CB+ivr4/HOgEAtMVK7 3ktKFW2jzFHMqhols3IV9Fk1kE5gs8VYSuWkUBkvDSdP/q4mHX6/8yZWKXGdMnmC0I0mq/ OkZbI7RC9+7Cn2syA9dWjyOkUJ847Rb30kRyxeGxp92p2P908XGdkoB6XyeAZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675626847; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=s+IR9XJ1jP3S0KErr84C3g9c2utmQdeLkAJvKhBwuqk=; b=gd+ieLC+Lzucz5315A1I/2oMaqUUFp6I4FpE4K3sN65w3dnhsUGGdUkITRooZg3adXTmtU bTBjRy7nUNMX5GmffH/+fWhT/ki84F8dQABJY0nZeeQJiu2GGP6MXCQag85MYGvc7x9ehl QKPu+KVpzP7tiaibYNKD3Vhl+J/kD90IMP5bDiDDr0Egp+D/oQH6hhJZFimRiv+QthheAB tzrrI2p9HmNMTBYOLQ27RkJ1wpuJ5rfksflx5tbcgl4Fyp94YllA1uy6Qt4QOzZ+VTb0VL PQ/ryrMSa2f+PELOfPHF4TTWGpHLM3N9DOpUgemwaJvIO15gQ3B2p9H2ICknWA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675626847; a=rsa-sha256; cv=none; b=ak/DvFo+P4fSos4EFkXzNeQ3eCls75E/K5X8UT6iLSaIn5WO531PBaFiJaPPT9L9tCNoSi WWOhyL/q+O60rMddDHdeSUbThvqeSdYwZDoQjklpJnvuNKNAfA71bai6bVwyb9XYJ3yvvl Py+7jemD6pi5OGXCfwz10uu6d5BMlJnQo3b6XCTM+5qcxtl5W522vi3Cm3TTErlpd1+9wE MOtchYeGD6syxYsznsdsr0aQuxiMPZpfHKD78VgywjeV5uTOorFPccmVK5HswMGCkyGEio SpDsQYw28KQIJSd1tTe4PGHmV4vVTN+mSzvjA+2q6l3sEyWkMkgzTX9W4APwbQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P90TC0LnQz16p9; Sun, 5 Feb 2023 19:54:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 315Js6wU089672; Sun, 5 Feb 2023 19:54:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 315Js6X2089671; Sun, 5 Feb 2023 19:54:06 GMT (envelope-from git) Date: Sun, 5 Feb 2023 19:54:06 GMT Message-Id: <202302051954.315Js6X2089671@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Serhii (Sergey) Kozlov Subject: git: 7d484dbea927 - main - print/p910nd: Moved to github List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: skozlov X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7d484dbea927a3ede696fb4aefed3cbc6631006b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by skozlov: URL: https://cgit.FreeBSD.org/ports/commit/?id=7d484dbea927a3ede696fb4aefed3cbc6631006b commit 7d484dbea927a3ede696fb4aefed3cbc6631006b Author: Serhii (Sergey) Kozlov AuthorDate: 2023-02-05 19:48:29 +0000 Commit: Serhii (Sergey) Kozlov CommitDate: 2023-02-05 19:53:56 +0000 print/p910nd: Moved to github The distfiles were moved to github, so change the port accordingly. Other changes: - Build via embedded gmake Makefile - Add LICENSE file path - Remove scripts from pkg-plist (not in the distribution anymore) - Smaller manpage fixes PR: 269109 Reported by: Daniel Engberg --- print/p910nd/Makefile | 19 +++++++++++-------- print/p910nd/distinfo | 5 +++-- print/p910nd/files/patch-Makefile | 14 ++++++++++++++ print/p910nd/files/patch-p910nd.8 | 14 +++++++------- print/p910nd/pkg-plist | 2 -- 5 files changed, 35 insertions(+), 19 deletions(-) diff --git a/print/p910nd/Makefile b/print/p910nd/Makefile index cf021c6d34e3..1649d84a9a88 100644 --- a/print/p910nd/Makefile +++ b/print/p910nd/Makefile @@ -1,31 +1,34 @@ PORTNAME= p910nd PORTVERSION= 0.97 +PORTREVISION= 1 CATEGORIES= print net -MASTER_SITES= SF MAINTAINER= skozlov@FreeBSD.org COMMENT= Port 9100+n printer daemon -WWW= http://p910nd.sourceforge.net/ +WWW= https://github.com/kenyapcomau/p910nd LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE.md -USES= tar:bzip2 +USES= gmake + +USE_GITHUB= yes +GH_ACCOUNT= kenyapcomau + +ALL_TARGET= ${PORTNAME} USE_RC_SUBR= p910nd P910ND_RUNDIR= /var/run/${PORTNAME} PLIST_SUB= P910ND_RUNDIR=${P910ND_RUNDIR} -CFLAGS+= -DLOCKFILE_DIR="\"${P910ND_RUNDIR}\"" -DUSE_WRAP +MAKE_ENV+= USE_WRAP=yes -do-build: - ${CC} -o ${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}.c ${CFLAGS} +CFLAGS+= -DLOCKFILE_DIR='\"${P910ND_RUNDIR}\"' do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${MANPREFIX}/man/man8 - ${MKDIR} ${STAGEDIR}${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/*.pl ${STAGEDIR}${DATADIR} ${MKDIR} ${STAGEDIR}${P910ND_RUNDIR} .include diff --git a/print/p910nd/distinfo b/print/p910nd/distinfo index 25bfa7efde10..d61e757522c3 100644 --- a/print/p910nd/distinfo +++ b/print/p910nd/distinfo @@ -1,2 +1,3 @@ -SHA256 (p910nd-0.97.tar.bz2) = 4ac980a3ae24babae6f70f0a692625ece03a4a92c357fbb10d2e368386c3c26f -SIZE (p910nd-0.97.tar.bz2) = 20613 +TIMESTAMP = 1675622190 +SHA256 (kenyapcomau-p910nd-0.97_GH0.tar.gz) = a1bcc2dd75bad4e00a9de5098dbd970e8380f978fc09292bcfa15852af6a6964 +SIZE (kenyapcomau-p910nd-0.97_GH0.tar.gz) = 21063 diff --git a/print/p910nd/files/patch-Makefile b/print/p910nd/files/patch-Makefile new file mode 100644 index 000000000000..3b0fd688c6ec --- /dev/null +++ b/print/p910nd/files/patch-Makefile @@ -0,0 +1,14 @@ +--- Makefile.orig 2022-02-08 05:54:54 UTC ++++ Makefile +@@ -11,11 +11,6 @@ CROSS = + # GNU target string + CROSS = + +-CC = $(CROSS)gcc +-STRIP = $(CROSS)strip +- +-CFLAGS += -O2 -Wall +- + PROG = p910nd + MANPAGE = p910nd.8 + INSTALL = install diff --git a/print/p910nd/files/patch-p910nd.8 b/print/p910nd/files/patch-p910nd.8 index ea1211058da7..d10b1e9c94cd 100644 --- a/print/p910nd/files/patch-p910nd.8 +++ b/print/p910nd/files/patch-p910nd.8 @@ -1,6 +1,6 @@ ---- p910nd.8.orig 2013-07-07 17:52:31.000000000 +0300 -+++ p910nd.8 2013-07-07 18:08:04.000000000 +0300 -@@ -11,7 +11,7 @@ +--- p910nd.8.orig 2022-02-08 05:54:54 UTC ++++ p910nd.8 +@@ -11,7 +11,7 @@ it is listening on to the corresponding printer port. .I p910nd is a small daemon that copies any data received on the port it is listening on to the corresponding printer port. @@ -9,7 +9,7 @@ but there is no reason why it could not be used on diskful hosts. Port 9100 is copied to /dev/lp0, 9101 to /dev/lp1 and 9102 to /dev/lp2. The default is port 9100 to /dev/lp0. -@@ -30,15 +30,6 @@ +@@ -33,15 +33,6 @@ It will automatically detect if it is running under (x can be run as a standalone daemon or from (x)inetd. It will automatically detect if it is running under (x)inetd. .LP @@ -25,7 +25,7 @@ When running under (x)inetd, the .I /etc/inetd.conf entry should look something like this (with tcpwrappers protection): -@@ -74,7 +65,7 @@ +@@ -77,7 +68,7 @@ need to set up an intermediate queue anyway to provide spooler and sending all jobs to this host. You will probably need to set up an intermediate queue anyway to provide print job filtering. .LP @@ -34,12 +34,12 @@ Access control can be done with /etc/hosts.allow and /etc/hosts.deny. The service name is p910nd. .SH DIAGNOSTICS -@@ -83,7 +74,7 @@ +@@ -86,7 +77,7 @@ printcap(5), hosts_access(5) .SH "SEE ALSO" printcap(5), hosts_access(5) .SH FILES -/var/run/p9100d.pid, /var/lock/subsys/p9100d, /etc/hosts.allow, /etc/hosts.deny -+/var/run/p9100d.pid, /tmp/p9100d, /etc/hosts.allow, /etc/hosts.deny ++/var/run/p9100d.pid, /var/run/p9100d, /etc/hosts.allow, /etc/hosts.deny .SH COPYRIGHT .I p910nd is under the GNU Public License Version 2 diff --git a/print/p910nd/pkg-plist b/print/p910nd/pkg-plist index c8ba380e1725..0cc50ad899b3 100644 --- a/print/p910nd/pkg-plist +++ b/print/p910nd/pkg-plist @@ -1,5 +1,3 @@ man/man8/p910nd.8.gz sbin/p910nd -%%DATADIR%%/banner.pl -%%DATADIR%%/client.pl @dir %%P910ND_RUNDIR%%