summaryrefslogtreecommitdiffstats
path: root/databases/php4-rrdtool
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2004-08-26 13:52:16 +0000
committermat <mat@FreeBSD.org>2004-08-26 13:52:16 +0000
commit6edb0b08b0dca792b54a5e53316cab94501a5e8d (patch)
treeaec5c02165d9db96b13a1dc55679800ffbcd419d /databases/php4-rrdtool
parentebc051c8e58ee0a2a910b0cdfef02da4e2ddd025 (diff)
downloadFreeBSD-ports-6edb0b08b0dca792b54a5e53316cab94501a5e8d.zip
FreeBSD-ports-6edb0b08b0dca792b54a5e53316cab94501a5e8d.tar.gz
Add some examples
Diffstat (limited to 'databases/php4-rrdtool')
-rw-r--r--databases/php4-rrdtool/Makefile5
-rw-r--r--databases/php4-rrdtool/pkg-plist7
2 files changed, 12 insertions, 0 deletions
diff --git a/databases/php4-rrdtool/Makefile b/databases/php4-rrdtool/Makefile
index 252ea76..0bc031b 100644
--- a/databases/php4-rrdtool/Makefile
+++ b/databases/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/databases/php4-rrdtool/pkg-plist b/databases/php4-rrdtool/pkg-plist
new file mode 100644
index 0000000..e4647ab
--- /dev/null
+++ b/databases/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%%
OpenPOWER on IntegriCloud