aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2017-02-17 12:52:38 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2017-02-18 15:52:28 -0600
commit9047ea4cb0d0e5e27704369380e128d26c3e86b2 (patch)
tree387420ba6318711d9d8050eba4b9d375d4b4b234
parentsupport: rename all README files to README.md (diff)
downloadopenrc-9047ea4cb0d0e5e27704369380e128d26c3e86b2.zip
openrc-9047ea4cb0d0e5e27704369380e128d26c3e86b2.tar.gz
openrc-9047ea4cb0d0e5e27704369380e128d26c3e86b2.tar.bz2
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.
-rw-r--r--Makefile2
-rw-r--r--mk/sys.mk3
-rw-r--r--support/Makefile20
-rw-r--r--support/deptree2dot/Makefile9
-rw-r--r--support/openvpn/Makefile9
-rw-r--r--support/sysvinit/Makefile8
6 files changed, 50 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5ee4a25..05cfb79 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 47d9526..6279373 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 0000000..a183e9f
--- /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 0000000..b7f6e39
--- /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 0000000..d836f08
--- /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 0000000..b207161
--- /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