mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-29 13:28:14 +00:00
Make install directories from top down. Quiet client script test.
This commit is contained in:
parent
639f79f8cf
commit
877481dc0a
@ -1,6 +1,6 @@
|
|||||||
# Makefile.dist
|
# Makefile.dist
|
||||||
#
|
#
|
||||||
# Copyright (c) 1996, 1997 The Internet Software Consortium.
|
# Copyright (c) 1996, 1997, 1998 The Internet Software Consortium.
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@ -45,26 +45,31 @@ CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS)
|
|||||||
all: $(PROG) $(CATMANPAGES)
|
all: $(PROG) $(CATMANPAGES)
|
||||||
|
|
||||||
install: $(PROG) $(CATMANPAGES)
|
install: $(PROG) $(CATMANPAGES)
|
||||||
|
@for dir in $(CLIENTBINDIR) $(ETC) $(ADMMANDIR) $(FFMANDIR) $(VARDB); \
|
||||||
|
do \
|
||||||
|
case $$dir in \
|
||||||
|
/*) base=/ ;; \
|
||||||
|
*) base="" ;; \
|
||||||
|
esac; \
|
||||||
|
slash=""; \
|
||||||
|
for elt in `echo $$dir |sed -e 's/\// /g'`; do \
|
||||||
|
if [ ! -d $$base/$$elt ]; then \
|
||||||
|
echo Making $$base/$$elt; \
|
||||||
|
mkdir $$base/$$elt; \
|
||||||
|
chmod 755 $$base/$$elt; \
|
||||||
|
fi; \
|
||||||
|
base=$$base$$slash$$elt; \
|
||||||
|
slash=/; \
|
||||||
|
done; \
|
||||||
|
done
|
||||||
$(INSTALL) dhclient $(CLIENTBINDIR)
|
$(INSTALL) dhclient $(CLIENTBINDIR)
|
||||||
$(CHMOD) 755 $(CLIENTBINDIR)/dhclient
|
$(CHMOD) 755 $(CLIENTBINDIR)/dhclient
|
||||||
if [ x$(SCRIPT) = xnone ]; then \
|
@if [ x$(SCRIPT) = xnone ]; then \
|
||||||
echo "No client script available."; \
|
echo "No client script available."; \
|
||||||
else \
|
else \
|
||||||
$(INSTALL) scripts/$(SCRIPT) $(ETC)/dhclient-script; \
|
$(INSTALL) scripts/$(SCRIPT) $(ETC)/dhclient-script; \
|
||||||
$(CHMOD) 700 $(ETC)/dhclient-script; \
|
$(CHMOD) 700 $(ETC)/dhclient-script; \
|
||||||
fi
|
fi
|
||||||
if [ ! -d $(ADMMANDIR) ]; then \
|
|
||||||
mkdir $(ADMMANDIR); \
|
|
||||||
chmod 755 $(ADMMANDIR); \
|
|
||||||
fi
|
|
||||||
if [ ! -d $(FFMANDIR) ]; then \
|
|
||||||
mkdir $(FFMANDIR); \
|
|
||||||
chmod 755 $(FFMANDIR); \
|
|
||||||
fi
|
|
||||||
if [ ! -d $(VARDB) ]; then \
|
|
||||||
mkdir $(VARDB); \
|
|
||||||
chmod 755 $(VARDB); \
|
|
||||||
fi
|
|
||||||
$(MANINSTALL) $(MANFROM) dhclient.cat8 $(MANTO) \
|
$(MANINSTALL) $(MANFROM) dhclient.cat8 $(MANTO) \
|
||||||
$(ADMMANDIR)/dhclient$(ADMMANEXT)
|
$(ADMMANDIR)/dhclient$(ADMMANEXT)
|
||||||
$(MANINSTALL) $(MANFROM) dhclient-script.cat8 $(MANTO) \
|
$(MANINSTALL) $(MANFROM) dhclient-script.cat8 $(MANTO) \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user