summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoragc <agc>1997-10-13 14:03:10 +0000
committeragc <agc>1997-10-13 14:03:10 +0000
commitb87ecbb365c3c48efc6bb5b0819088b33a58bf2c (patch)
treefc15c7353aa1b034d6347a473b2387c56ce4bd0b
parent5c2fcae9598cfff71f3099dfa245326646ccba90 (diff)
downloadpkgsrc-b87ecbb365c3c48efc6bb5b0819088b33a58bf2c.tar.gz
Add support for NetBSD, using uname -s to work out which OS we're on.
-rw-r--r--misc/amanda/scripts/configure6
-rw-r--r--sysutils/amanda/scripts/configure6
2 files changed, 10 insertions, 2 deletions
diff --git a/misc/amanda/scripts/configure b/misc/amanda/scripts/configure
index 25832ebaf14..dc21ca87784 100644
--- a/misc/amanda/scripts/configure
+++ b/misc/amanda/scripts/configure
@@ -4,5 +4,9 @@ CFLAGS=`cat /tmp/build-ports-misc-amanda-cflags`
rm /tmp/build-ports-misc-amanda-cflags
echo $CFLAGS
-mv $WRKSRC/config/config.h-freebsd2 $WRKSRC/config/config.h
+if [ "X`uname -s`" = "NetBSD" ]; then
+ mv $WRKSRC/config/config.h-netbsd1 $WRKSRC/config/config.h
+else
+ mv $WRKSRC/config/config.h-freebsd2 $WRKSRC/config/config.h
+fi
sed "s/#define MK_CCOPTS -g/#define MK_CCOPTS $CFLAGS/" < $WRKSRC/config/options.h-vanilla > $WRKSRC/config/options.h
diff --git a/sysutils/amanda/scripts/configure b/sysutils/amanda/scripts/configure
index 25832ebaf14..dc21ca87784 100644
--- a/sysutils/amanda/scripts/configure
+++ b/sysutils/amanda/scripts/configure
@@ -4,5 +4,9 @@ CFLAGS=`cat /tmp/build-ports-misc-amanda-cflags`
rm /tmp/build-ports-misc-amanda-cflags
echo $CFLAGS
-mv $WRKSRC/config/config.h-freebsd2 $WRKSRC/config/config.h
+if [ "X`uname -s`" = "NetBSD" ]; then
+ mv $WRKSRC/config/config.h-netbsd1 $WRKSRC/config/config.h
+else
+ mv $WRKSRC/config/config.h-freebsd2 $WRKSRC/config/config.h
+fi
sed "s/#define MK_CCOPTS -g/#define MK_CCOPTS $CFLAGS/" < $WRKSRC/config/options.h-vanilla > $WRKSRC/config/options.h