From 9047ea4cb0d0e5e27704369380e128d26c3e86b2 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Fri, 17 Feb 2017 12:52:38 -0600 Subject: [PATCH] install support files These files have been in the distribution for some time but haven't been installed. They are good examples of how to do things, so we should install them. --- Makefile | 2 +- mk/sys.mk | 3 +++ support/Makefile | 20 ++++++++++++++++++++ support/deptree2dot/Makefile | 9 +++++++++ support/openvpn/Makefile | 9 +++++++++ support/sysvinit/Makefile | 8 ++++++++ 6 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 support/Makefile create mode 100644 support/deptree2dot/Makefile create mode 100644 support/openvpn/Makefile create mode 100644 support/sysvinit/Makefile diff --git a/Makefile b/Makefile index 5ee4a253..05cfb796 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ MK= ${TOP}/mk include ${TOP}/Makefile.inc -SUBDIR= conf.d etc init.d local.d man scripts sh src sysctl.d +SUBDIR= conf.d etc init.d local.d man scripts sh src support sysctl.d # Build pkgconfig or not MKPKGCONFIG?= yes diff --git a/mk/sys.mk b/mk/sys.mk index 47d95267..62793739 100644 --- a/mk/sys.mk +++ b/mk/sys.mk @@ -59,6 +59,9 @@ MANPREFIX?= ${UPREFIX}/share MANDIR?= ${MANPREFIX}/man MANMODE?= 0444 +DATADIR?= ${UPREFIX}/share/openrc +DATAMODE?= 0644 + DOCDIR?= ${UPREFIX}/share/doc DOCMODE?= 0644 diff --git a/support/Makefile b/support/Makefile new file mode 100644 index 00000000..a183e9f7 --- /dev/null +++ b/support/Makefile @@ -0,0 +1,20 @@ +# Copyright (c) 2017 the OpenRC Authors. +# See the Authors file at the top-level directory of this distribution and +# https://github.com/OpenRC/openrc/blob/master/AUTHORS +# +# This file is part of OpenRC. It is subject to the license terms in +# the LICENSE file found in the top-level directory of this +# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE +# This file may not be copied, modified, propagated, or distributed +# except according to the terms contained in the LICENSE file. + +MK= ../mk +include ${MK}/os.mk + +SUBDIR= deptree2dot openvpn + +ifeq (${OS},Linux) +SUBDIR+= sysvinit +endif + +include ${MK}/subdir.mk diff --git a/support/deptree2dot/Makefile b/support/deptree2dot/Makefile new file mode 100644 index 00000000..b7f6e392 --- /dev/null +++ b/support/deptree2dot/Makefile @@ -0,0 +1,9 @@ +MK= ../../mk +include ${MK}/os.mk + +DIR= ${DATADIR}/support/deptree2dot +BIN= deptree2dot +INC= README.md + + +include ${MK}/scripts.mk diff --git a/support/openvpn/Makefile b/support/openvpn/Makefile new file mode 100644 index 00000000..d836f084 --- /dev/null +++ b/support/openvpn/Makefile @@ -0,0 +1,9 @@ +MK= ../../mk +include ${MK}/os.mk + +DIR= ${DATADIR}/support/openvpn +BIN= down.sh up.sh +INC= README.md + + +include ${MK}/scripts.mk diff --git a/support/sysvinit/Makefile b/support/sysvinit/Makefile new file mode 100644 index 00000000..b2071611 --- /dev/null +++ b/support/sysvinit/Makefile @@ -0,0 +1,8 @@ +MK= ../../mk +include ${MK}/os.mk + +DIR= ${DATADIR}/support/sysvinit +INC= inittab README.md + + +include ${MK}/scripts.mk