summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2004-08-26 13:52:16 +0000
committerMathieu Arnold <mat@FreeBSD.org>2004-08-26 13:52:16 +0000
commit5fb3fcfd854755dab729413bf85e4ed8fc71187d (patch)
treef169a2f1d321a31bfb12c6546b3a14f4924f8075 /net
parentAdd php4-rrdtool 1.05, a php/rrdtool glue. (diff)
Add some examples
Notes
Notes: svn path=/head/; revision=117310
Diffstat (limited to 'net')
-rw-r--r--net/php4-rrdtool/Makefile5
-rw-r--r--net/php4-rrdtool/pkg-plist7
2 files changed, 12 insertions, 0 deletions
diff --git a/net/php4-rrdtool/Makefile b/net/php4-rrdtool/Makefile
index 252ea76043ca..0bc031bf9b82 100644
--- a/net/php4-rrdtool/Makefile
+++ b/net/php4-rrdtool/Makefile
@@ -24,4 +24,9 @@ WRKSRC= ${WRKDIR}/${UNIQUENAME}-${PORTVERSION}
USE_PHP= yes
USE_PHPEXT= yes
+post-install:
+ @${MKDIR} ${EXAMPLESDIR}
+ @${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
+ @${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
+
.include <bsd.port.mk>
diff --git a/net/php4-rrdtool/pkg-plist b/net/php4-rrdtool/pkg-plist
new file mode 100644
index 000000000000..e4647ab69b32
--- /dev/null
+++ b/net/php4-rrdtool/pkg-plist
@@ -0,0 +1,7 @@
+%%PORTDOCS%%%%EXAMPLESDIR%%/etc3p16.rrd
+%%PORTDOCS%%%%EXAMPLESDIR%%/rrd_create.php
+%%PORTDOCS%%%%EXAMPLESDIR%%/rrd_graph.php
+%%PORTDOCS%%%%EXAMPLESDIR%%/rrd_last.php
+%%PORTDOCS%%%%EXAMPLESDIR%%/rrd_update.php
+%%PORTDOCS%%%%EXAMPLESDIR%%/test_fetch.php
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%