From nobody Tue May 16 15:47: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 4QLLG32D6Hz4B9n5; Tue, 16 May 2023 15:47: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 4QLLG31D5Zz3sLc; Tue, 16 May 2023 15:47:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684252027; 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=21pnuDhIsBY6T3B08iorFIGw6dXgAWsZveG24UwV58g=; b=GJu9GS6AccfaVLYZ1cRT+iD6MHfP9H07zYHiY79FWdijgX+uzdecHBqxVERgZoh013/CyR VCoX6wpGfVfAyIZkwgIwCKjSkQieQR6iJMXfm0g3rp6S3EK77s5gAVxmms1aHHwLkrgesL 9C3K7nh2WCZlR8cOfGhtHkSamdMyM88rIlIMIDQBR8bwC3j4g/K+c6ouMCvB9V8QVmOd8O 0sK1MjP3s2MgsHZ955WVjTskDx0HS6p3guJr4bLtEDNZKBMfZndN++c4Wr12tpB9SLqBvv ckoo3Pb9xW36ATKHfqcPnmEMQDItolyentXRQ7nA39LkPWboDQimoehn41wgsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684252027; 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=21pnuDhIsBY6T3B08iorFIGw6dXgAWsZveG24UwV58g=; b=GQDZeZ+Iq8tLnpujmATaTYDOhx4ShOcPZTgnzU4Qdj0YfK814/uRZmiKj4jRrLST7DV5UM CI4bLM7raJKRmxN3KhpFkRcAtiawWsTkm1iIbcbfhIxbH9JmXYsE5zxTQ/RJCozYbeRiqz 3lET+19YgRuVXR1kDulw8dqOrdTNP/Q4oq/70YjRG6VK0Wbg3adrcaijrJI9FgpcKzCBcJ TOvO4AQDy4Ew0YaBV87xdy39FmS3qkmrAt0YFyLp90NdKVsdCYVDoXBcEfg9BUat+GvqFv VzW8ZjmVJLEeXLcEsurqZYOQixlZ/iRHIv44Sdni5+lYeZ5xfRVtQbNai6q0bg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684252027; a=rsa-sha256; cv=none; b=BoSWnEJjHghjPQbISAnT2nVcDV+BOMKv4o5xcRSI/8XvzKsVR8OHStcZ+ZsuPHgNovpr17 U4C0dwk2KdrvMlBPZ48Uvyyy22ox+ZGFZ3FQgPEIjE67J4TyzPoNVY3S1d7Wp9GDgfX8m1 lpK81fYPvaKPpjMVZuNJAZFOdIdMrm9g4RbnMPx8l2rD+GtX9NpFHS1ltpkoU41ovQgVS0 Q7XmeXSQ9H9DKRjcJ5+7ZrV3hftrBfWQro+49cg2NLRWPAsbfKiD+EUyNlQVz79faxh52K EHgqbWyZdBahKYEWJ/IAliHIv/AodNmh8q3vFAWSBJvPA0I+EJ7TQh2AlCshSw== 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 4QLLG30Fs0zSnm; Tue, 16 May 2023 15:47: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 34GFl6QU043653; Tue, 16 May 2023 15:47:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34GFl6LS043652; Tue, 16 May 2023 15:47:06 GMT (envelope-from git) Date: Tue, 16 May 2023 15:47:06 GMT Message-Id: <202305161547.34GFl6LS043652@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Muhammad Moinur Rahman Subject: git: 2d2f4f4462b7 - main - print/magicfilter: Update version 2.3.h=>2.3.i 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: bofh X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2d2f4f4462b7ff7ddfa496bbf0bbcace9fb78fc3 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=2d2f4f4462b7ff7ddfa496bbf0bbcace9fb78fc3 commit 2d2f4f4462b7ff7ddfa496bbf0bbcace9fb78fc3 Author: Muhammad Moinur Rahman AuthorDate: 2023-05-16 14:29:22 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2023-05-16 15:46:53 +0000 print/magicfilter: Update version 2.3.h=>2.3.i - Switch MASTER_SITES to GH - Adopt port - Add LICENSE BSD3CLAUSE - Unbreak on HEAD - Refresh patches Changelog: https://github.com/Orc/magicfilter/releases/tag/v2.3.i --- print/magicfilter/Makefile | 23 +++++++++++++++-------- print/magicfilter/distinfo | 5 +++-- print/magicfilter/files/patch-Makefile.in | 4 ++-- print/magicfilter/files/patch-configure.sh | 21 --------------------- print/magicfilter/files/patch-fe.c | 11 ----------- print/magicfilter/files/patch-file__file.c | 12 ------------ print/magicfilter/files/patch-getaline.c | 12 ------------ print/magicfilter/files/patch-getline.c | 20 -------------------- print/magicfilter/files/patch-rule.h | 11 ----------- 9 files changed, 20 insertions(+), 99 deletions(-) diff --git a/print/magicfilter/Makefile b/print/magicfilter/Makefile index cf129129fff6..a48840de882e 100644 --- a/print/magicfilter/Makefile +++ b/print/magicfilter/Makefile @@ -1,14 +1,20 @@ PORTNAME= magicfilter -PORTVERSION= 2.3.h -PORTREVISION= 9 +DISTVERSIONPREFIX= v +DISTVERSION= 2.3.i CATEGORIES= print -MASTER_SITES= http://www.pell.portland.or.us/~orc/Code/magicfilter/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= bofh@FreeBSD.org COMMENT= Customizable, extensible automatic printer filter WWW= https://www.pell.portland.or.us/~orc/Code/magicfilter/ +LICENSE= BSD3CLAUSE + +BUILD_DEPENDS= ${LOCALBASE}/lib/libmagic.so:sysutils/file +RUN_DEPENDS= ${LOCALBASE}/lib/libmagic.so:sysutils/file + USES= ghostscript +USE_GITHUB= yes +GH_ACCOUNT= Orc HAS_CONFIGURE= yes CONFIGURE_SCRIPT= configure.sh @@ -18,9 +24,10 @@ CONFIGURE_ARGS+= --prefix=${PREFIX} \ --use-fifo CONFIGURE_ENV+= LOCALBASE=${LOCALBASE} -.if exists(${LOCALBASE}/lib/libmagic.so) -BUILD_DEPENDS+= ${LOCALBASE}/lib/libmagic.so:sysutils/file -RUN_DEPENDS+= ${LOCALBASE}/lib/libmagic.so:sysutils/file +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079 +CFLAGS+= -Wno-error=int-conversion .endif -.include +.include diff --git a/print/magicfilter/distinfo b/print/magicfilter/distinfo index 3cc2987f181a..7c9410eb8cc2 100644 --- a/print/magicfilter/distinfo +++ b/print/magicfilter/distinfo @@ -1,2 +1,3 @@ -SHA256 (magicfilter-2.3.h.tar.gz) = 8d6a3e3e68a16aa43682cdd77e8a9d28635eef4ea5e8dcf558e9a6fb88f8642c -SIZE (magicfilter-2.3.h.tar.gz) = 161929 +TIMESTAMP = 1684246289 +SHA256 (Orc-magicfilter-v2.3.i_GH0.tar.gz) = 39b1e0764c6318d2e90c20b58b135d9eb29facd9b8055c8b1c4766a731d20afe +SIZE (Orc-magicfilter-v2.3.i_GH0.tar.gz) = 120443 diff --git a/print/magicfilter/files/patch-Makefile.in b/print/magicfilter/files/patch-Makefile.in index df6d48ceea91..07312cf1f56d 100644 --- a/print/magicfilter/files/patch-Makefile.in +++ b/print/magicfilter/files/patch-Makefile.in @@ -1,5 +1,5 @@ ---- Makefile.in.orig 2014-07-07 11:57:40.878417316 +0800 -+++ Makefile.in 2014-07-07 11:59:03.900407189 +0800 +--- Makefile.in.orig 2009-11-23 03:45:02 UTC ++++ Makefile.in @@ -44,46 +44,46 @@ cfmagic: file/magic @MAKE_MAGIC@ magic diff --git a/print/magicfilter/files/patch-configure.sh b/print/magicfilter/files/patch-configure.sh deleted file mode 100644 index e286659fe156..000000000000 --- a/print/magicfilter/files/patch-configure.sh +++ /dev/null @@ -1,21 +0,0 @@ ---- configure.sh.orig Thu Apr 27 10:32:23 2006 -+++ configure.sh Thu Apr 27 10:33:46 2006 -@@ -1061,6 +1061,7 @@ - AC_LIBS="$AC_LIBS -lz" - unset BUILD_MAGIC - fi -+ unset BUILD_MAGIC - - if [ "$BUILD_MAGIC" ]; then - case $ac_os in -@@ -1106,8 +1107,8 @@ - AC_SUB CFMAGIC "cfmagic" - else - AC_SUB LIBMAGIC "" -- AC_SUB MAGIC_HEADER "" -- AC_SUB MAGIC_LIB "" -+ AC_SUB MAGIC_HEADER "-I${LOCALBASE}/include" -+ AC_SUB MAGIC_LIB "-L${LOCALBASE}/lib -Wl,-rpath -Wl,${LOCALBASE}/lib" - AC_SUB MAKE_MAGIC ":" - AC_SUB CFMAGIC "" - fi diff --git a/print/magicfilter/files/patch-fe.c b/print/magicfilter/files/patch-fe.c deleted file mode 100644 index 5df9f96ae79c..000000000000 --- a/print/magicfilter/files/patch-fe.c +++ /dev/null @@ -1,11 +0,0 @@ ---- fe.c.orig 2003-05-09 18:27:15 UTC -+++ fe.c -@@ -128,7 +128,7 @@ be(int input, int output) - - /* read rules - */ -- while ( (r = getline(f)) != 0) { -+ while ( (r = get_line(f)) != 0) { - rulecount++; - if (tail) { - tail->next = r; diff --git a/print/magicfilter/files/patch-file__file.c b/print/magicfilter/files/patch-file__file.c deleted file mode 100644 index 4a377f9ed4c8..000000000000 --- a/print/magicfilter/files/patch-file__file.c +++ /dev/null @@ -1,12 +0,0 @@ -diff -ur file/file.c file/file.c ---- file/file.c Sun Dec 5 01:32:50 2004 -+++ file/file.c Sun Dec 5 01:34:31 2004 -@@ -33,7 +33,7 @@ - #include - #include - #include /* for MAXPATHLEN */ --#include -+#include - - extern int getopt(); - extern int optind; diff --git a/print/magicfilter/files/patch-getaline.c b/print/magicfilter/files/patch-getaline.c deleted file mode 100644 index 175cf13fc37c..000000000000 --- a/print/magicfilter/files/patch-getaline.c +++ /dev/null @@ -1,12 +0,0 @@ -diff -ur getaline.c getaline.c ---- getaline.c Sun Dec 5 01:32:50 2004 -+++ getaline.c Sun Dec 5 01:33:24 2004 -@@ -27,7 +27,7 @@ - * THE POSSIBILITY OF SUCH DAMAGE. - */ - #include --#include -+#include - - #include "magicfilter.h" - diff --git a/print/magicfilter/files/patch-getline.c b/print/magicfilter/files/patch-getline.c deleted file mode 100644 index 02fdb0dd9b0e..000000000000 --- a/print/magicfilter/files/patch-getline.c +++ /dev/null @@ -1,20 +0,0 @@ ---- getline.c.orig 2002-12-14 09:02:26 UTC -+++ getline.c -@@ -34,7 +34,7 @@ - * /pattern/ action[/hint/] [arg {arg ...}] - */ - --#include -+#include - #include - #include - #include "rule.h" -@@ -175,7 +175,7 @@ vis(FILE *output, unsigned char *s) - * getline() gets a rule off the input stream - */ - struct rule * --getline(FILE *input) -+get_line(FILE *input) - { - static char *bfr = 0; /* a buffer for reading lines into */ - static int buflen = 0; /* size of that buffer */ diff --git a/print/magicfilter/files/patch-rule.h b/print/magicfilter/files/patch-rule.h deleted file mode 100644 index f3b6b2057289..000000000000 --- a/print/magicfilter/files/patch-rule.h +++ /dev/null @@ -1,11 +0,0 @@ ---- rule.h.orig 2002-07-11 23:23:43 UTC -+++ rule.h -@@ -55,7 +55,7 @@ struct rule { - struct rule *next; /* next rule in the chain */ - } ; - --extern struct rule *getline(FILE *); -+extern struct rule *get_line(FILE *); - extern struct rule *rules; - char * action_p(enum rule_action); -