mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Minimal adjustments to get the Stallion utilities to build and install
in a FreeBSD style source tree.
This commit is contained in:
parent
31cb8735c0
commit
4e2cf54fdb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=15611
5
usr.sbin/stallion/Makefile
Normal file
5
usr.sbin/stallion/Makefile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# $Id$
|
||||||
|
|
||||||
|
SUBDIR= bootcode stlload stlstats
|
||||||
|
|
||||||
|
.include <bsd.subdir.mk>
|
7
usr.sbin/stallion/Makefile.inc
Normal file
7
usr.sbin/stallion/Makefile.inc
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# $Id$
|
||||||
|
|
||||||
|
BOOTDIR= /usr/libdata/stallion
|
||||||
|
|
||||||
|
.if exists(${.CURDIR}/../../Makefile.inc)
|
||||||
|
.include "${.CURDIR}/../../Makefile.inc"
|
||||||
|
.endif
|
@ -1,4 +1,4 @@
|
|||||||
begin 440 2681.sys
|
begin 444 2681.sys
|
||||||
M````````````````````````````````````````````````````````````
|
M````````````````````````````````````````````````````````````
|
||||||
M``````!>`0``````````````````````````````````````````````````
|
M``````!>`0``````````````````````````````````````````````````
|
||||||
M````````````````````````````````````````````````````````````
|
M````````````````````````````````````````````````````````````
|
||||||
|
30
usr.sbin/stallion/bootcode/Makefile
Normal file
30
usr.sbin/stallion/bootcode/Makefile
Normal file
@ -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 <bsd.prog.mk>
|
||||||
|
|
||||||
|
cdk.sys: ${.CURDIR}/cdk.sys.uu
|
||||||
|
uudecode ${.CURDIR}/$@.uu
|
||||||
|
|
||||||
|
2681.sys: ${.CURDIR}/2681.sys.uu
|
||||||
|
uudecode ${.CURDIR}/$@.uu
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
begin 440 cdk.sys
|
begin 444 cdk.sys
|
||||||
M````````````````````````````````````````````````````````````
|
M````````````````````````````````````````````````````````````
|
||||||
M``````!@`0``````````````````````````````````````````````````
|
M``````!@`0``````````````````````````````````````````````````
|
||||||
M````````````````````````````````````````````````````````````
|
M````````````````````````````````````````````````````````````
|
||||||
|
8
usr.sbin/stallion/stlload/Makefile
Normal file
8
usr.sbin/stallion/stlload/Makefile
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# $Id$
|
||||||
|
|
||||||
|
PROG= stlload
|
||||||
|
NOMAN= #oops
|
||||||
|
|
||||||
|
CFLAGS+=-DBOOTDIR=\"${BOOTDIR}\"
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
@ -32,6 +32,8 @@
|
|||||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
* 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
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
|
*
|
||||||
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
@ -45,14 +47,14 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
|
||||||
#include "cdk.h"
|
#include <machine/cdk.h>
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
char *version = "0.0.5";
|
char *version = "0.0.5";
|
||||||
char *defdevice = "/dev/staliomem%d";
|
char *defdevice = "/dev/staliomem%d";
|
||||||
char *image = "/usr/lib/stallion/cdk.sys";
|
char *image = BOOTDIR "/cdk.sys";
|
||||||
char *oldimage = "/usr/lib/stallion/2681.sys";
|
char *oldimage = BOOTDIR "/2681.sys";
|
||||||
|
|
||||||
char *progname;
|
char *progname;
|
||||||
char *memdevice;
|
char *memdevice;
|
||||||
|
9
usr.sbin/stallion/stlstats/Makefile
Normal file
9
usr.sbin/stallion/stlstats/Makefile
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# $Id$
|
||||||
|
|
||||||
|
PROG= stlstats
|
||||||
|
NOMAN= #oops
|
||||||
|
|
||||||
|
LDADD= -lncurses
|
||||||
|
DPADD= ${LIBNCURSES}
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
@ -32,6 +32,8 @@
|
|||||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
* 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
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
|
*
|
||||||
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
@ -46,8 +48,8 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
|
||||||
#include "cdk.h"
|
#include <machine/cdk.h>
|
||||||
#include "comstats.h"
|
#include <machine/comstats.h>
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user