# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=netdot pkgver=1.0.1 _pkgver=1.0.1-RC3 pkgrel=0 pkgdesc="Network Documentation Tool project" url="http://netdot.uoregon.edu" arch="noarch" license="GPL" depends="perl-dbd-mysql perl-dbd-pg perl-class-dbi perl-class-dbi-abstractsearch perl-html-mason perl-uri perl-dbix-datasource graphviz-dev perl-sql-translator perl-net-snmp perl-netaddr-ip perl-apache-session perl-log-dispatch perl-log-log4perl perl-parallel-forkmanager perl-net-iptrie perl-radiusperl perl-rrd perl-test-simple perl-time-local perl-pathtools perl-net-appliance-session perl-bind-config-parser perl-net-dns perl-carp-assert perl-net-dns-zonefile-fast perl-socket6 perl-xml-simple perl-net-irr perl-graphviz perl-apache2-sitecontrol perl-apache-authcookie perl-libapreq2" depends_dev="" makedepends="$depends_dev" install="" subpackages="" source="https://netdot.uoregon.edu/pub/dists/$pkgname-$_pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$_pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done sed -i -e '22 i\print \"usage: ./initdb initdb dropdb generate oui\\n\";\' bin/initdb } build() { cd "$_builddir" make testdeps } package() { cd "$_builddir" make -j1 install PREFIX="$pkgdir/usr/share/webapps/netdot" || return 1 install -Dm755 "$_builddir/bin/initdb" "$pkgdir"/usr/share/webapps/netdot/bin/initdb } md5sums="74702eff06905a3bef7ddbcb5b171447 netdot-1.0.1-RC3.tar.gz"