summaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2005-03-16 13:20:55 +0000
committervs <vs@FreeBSD.org>2005-03-16 13:20:55 +0000
commit6b11a1e44d5aba79eddaea34f978c43319d66c34 (patch)
treea09acc77ff6fb7c9e563bd4f7a93754913d1ca70 /sysutils
parent1a5bfcea1a888927cc2345ebb57e9362de3db748 (diff)
downloadFreeBSD-ports-6b11a1e44d5aba79eddaea34f978c43319d66c34.zip
FreeBSD-ports-6b11a1e44d5aba79eddaea34f978c43319d66c34.tar.gz
Add patch to work on systems newer than 500036
PR: ports/74916 Submitted by: Joel Diaz Approved by: maintainer
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/bpm/Makefile2
-rw-r--r--sysutils/bpm/files/patch-src::refresh.c16
2 files changed, 10 insertions, 8 deletions
diff --git a/sysutils/bpm/Makefile b/sysutils/bpm/Makefile
index 35587d0..e707cd7 100644
--- a/sysutils/bpm/Makefile
+++ b/sysutils/bpm/Makefile
@@ -7,7 +7,7 @@
PORTNAME= bpm
PORTVERSION= 0.4.1b
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= sysutils
MASTER_SITES= http://www.meowfishies.com/code/bpm/
EXTRACT_SUFX= .tgz
diff --git a/sysutils/bpm/files/patch-src::refresh.c b/sysutils/bpm/files/patch-src::refresh.c
index be123be..d5a05c3 100644
--- a/sysutils/bpm/files/patch-src::refresh.c
+++ b/sysutils/bpm/files/patch-src::refresh.c
@@ -1,10 +1,12 @@
---- src/refresh.c.orig Tue Aug 24 02:40:08 2004
-+++ src/refresh.c Tue Oct 12 12:31:32 2004
-@@ -62,7 +62,11 @@
+--- src/refresh.c.orig Mon Aug 23 22:40:08 2004
++++ src/refresh.c Fri Dec 10 08:58:03 2004
+@@ -62,7 +62,13 @@
__RCSID("$Id: refresh.c,v 1.32 2004/08/24 02:40:08 sethk Exp $");
/* XXX use libinstall/lib.h */
-+#if __FreeBSD_version >= 500036
++#if __FreeBSD_version >= 600000
++#define INDEX_FN PORTS_BASE "/INDEX-6"
++#elif __FreeBSD_version >= 500036
+#define INDEX_FN PORTS_BASE "/INDEX-5"
+#else
#define INDEX_FN PORTS_BASE "/INDEX"
@@ -12,7 +14,7 @@
#define INDEX_MAXLN 4096
#define DB_DIR "/var/db/pkg"
#define ITER_BYTES (128 * 1024)
-@@ -183,10 +187,12 @@
+@@ -183,10 +189,12 @@
if (*sp == '|')
++i;
@@ -27,7 +29,7 @@
#endif /* DEBUG */
return FALSE;
}
-@@ -195,12 +201,9 @@
+@@ -195,12 +203,9 @@
for (i = 0; i < PFIELD_NFIELD; ++i)
{
@@ -43,7 +45,7 @@
switch (i)
{
-@@ -320,7 +323,6 @@
+@@ -320,7 +325,6 @@
if (_refresh_index_parse(ln, portdp, rdp) != TRUE)
{
OpenPOWER on IntegriCloud