[Lunar-commits] <moonbase> tunctl: make docbook-profile optional

Samuel Verstraete elangelo at lunar-linux.org
Fri Jun 12 11:28:44 CEST 2009


commit eb00841b41e83136dbf7abda6083e1f36d171bbd
Author: Samuel Verstraete <elangelo at lunar-linux.org>
Date:   Fri Jun 12 11:28:44 2009 +0200

    tunctl: make docbook-profile optional
---
 net/tunctl/BUILD   |    8 ++++++++
 net/tunctl/DEPENDS |    4 ++++
 2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/net/tunctl/BUILD b/net/tunctl/BUILD
new file mode 100644
index 0000000..4cee9ee
--- /dev/null
+++ b/net/tunctl/BUILD
@@ -0,0 +1,8 @@
+(
+   if ! in_depends $MODULE docbook-profile ; then
+     sedit s@"all : \$(BIN) \$(MAN)"@"all : \$(BIN)"@g Makefile &&
+     sedit s@"install -d \$(DESTDIR)\$(MAN_DIR)"@@g Makefile &&
+     sedit s@"install \$(MAN) \$(DESTDIR)\$(MAN_DIR)"@@g Makefile
+   fi &&
+   default_build
+) > $C_FIFO 2>&1
diff --git a/net/tunctl/DEPENDS b/net/tunctl/DEPENDS
new file mode 100644
index 0000000..d533541
--- /dev/null
+++ b/net/tunctl/DEPENDS
@@ -0,0 +1,4 @@
+optional_depends "docbook-profile" \
+                 " " \
+                 " " \
+                 "install the manpages"


More information about the Lunar-commits mailing list