Commit Diff
Diff:
99ed55edd599d8c9a656658a4906b63e5cb3496c
ed3a10c5a1d0c863eafb848e442e5da57ed3cca0
Commit:
ed3a10c5a1d0c863eafb848e442e5da57ed3cca0
Tree:
baccec8e1613bfd7ed85359a7322aaddf86f2c77
Author:
pbug <pbug@delphinusdns.org>
Committer:
pbug <pbug@delphinusdns.org>
Date:
Wed Apr 13 15:55:28 2011 UTC
Message:
* when configuring find out diff between freebsd 7 and rest as 7.X needs a different makefile * freebsd makefiles with afterinstall entry for executing script in freebsd/install.sh
blob - /dev/null
blob + 5445bd9d2f7e71e6309e9d64e5f40cebe94a6a8c (mode 644)
--- /dev/null
+++ Makefile.freebsd7
@@ -0,0 +1,18 @@
+PROG=wildcarddnsd
+
+SRCS=main.c parse.c reply.c additional.c region.c wildcard.c recurse.c res_random.c bsd-arc4random.c
+
+#CFLAGS= -DDEBUG -g -Wall
+CFLAGS= -Wall -g
+LDFLAGS= -Wall -g
+LDADD= -lcrypto -lssl
+
+OBJDIR=.
+BINDIR=/usr/local/sbin
+
+MAN= wildcarddnsd.8
+
+afterinstall:
+ @freebsd/install.sh
+
+.include <bsd.prog.mk>
blob - /dev/null
blob + bc4722c519438156dbcf8b4c8b9a101859c5354c (mode 644)
--- /dev/null
+++ Makefile.freebsd8
@@ -0,0 +1,18 @@
+PROG=wildcarddnsd
+
+SRCS=main.c parse.c reply.c additional.c region.c wildcard.c recurse.c res_random.c
+
+#CFLAGS= -DDEBUG -g -Wall
+CFLAGS= -Wall -g
+LDFLAGS= -Wall -g
+#LDADD= -lcrypto -lssl
+
+OBJDIR=.
+BINDIR=/usr/local/sbin
+
+MAN= wildcarddnsd.8
+
+afterinstall:
+ @freebsd/install.sh
+
+.include <bsd.prog.mk>
blob - 7233572f32adebd0313063ca1475e7da2f2fcff3
blob + 6f9d389c0180dd639a46ba524f3c28823e1dcc66
--- configure
+++ configure
@@ -6,6 +6,21 @@ function bsd {
}
+function freebsd {
+ echo configuring for FreeBSD
+
+ case "`uname -r`" in
+ 7.*)
+ echo configuring for FreeBSD 7.X
+ cp Makefile.freebsd7 Makefile
+ ;;
+ *)
+ cp Makefile.freebsd8 Makefile
+ ;;
+ esac
+
+}
+
function linux {
echo configuring for Linux
cp Makefile.linux Makefile
@@ -25,7 +40,7 @@ OpenBSD)
bsd;
;;
FreeBSD)
- bsd
+ freebsd
;;
NetBSD)
bsd;
blob - /dev/null
blob + 24f3d110647beb9897ec2b79600bd5996d1597f9 (mode 644)
--- /dev/null
+++ freebsd/install.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+echo This is an install script
repomaster@centroid.eu