X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-pz0-f46.google.com (mail-pz0-f46.google.com [209.85.210.46]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 0748A2145365 for ; Tue, 8 Nov 2011 21:34:54 +0000 (UTC) Received: by pzk1 with SMTP id 1so592968pzk.5 for ; Tue, 08 Nov 2011 13:34:53 -0800 (PST) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 10.68.35.129 with SMTP id h1mr3901384pbj.92.1320788093539; Tue, 08 Nov 2011 13:34:53 -0800 (PST) Sender: peter@dezoeten.org Received: by 10.142.84.18 with HTTP; Tue, 8 Nov 2011 13:34:53 -0800 (PST) Date: Tue, 8 Nov 2011 22:34:53 +0100 X-Google-Sender-Auth: I_xyAi_uW7_NcD9-saGTq4bCuxQ Message-ID: Subject: [alpine-devel] pnp4nagios From: Peter de Zoeten To: alpine-devel@lists.alpinelinux.org Content-Type: text/plain; charset=ISO-8859-1 Hello all, i'm a little in doubt at the moment; I compiled pnp4nagios with the following git diff. PNP4Nagios is heavily dependend on PHP. So should i make a php package? And also: in this APKBUILD the package install to /usr/local/pnp4nagios; should i try to get it to webapps? This is the git APKBUILD package: Look at www.pnp4nagios.org for all information --- testing/pnp4nagios/APKBUILD | 64 +++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 64 insertions(+), 0 deletions(-) create mode 100644 testing/pnp4nagios/APKBUILD diff --git a/testing/pnp4nagios/APKBUILD b/testing/pnp4nagios/APKBUILD new file mode 100644 index 0000000..3ee1ec2 --- /dev/null +++ b/testing/pnp4nagios/APKBUILD @@ -0,0 +1,64 @@ +# Contributor: Peter de Zoeten +# Maintainer: Peter de Zoeten +pkgname=pnp4nagios +pkgver=0.6.15 +pkgrel=0 +pkgdesc="PNP4Nagios" +url="http://www.pnp4nagios.org" +arch="all" +license="GPL" +depends="nagios rrdtool perl-time-hires perl-rrd php-zlib libgcc" +depends_dev="" +makedepends="$depends_dev" +install="" +#subpackages="$pkgname-doc $pkgname-php" +subpackages="$pkgname-doc" + +source="http://sourceforge.net/projects/pnp4nagios/files/pnp4nagios/pnp4nagios-$pkgver/pnp4nagios-$pkgver.tar.gz" + +#source="saveas-http://downloads.sourceforge.net/project/pnp4nagios/PNP-0.6/pnp4nagios-0.6.15.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fpnp4nagios%2Ffiles%2FPNP-0.6%2F&ts=1318875996&use_mirror=heanet/pnp4nagios-0.6.15.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" + ./configure || return 1 + make all || return 1 +} +doc() { + arch="noarch" + # Man pages + mkdir -p "$subpkgdir"/usr/share/man || return 1 + mv "$pkgdir"/usr/local/pnp4nagios/man/man* "$subpkgdir"/usr/share/man/ \ + || return 1 + + # Doc files + _docs="INSTALL README" + for _doc in $_docs; do + install -Dm644 "$srcdir"/$pkgname-$pkgver/$_doc \ + "$subpkgdir"/usr/share/doc/$pkgname/$_doc || return 1 + done + rmdir "$pkgdir"/usr/local/pnp4nagios/man/ +} + +package() { + cd "$_builddir" + make fullinstall DESTDIR="$pkgdir" || return 1 + mkdir -p "$pkgdir"/usr/share/nagios/htdocs/ssi + cp "$_builddir"/contrib/ssi/status-header.ssi "$pkgdir"/usr/share/nagios/htdocs/ssi/status-header.ssi +# rm -rf "$pkgdir"/etc/httpd + mkdir -p "$pkgdir"/etc/lighttpd + cp "$_builddir"/sample-config/lighttpd.pnp4nagios.conf "$pkgdir"/etc/lighttpd/pnp4nagios.conf.sample +} + + +md5sums="27cdab96510e15cfa0f4b7c2bf15dd2b pnp4nagios-0.6.15.tar.gz" Let me know what you think. It works fine the way it is compiled now. Regards, Peter --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---