aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelippe de Meirelles Motta <lippe@FreeBSD.org>2013-10-06 06:45:45 +0000
committerFelippe de Meirelles Motta <lippe@FreeBSD.org>2013-10-06 06:45:45 +0000
commit14eeaae50f2b4d1e0fd75356f2257d85089d2353 (patch)
treef43e886a11157bfb3db49270a9a92fcd7a12509e
parentae2b2fdad97db34ac9f846663ffc7403a4fb969a (diff)
downloadports-14eeaae50f2b4d1e0fd75356f2257d85089d2353.tar.gz
ports-14eeaae50f2b4d1e0fd75356f2257d85089d2353.zip
Notes
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/graffer/Makefile40
-rw-r--r--sysutils/graffer/distinfo2
-rw-r--r--sysutils/graffer/pkg-descr4
4 files changed, 47 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index e8e643a2038c..856b9b6f2c05 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -344,6 +344,7 @@
SUBDIR += gpart
SUBDIR += gpkgdep
SUBDIR += gpte
+ SUBDIR += graffer
SUBDIR += graid5
SUBDIR += graphicboot
SUBDIR += graveman
diff --git a/sysutils/graffer/Makefile b/sysutils/graffer/Makefile
new file mode 100644
index 000000000000..1691bad69c84
--- /dev/null
+++ b/sysutils/graffer/Makefile
@@ -0,0 +1,40 @@
+# Created by: Nikola Kolev <koue@chaosophia.net>
+# $FreeBSD$
+
+PORTNAME= graffer
+PORTVERSION= 1.0
+CATEGORIES= sysutils
+MASTER_SITES= http://chaosophia.net/downloads/graffer/ \
+ http://ns1.chaosophia.net/downloads/graffer/
+
+MAINTAINER= koue@chaosophia.net
+COMMENT= Utility to render graphical statistics
+
+LIB_DEPENDS= gd:${PORTSDIR}/graphics/gd
+
+MAKE_ARGS= "LD_GD=gd"
+MAKE_END+= __MAKE_CONF=/dev/null
+USE_ICONV= yes
+
+PLIST_FILES= bin/graffer \
+ etc/graffer/graffer.conf.example \
+ man/man8/graffer.8.gz
+PLIST_DIRS= etc/graffer
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|-lgd|-l$${LD_GD}|; s| -lttf||' \
+ ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e "s|/etc/|${STAGEDIR}${PREFIX}/etc/|" \
+ ${WRKSRC}/graffer.[c8]
+ @${REINPLACE_CMD} -e "s|/etc/|${STAGEDIR}${PREFIX}/etc/|" \
+ ${WRKSRC}/graffer.conf.example
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/graffer ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/graffer.8 ${STAGEDIR}${PREFIX}/man/man8
+ @${MKDIR} ${STAGEDIR}${PREFIX}/etc/graffer
+ ${INSTALL_DATA} ${WRKSRC}/graffer.conf.example ${STAGEDIR}${PREFIX}/etc/graffer
+
+.include <bsd.port.post.mk>
diff --git a/sysutils/graffer/distinfo b/sysutils/graffer/distinfo
new file mode 100644
index 000000000000..a7f1baf55a06
--- /dev/null
+++ b/sysutils/graffer/distinfo
@@ -0,0 +1,2 @@
+SHA256 (graffer-1.0.tar.gz) = 2e5a31f0e6a0b62d352795ca5b48cc8e08e91e0a1b3d6c9296f8cdf2aef810ea
+SIZE (graffer-1.0.tar.gz) = 15900
diff --git a/sysutils/graffer/pkg-descr b/sysutils/graffer/pkg-descr
new file mode 100644
index 000000000000..9af8d0511d02
--- /dev/null
+++ b/sysutils/graffer/pkg-descr
@@ -0,0 +1,4 @@
+Graffer is a small utility that collects numeric values from external programs
+and produces graphs like mrtg, pfstat or alike.
+
+WWW: http://chaosophia.net/graffer/