1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Unbreak on 6.x and 7.x

Approved by:	portmgr (implicit)
This commit is contained in:
Kirill Ponomarev 2005-08-05 13:15:39 +00:00
parent 97199bfa82
commit f5c6cf19ce
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=140788
13 changed files with 188 additions and 4 deletions

View File

@ -24,10 +24,6 @@ MYPORTDOCS= CHANGES COPYRIGHT INSTALL LICENSE MANIFEST OS-NOTES README.FIRST TOD
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 600000
BROKEN= "Does not build on FreeBSD >= 6.x"
.endif
post-patch:
${SED} -e 's,/usr/local,${PREFIX},g' pkg-message > ${PKGMESSAGE}

View File

@ -0,0 +1,16 @@
$FreeBSD$
--- extras/entropy/makedefs.orig
+++ extras/entropy/makedefs
@@ -9,6 +9,10 @@
FreeBSD.4*) DEFS="-DFREEBSD4"
;;
FreeBSD.5*) DEFS="-DFREEBSD5"
+ ;;
+ FreeBSD.6*) DEFS="-DFREEBSD6"
+ ;;
+ FreeBSD.7*) DEFS="-DFREEBSD7"
;;
OpenBSD.2*) DEFS="-DOPENBSD2"
;;

View File

@ -0,0 +1,16 @@
$FreeBSD$
--- extras/findkey/makedefs.orig
+++ extras/findkey/makedefs
@@ -9,6 +9,10 @@
FreeBSD.4*) DEFS="-DFREEBSD4"
;;
FreeBSD.5*) DEFS="-DFREEBSD5"
+ ;;
+ FreeBSD.6*) DEFS="-DFREEBSD6"
+ ;;
+ FreeBSD.7*) DEFS="-DFREEBSD7"
;;
OpenBSD.2*) DEFS="-DOPENBSD2"
;;

View File

@ -0,0 +1,16 @@
$FreeBSD$
--- src/aux/makedefs.orig
+++ src/aux/makedefs
@@ -10,6 +10,10 @@
;;
FreeBSD.5*) DEFS="-DFREEBSD5"
;;
+ FreeBSD.6*) DEFS="-DFREEBSD6"
+ ;;
+ FreeBSD.7*) DEFS="-DFREEBSD7"
+ ;;
OpenBSD.2*) DEFS="-DOPENBSD2"
;;
OpenBSD.3*) DEFS="-DOPENBSD3"

View File

@ -0,0 +1,16 @@
$FreeBSD$
--- src/file/makedefs.orig
+++ src/file/makedefs
@@ -9,6 +9,10 @@
FreeBSD.4*) DEFS="-DFREEBSD4"
;;
FreeBSD.5*) DEFS="-DFREEBSD5"
+ ;;
+ FreeBSD.6*) DEFS="-DFREEBSD6"
+ ;;
+ FreeBSD.7*) DEFS="-DFREEBSD7"
;;
OpenBSD.2*) DEFS="-DOPENBSD2"
;;

View File

@ -0,0 +1,14 @@
$FreeBSD$
--- src/fstools/fs_tools.h.orig
+++ src/fstools/fs_tools.h
@@ -115,7 +115,7 @@
#define INO_TO_CG ino_to_cg
#endif
-#if defined(FREEBSD5)
+#if defined(FREEBSD5) || defined(FREEBSD6) || defined(FREEBSD7)
#define SUPPORTED
#include <sys/vnode.h>
#include <ufs/ufs/quota.h>

View File

@ -0,0 +1,16 @@
$FreeBSD$
--- src/fstools/makedefs.orig
+++ src/fstools/makedefs
@@ -9,6 +9,10 @@
FreeBSD.4*) DEFS="-DFREEBSD4"
;;
FreeBSD.5*) DEFS="-DFREEBSD5"
+ ;;
+ FreeBSD.6*) DEFS="-DFREEBSD6"
+ ;;
+ FreeBSD.7*) DEFS="-DFREEBSD7"
;;
OpenBSD.2*) DEFS="-DOPENBSD2"
;;

View File

@ -0,0 +1,16 @@
$FreeBSD$
--- src/lastcomm/makedefs.orig
+++ src/lastcomm/makedefs
@@ -9,6 +9,10 @@
FreeBSD.4*) DEFS="-DFREEBSD4"
;;
FreeBSD.5*) DEFS="-DFREEBSD5"
+ ;;
+ FreeBSD.6*) DEFS="-DFREEBSD6"
+ ;;
+ FreeBSD.7*) DEFS="-DFREEBSD7"
;;
OpenBSD.3*) DEFS="-DOPENBSD3"
;;

View File

@ -0,0 +1,14 @@
$FreeBSD$
--- src/lastcomm/sys_defs.h.orig
+++ src/lastcomm/sys_defs.h
@@ -6,7 +6,7 @@
* This software is distributed under the IBM Public License.
*/
#if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4) \
- || defined(FREEBSD5) \
+ || defined(FREEBSD5) || defined(FREEBSD6) || defined(FREEBSD7) \
|| defined(BSDI2) || defined(BSDI3) || defined(BSDI4) \
|| defined(OPENBSD2) || defined(OPENBSD3)
#define SUPPORTED

View File

@ -0,0 +1,16 @@
$FreeBSD$
--- src/major_minor/makedefs.orig
+++ src/major_minor/makedefs
@@ -9,6 +9,10 @@
FreeBSD.4*) DEFS="-DFREEBSD4"
;;
FreeBSD.5*) DEFS="-DFREEBSD5"
+ ;;
+ FreeBSD.6*) DEFS="-DFREEBSD6"
+ ;;
+ FreeBSD.7*) DEFS="-DFREEBSD7"
;;
OpenBSD.2*) DEFS="-DOPENBSD2"
;;

View File

@ -0,0 +1,16 @@
$FreeBSD$
--- src/misc/makedefs.orig
+++ src/misc/makedefs
@@ -9,6 +9,10 @@
FreeBSD.4*) DEFS="-DFREEBSD4"
;;
FreeBSD.5*) DEFS="-DFREEBSD5"
+ ;;
+ FreeBSD.6*) DEFS="-DFREEBSD6"
+ ;;
+ FreeBSD.7*) DEFS="-DFREEBSD7"
;;
OpenBSD.2*) DEFS="-DOPENBSD2"
;;

View File

@ -0,0 +1,18 @@
$FreeBSD$
--- src/pcat/makedefs.orig
+++ src/pcat/makedefs
@@ -13,6 +13,12 @@
;;
FreeBSD.5*) DEFS="-DFREEBSD5"
SYSLIBS="-lkvm"
+ ;;
+ FreeBSD.6*) DEFS="-DFREEBSD6"
+ SYSLIBS="-lkvm"
+ ;;
+ FreeBSD.7*) DEFS="-DFREEBSD7"
+ SYSLIBS="-lkvm"
;;
OpenBSD.2*) DEFS="-DOPENBSD2"
SYSLIBS="-lkvm"

View File

@ -0,0 +1,14 @@
$FreeBSD$
--- src/pcat/pcat.c.orig
+++ src/pcat/pcat.c
@@ -114,7 +114,7 @@
* grope kernel memory instead.
*/
#if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4) \
- || defined(FREEBSD5)
+ || defined(FREEBSD5) || defined(FREEBSD6) || defined(FREEBSD7)
#define SUPPORTED
#include <sys/param.h>
#include <sys/user.h>