[arch-commits] Commit in (4 files)

Florian Pritz bluewind at nymeria.archlinux.org
Mon Aug 26 08:33:39 UTC 2013


    Date: Monday, August 26, 2013 @ 10:33:38
  Author: bluewind
Revision: 96346

add mailgraph

Added:
  mailgraph/
  mailgraph/repos/
  mailgraph/trunk/
  mailgraph/trunk/PKGBUILD

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Added: mailgraph/trunk/PKGBUILD
===================================================================
--- mailgraph/trunk/PKGBUILD	                        (rev 0)
+++ mailgraph/trunk/PKGBUILD	2013-08-26 08:33:38 UTC (rev 96346)
@@ -0,0 +1,34 @@
+# Maintainer: Florian Pritz <bluewind at xinu.at>
+# Contributor: lp76 <l.peduto at gmail.com>
+pkgname=mailgraph
+pkgver=1.14
+pkgrel=3
+pkgdesc="A very simple mail statistics RRDtool frontend for Postfix and Sendmail"
+url="http://mailgraph.schweikert.ch/"
+arch=('any')
+license=('GPL')
+options=(emptydirs)
+depends=('rrdtool' 'perl-file-tail' 'syslog-ng')
+source=("http://mailgraph.schweikert.ch/pub/$pkgname-$pkgver.tar.gz"
+mailgraph.service)
+md5sums=('0f0ae91968ea7ae0c1d14985c560530b'
+         '0517acd06d86112806fd9ac81c2d6e0e')
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+  sed -i "s:mailgraph.rrd:/var/lib/mailgraph/mailgraph.rrd:" mailgraph.cgi
+  sed -i "s:mailgraph_virus.rrd:/var/lib/mailgraph/mailgraph_virus.rrd:" mailgraph.cgi
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  #CGI_DIR=`grep 'ScriptAlias /cgi-bin/' /etc/httpd/conf/httpd.conf | awk '{print $3}' | sed 's|"||g'`
+  CGI_DIR="/usr/share/webapps/mailgraph"
+
+  install -D -m755 mailgraph.pl "$pkgdir/usr/bin/mailgraph.pl"
+  install -D -m755 mailgraph.cgi "$pkgdir/$CGI_DIR/mailgraph.cgi"
+  install -D -m755 mailgraph.css "$pkgdir/$CGI_DIR/mailgraph.css"
+  install -D -m644 "$srcdir/mailgraph.service" "$pkgdir/usr/lib/systemd/system/mailgraph.service"
+  install -d -m755 "$pkgdir/var/lib/mailgraph"
+}




More information about the arch-commits mailing list