Import of pkgsrc-2014Q1
This commit is contained in:
@@ -1,31 +1,10 @@
|
||||
$NetBSD: patch-ai,v 1.28 2012/12/13 16:23:14 taca Exp $
|
||||
$NetBSD: patch-ai,v 1.31 2014/02/09 05:34:13 taca Exp $
|
||||
|
||||
Make this pkgsrc friendly.
|
||||
Add support for NetBSD 5.x, NetBSD 6.x and DragonFly BSD.
|
||||
|
||||
--- makedefs.orig 2012-12-12 22:49:32.000000000 +0000
|
||||
--- makedefs.orig 2014-01-05 17:18:56.000000000 +0000
|
||||
+++ makedefs
|
||||
@@ -148,6 +148,8 @@ case "$SYSTEM.$RELEASE" in
|
||||
;;
|
||||
FreeBSD.9*) SYSTYPE=FREEBSD9
|
||||
;;
|
||||
+ DragonFly.*) SYSTYPE=DRAGONFLY
|
||||
+ ;;
|
||||
OpenBSD.2*) SYSTYPE=OPENBSD2
|
||||
;;
|
||||
OpenBSD.3*) SYSTYPE=OPENBSD3
|
||||
@@ -166,6 +168,10 @@ case "$SYSTEM.$RELEASE" in
|
||||
;;
|
||||
NetBSD.4*) SYSTYPE=NETBSD4
|
||||
;;
|
||||
+ NetBSD.5*) SYSTYPE=NETBSD5
|
||||
+ ;;
|
||||
+ NetBSD.6*) SYSTYPE=NETBSD6
|
||||
+ ;;
|
||||
BSD/OS.2*) SYSTYPE=BSDI2
|
||||
;;
|
||||
BSD/OS.3*) SYSTYPE=BSDI3
|
||||
@@ -218,13 +224,6 @@ case "$SYSTEM.$RELEASE" in
|
||||
@@ -239,13 +239,6 @@ case "$SYSTEM.$RELEASE" in
|
||||
esac
|
||||
;;
|
||||
ULTRIX.4*) SYSTYPE=ULTRIX4
|
||||
@@ -39,41 +18,92 @@ Add support for NetBSD 5.x, NetBSD 6.x and DragonFly BSD.
|
||||
for l in syslog resolv; do
|
||||
if [ -f /usr/local/lib/lib$l.a ]; then
|
||||
SYSLIBS="$SYSLIBS -l$l"
|
||||
@@ -262,25 +261,8 @@ case "$SYSTEM.$RELEASE" in
|
||||
@@ -283,33 +276,8 @@ case "$SYSTEM.$RELEASE" in
|
||||
esac;;
|
||||
# Tested with RedHat 3.03 on 20020729.
|
||||
Linux.1*) SYSTYPE=LINUX1
|
||||
- SYSLIBS="-ldb"
|
||||
- case "$CCARGS" in
|
||||
- *-DNO_DB*) ;;
|
||||
- *-DHAS_DB*) ;;
|
||||
- *) SYSLIBS="-ldb";;
|
||||
- esac
|
||||
;;
|
||||
Linux.2*) SYSTYPE=LINUX2
|
||||
- # Postfix no longer needs DB 1.85 compatibility
|
||||
- if [ -f /usr/include/db.h ]
|
||||
- then
|
||||
- : we are all set
|
||||
- elif [ -f /usr/include/db/db.h ]
|
||||
- then
|
||||
- CCARGS="$CCARGS -I/usr/include/db"
|
||||
- else
|
||||
- # No, we're not going to try db1 db2 db3 etc.
|
||||
- # On a properly installed system, Postfix builds
|
||||
- # by including <db.h> and by linking with -ldb
|
||||
- echo "No <db.h> include file found." 1>&2
|
||||
- echo "Install the appropriate db*-devel package first." 1>&2
|
||||
- echo "See the RELEASE_NOTES file for more information." 1>&2
|
||||
- exit 1
|
||||
- fi
|
||||
# GDBM locks the DBM .pag file after open. This breaks postmap.
|
||||
# if [ -f /usr/include/gdbm-ndbm.h ]
|
||||
# then
|
||||
@@ -291,7 +273,6 @@ case "$SYSTEM.$RELEASE" in
|
||||
# CCARGS="$CCARGS -DHAS_DBM -DPATH_NDBM_H='<gdbm/ndbm.h>'"
|
||||
# GDBM_LIBS=gdbm
|
||||
# fi
|
||||
- SYSLIBS="-ldb"
|
||||
- case "$CCARGS" in
|
||||
- *-DNO_DB*) ;;
|
||||
- *-DHAS_DB*) ;;
|
||||
- *) if [ -f /usr/include/db.h ]
|
||||
- then
|
||||
- : we are all set
|
||||
- elif [ -f /usr/include/db/db.h ]
|
||||
- then
|
||||
- CCARGS="$CCARGS -I/usr/include/db"
|
||||
- else
|
||||
- # No, we're not going to try db1 db2 db3 etc.
|
||||
- # On a properly installed system, Postfix builds
|
||||
- # by including <db.h> and by linking with -ldb
|
||||
- echo "No <db.h> include file found." 1>&2
|
||||
- echo "Install the appropriate db*-devel package first." 1>&2
|
||||
- exit 1
|
||||
- fi
|
||||
- SYSLIBS="-ldb"
|
||||
- ;;
|
||||
- esac
|
||||
for name in nsl resolv $GDBM_LIBS
|
||||
do
|
||||
for lib in /usr/lib64 /lib64 /usr/lib /lib
|
||||
@@ -420,25 +401,13 @@ EOF
|
||||
@@ -363,25 +331,6 @@ EOF
|
||||
esac
|
||||
;;
|
||||
Linux.3*) SYSTYPE=LINUX3
|
||||
- case "$CCARGS" in
|
||||
- *-DNO_DB*) ;;
|
||||
- *-DHAS_DB*) ;;
|
||||
- *) if [ -f /usr/include/db.h ]
|
||||
- then
|
||||
- : we are all set
|
||||
- elif [ -f /usr/include/db/db.h ]
|
||||
- then
|
||||
- CCARGS="$CCARGS -I/usr/include/db"
|
||||
- else
|
||||
- # On a properly installed system, Postfix builds
|
||||
- # by including <db.h> and by linking with -ldb
|
||||
- echo "No <db.h> include file found." 1>&2
|
||||
- echo "Install the appropriate db*-devel package first." 1>&2
|
||||
- exit 1
|
||||
- fi
|
||||
- SYSLIBS="-ldb"
|
||||
- ;;
|
||||
- esac
|
||||
for name in nsl resolv
|
||||
do
|
||||
for lib in /usr/lib64 /lib64 /usr/lib /usr/lib/* /lib /lib/*
|
||||
@@ -395,24 +344,6 @@ EOF
|
||||
;;
|
||||
GNU.0*|GNU/kFreeBSD.[567]*)
|
||||
SYSTYPE=GNU0
|
||||
- case "$CCARGS" in
|
||||
- *-DNO_DB*) ;;
|
||||
- *) if [ -f /usr/include/db.h ]
|
||||
- then
|
||||
- : we are all set
|
||||
- elif [ -f /usr/include/db/db.h ]
|
||||
- then
|
||||
- CCARGS="$CCARGS -I/usr/include/db"
|
||||
- else
|
||||
- # On a properly installed system, Postfix builds
|
||||
- # by including <db.h> and by linking with -ldb
|
||||
- echo "No <db.h> include file found." 1>&2
|
||||
- echo "Install the appropriate db*-devel package first." 1>&2
|
||||
- exit 1
|
||||
- fi
|
||||
- SYSLIBS="-ldb"
|
||||
- ;;
|
||||
- esac
|
||||
for name in nsl resolv
|
||||
do
|
||||
for lib in /usr/lib64 /lib64 /usr/lib /lib
|
||||
@@ -443,25 +374,13 @@ EOF
|
||||
HP-UX.A.09.*) SYSTYPE=HPUX9
|
||||
SYSLIBS=-ldbm
|
||||
CCARGS="$CCARGS -DMISSING_USLEEP"
|
||||
|
||||
Reference in New Issue
Block a user