From 4e2cf54fdb92858f5e4b45fc1244d0f4f73a3219 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sat, 4 May 1996 08:02:31 +0000 Subject: [PATCH] Minimal adjustments to get the Stallion utilities to build and install in a FreeBSD style source tree. --- usr.sbin/stallion/Makefile | 5 +++++ usr.sbin/stallion/Makefile.inc | 7 ++++++ usr.sbin/stallion/bootcode/2681.sys.uu | 2 +- usr.sbin/stallion/bootcode/Makefile | 30 ++++++++++++++++++++++++++ usr.sbin/stallion/bootcode/cdk.sys.uu | 2 +- usr.sbin/stallion/stlload/Makefile | 8 +++++++ usr.sbin/stallion/stlload/stlload.c | 8 ++++--- usr.sbin/stallion/stlstats/Makefile | 9 ++++++++ usr.sbin/stallion/stlstats/stlstats.c | 6 ++++-- 9 files changed, 70 insertions(+), 7 deletions(-) create mode 100644 usr.sbin/stallion/Makefile create mode 100644 usr.sbin/stallion/Makefile.inc create mode 100644 usr.sbin/stallion/bootcode/Makefile create mode 100644 usr.sbin/stallion/stlload/Makefile create mode 100644 usr.sbin/stallion/stlstats/Makefile diff --git a/usr.sbin/stallion/Makefile b/usr.sbin/stallion/Makefile new file mode 100644 index 00000000000..44c3b639d67 --- /dev/null +++ b/usr.sbin/stallion/Makefile @@ -0,0 +1,5 @@ +# $Id$ + +SUBDIR= bootcode stlload stlstats + +.include diff --git a/usr.sbin/stallion/Makefile.inc b/usr.sbin/stallion/Makefile.inc new file mode 100644 index 00000000000..53b9b3e6a00 --- /dev/null +++ b/usr.sbin/stallion/Makefile.inc @@ -0,0 +1,7 @@ +# $Id$ + +BOOTDIR= /usr/libdata/stallion + +.if exists(${.CURDIR}/../../Makefile.inc) +.include "${.CURDIR}/../../Makefile.inc" +.endif diff --git a/usr.sbin/stallion/bootcode/2681.sys.uu b/usr.sbin/stallion/bootcode/2681.sys.uu index 8da74933103..3cbe84201b0 100644 --- a/usr.sbin/stallion/bootcode/2681.sys.uu +++ b/usr.sbin/stallion/bootcode/2681.sys.uu @@ -1,4 +1,4 @@ -begin 440 2681.sys +begin 444 2681.sys M```````````````````````````````````````````````````````````` M``````!>`0`````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` diff --git a/usr.sbin/stallion/bootcode/Makefile b/usr.sbin/stallion/bootcode/Makefile new file mode 100644 index 00000000000..ea585e8d2ec --- /dev/null +++ b/usr.sbin/stallion/bootcode/Makefile @@ -0,0 +1,30 @@ +# $Id$ + +FILES = 2681.sys cdk.sys + +LIBMODE = 444 +LIBOWN = bin +LIBGRP = bin +CLEANFILES= ${FILES} + +all: $(FILES) + +install: + @if [ ! -d ${DESTDIR}${BOOTDIR} ]; then mkdir ${DESTDIR}${BOOTDIR};fi + @for i in ${FILES}; do \ + ${ECHO} "installing $$i into ${DESTDIR}${BOOTDIR}"; \ + ${INSTALL} -c -m ${LIBMODE} -o ${LIBOWN} -g ${LIBGRP} \ + $$i ${DESTDIR}${BOOTDIR}; \ + done + +clean: + rm -f ${CLEANFILES} + +.include + +cdk.sys: ${.CURDIR}/cdk.sys.uu + uudecode ${.CURDIR}/$@.uu + +2681.sys: ${.CURDIR}/2681.sys.uu + uudecode ${.CURDIR}/$@.uu + diff --git a/usr.sbin/stallion/bootcode/cdk.sys.uu b/usr.sbin/stallion/bootcode/cdk.sys.uu index 8d000833916..f8b33edccb0 100644 --- a/usr.sbin/stallion/bootcode/cdk.sys.uu +++ b/usr.sbin/stallion/bootcode/cdk.sys.uu @@ -1,4 +1,4 @@ -begin 440 cdk.sys +begin 444 cdk.sys M```````````````````````````````````````````````````````````` M``````!@`0`````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` diff --git a/usr.sbin/stallion/stlload/Makefile b/usr.sbin/stallion/stlload/Makefile new file mode 100644 index 00000000000..99142f234a4 --- /dev/null +++ b/usr.sbin/stallion/stlload/Makefile @@ -0,0 +1,8 @@ +# $Id$ + +PROG= stlload +NOMAN= #oops + +CFLAGS+=-DBOOTDIR=\"${BOOTDIR}\" + +.include diff --git a/usr.sbin/stallion/stlload/stlload.c b/usr.sbin/stallion/stlload/stlload.c index d44c052de96..7f627796129 100644 --- a/usr.sbin/stallion/stlload/stlload.c +++ b/usr.sbin/stallion/stlload/stlload.c @@ -32,6 +32,8 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. + * + * $Id$ */ /*****************************************************************************/ @@ -45,14 +47,14 @@ #include #include -#include "cdk.h" +#include /*****************************************************************************/ char *version = "0.0.5"; char *defdevice = "/dev/staliomem%d"; -char *image = "/usr/lib/stallion/cdk.sys"; -char *oldimage = "/usr/lib/stallion/2681.sys"; +char *image = BOOTDIR "/cdk.sys"; +char *oldimage = BOOTDIR "/2681.sys"; char *progname; char *memdevice; diff --git a/usr.sbin/stallion/stlstats/Makefile b/usr.sbin/stallion/stlstats/Makefile new file mode 100644 index 00000000000..347b4e99f31 --- /dev/null +++ b/usr.sbin/stallion/stlstats/Makefile @@ -0,0 +1,9 @@ +# $Id$ + +PROG= stlstats +NOMAN= #oops + +LDADD= -lncurses +DPADD= ${LIBNCURSES} + +.include diff --git a/usr.sbin/stallion/stlstats/stlstats.c b/usr.sbin/stallion/stlstats/stlstats.c index fcce5c6ae87..e6e304f97f2 100644 --- a/usr.sbin/stallion/stlstats/stlstats.c +++ b/usr.sbin/stallion/stlstats/stlstats.c @@ -32,6 +32,8 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. + * + * $Id$ */ /*****************************************************************************/ @@ -46,8 +48,8 @@ #include #include -#include "cdk.h" -#include "comstats.h" +#include +#include /*****************************************************************************/