diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-26 15:02:04 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-26 15:02:04 +0000 |
commit | cb2ea04a86b8fc614a48ad4965b58ed2ac6fc708 (patch) | |
tree | 28ef2eafb1d1d452b70b12d3df1942003c08384e /unmaintained/netdot | |
parent | 5a6984bcc89730fb970a8a1b685e40befd36a4e8 (diff) | |
download | aports-cb2ea04a86b8fc614a48ad4965b58ed2ac6fc708.tar.bz2 aports-cb2ea04a86b8fc614a48ad4965b58ed2ac6fc708.tar.xz |
unmantained/netdot: moved to unmaintained
Diffstat (limited to 'unmaintained/netdot')
-rw-r--r-- | unmaintained/netdot/APKBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/unmaintained/netdot/APKBUILD b/unmaintained/netdot/APKBUILD new file mode 100644 index 0000000000..dc229ea17b --- /dev/null +++ b/unmaintained/netdot/APKBUILD @@ -0,0 +1,54 @@ +# Contributor: Ćukasz Jendrysik <scadu@yandex.com> +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: Francesco Colista <francesco.colista@gmail.com> +pkgname=netdot +pkgver=1.0.7 +pkgrel=1 +pkgdesc="A Network Documentation Tool project" +url="http://netdot.uoregon.edu" +arch="noarch" +license="GPL2+" +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-tester + 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-apache-authcookie rrdtool + perl-libapreq2 perl-net-patricia perl-apache2-sitecontrol" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="" +source="http://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 + # patch to correctly identify alpine packages + sed -i -e "s/libauthen-radius-perl/perl-radiusperl/" bin/perldeps.pl + sed -i -e "s/perl-Authen-Radius/perl-radiusperl/" bin/perldeps.pl + 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" REPLACE_PREFIX="/usr/share/webapps/netdot" || return 1 + install -Dm755 "$_builddir/bin/initdb" "$pkgdir"/usr/share/webapps/netdot/bin/initdb + install -Dm755 "$_builddir/etc/default_data" "$pkgdir"/usr/share/webapps/netdot/etc/default_data +} + +md5sums="d3178e1af575d80234053f383a0d934a netdot-1.0.7.tar.gz" +sha256sums="f8fe9804973d09f953dd520795312d5ef2b595151fadd595a1fec2758d99d79c netdot-1.0.7.tar.gz" +sha512sums="7d52841d4479901ed904b3b8684eddafb55d9eee0f8c5d4c000e790d9a07e09f2045e85f164ca127de57620ef2b657282497aa44d8d87237ae95232a285981b2 netdot-1.0.7.tar.gz" |