diff options
author | Francesco Colista <francesco.colista@gmail.com> | 2012-01-02 14:52:05 +0000 |
---|---|---|
committer | Francesco Colista <francesco.colista@gmail.com> | 2012-01-02 14:52:05 +0000 |
commit | df3145a082b210086d5490e6d416ecd3e1d72c2e (patch) | |
tree | 41c97204c9ea9372ccf506baae8491ed0ea54cb2 | |
parent | 5e9951fd11a29febad28c2bd1e4cd5486e4bc329 (diff) | |
download | aports-df3145a082b210086d5490e6d416ecd3e1d72c2e.tar.bz2 aports-df3145a082b210086d5490e6d416ecd3e1d72c2e.tar.xz |
testing/netdot: new apkbuild
-rw-r--r-- | testing/netdot/APKBUILD | 46 | ||||
-rw-r--r-- | testing/netdot/netdot.post-install | 2 |
2 files changed, 48 insertions, 0 deletions
diff --git a/testing/netdot/APKBUILD b/testing/netdot/APKBUILD new file mode 100644 index 0000000000..e2ff2a7c3a --- /dev/null +++ b/testing/netdot/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: Francesco Colista <francesco.colista@gmail.com> +pkgname=netdot +pkgver=0.9.10 +pkgrel=0 +pkgdesc="Network Documentation Tool project" +url="http://netdot.uoregon.edu" +arch="noarch" +license="GPL" +depends="mysql" +depends_dev="wget perl-dbd-mysql 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" +makedepends="$depends_dev" +install="$pkgname.post-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 +} + +build() { + cd "$_builddir" + make testdeps +} + +package() { + cd "$_builddir" + make install PREFIX="$pkgdir/usr/share/webapps/netdot" || return 1 + install -Dm755 "$_builddir/bin/initdb" "$pkgdir"/usr/share/webapps/netdot/bin/initdb +} + +md5sums="2dab1aadbbace097d420349b0cfd3573 netdot-0.9.10.tar.gz" diff --git a/testing/netdot/netdot.post-install b/testing/netdot/netdot.post-install new file mode 100644 index 0000000000..3a79e5b758 --- /dev/null +++ b/testing/netdot/netdot.post-install @@ -0,0 +1,2 @@ +#/bin/sh +echo -e "Remember to exec initdb script in order to start to use netdot" &>/dev/null |