diff options
author | kim.brandt@infomaker.se | 2017-11-19 17:20:56 +0100 |
---|---|---|
committer | kim.brandt@infomaker.se | 2017-11-19 17:20:56 +0100 |
commit | 18d1245618f19b9598989f48e435b52005b722df (patch) | |
tree | 8ba99a5fc07540dcac002d76ddc48e8a970baf7d | |
parent | 0a2be75b1d1a2bc004dc15789cb2ca800519faaa (diff) | |
download | aur-18d1245618f19b9598989f48e435b52005b722df.tar.gz |
Updated for newrelic-php5 version 7.6.0.201 and PHP 7.
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 73 | ||||
-rwxr-xr-x | newrelic-php5.install | 14 |
3 files changed, 41 insertions, 62 deletions
@@ -1,21 +1,17 @@ -# Generated by mksrcinfo v8 -# Tue Oct 25 06:27:03 UTC 2016 pkgbase = newrelic-php5 - pkgdesc = NewRelic PHP - pkgver = 6.7.0.174 + pkgdesc = NewRelic PHP Monitoring Agent + pkgver = 7.6.0.201 pkgrel = 1 - url = http://newrelic.com/ + url = https://newrelic.com/php install = newrelic-php5.install - arch = i686 arch = x86_64 license = non-free depends = glibc - depends = php56 + depends = php backup = etc/php/conf.d/newrelic.ini - source = https://download.newrelic.com/php_agent/release/newrelic-php5-6.7.0.174-linux.tar.gz + source = https://download.newrelic.com/php_agent/archive/7.6.0.201/newrelic-php5-7.6.0.201-linux.tar.gz source = newrelic-daemon.service - md5sums = 3b5b922db54e258501723ed6f6a0ed5d + md5sums = 24e83cbdce6328f8643bb19c8acd20f9 md5sums = 4fc78347663adcb32ed28eddb546619c pkgname = newrelic-php5 - @@ -1,53 +1,42 @@ -# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Maintainer: Kim Brandt <myrveln@gmail.com> +# Contributor: Felix Yan <felixonmars@archlinux.org> # Contributor: Vinh Nguyen <kurei [at] axcoto.com> pkgname=newrelic-php5 -pkgver=6.7.0.174 -_libver=20131226 +pkgver=7.6.0.201 +_libver=20160303 pkgrel=1 -pkgdesc="NewRelic PHP" -arch=('i686' 'x86_64') -url="http://newrelic.com/" -license=('non-free') -depends=('glibc' 'php56') -backup=('etc/php/conf.d/newrelic.ini') -install=$pkgname.install -source=("https://download.newrelic.com/php_agent/release/$pkgname"-"$pkgver"-"linux.tar.gz" +pkgdesc="NewRelic PHP Monitoring Agent" +arch=("x86_64") +url="https://newrelic.com/php" +license=("non-free") +depends=("glibc" "php") +backup=("etc/php/conf.d/newrelic.ini") +install="${pkgname}.install" +source=("https://download.newrelic.com/php_agent/archive/${pkgver}/${pkgname}-${pkgver}-linux.tar.gz" "newrelic-daemon.service") -md5sums=('3b5b922db54e258501723ed6f6a0ed5d' - '4fc78347663adcb32ed28eddb546619c') - -build() { - cd "$srcdir/$pkgname-$pkgver-linux" -} +md5sums=("24e83cbdce6328f8643bb19c8acd20f9" + "4fc78347663adcb32ed28eddb546619c") package() { - cd "$srcdir/$pkgname-$pkgver-linux" + cd "${srcdir}/${pkgname}-${pkgver}-linux" + + mkdir -p ${pkgdir}/usr/bin/ \ + ${pkgdir}/usr/lib/php/modules/ \ + ${pkgdir}/usr/share/doc/newrelic-php5/ \ + ${pkgdir}/usr/lib/systemd/system/ \ + ${pkgdir}/etc/php/conf.d/; + + # Binary Daemon + install -v -Dm755 ./daemon/newrelic-daemon.x64 ${pkgdir}/usr/bin/newrelic-daemon + # PHP extension + install -v -Dm755 ./agent/x64/newrelic-${_libver}-zts.so ${pkgdir}/usr/lib/php/modules/newrelic-zts.so + install -v -Dm755 ./agent/x64/newrelic-${_libver}.so ${pkgdir}/usr/lib/php/modules/newrelic.so - mkdir -p $pkgdir/usr/bin/ \ - $pkgdir/usr/lib/php/modules/ \ - $pkgdir/usr/share/doc/newrelic-php5/ \ - $pkgdir/usr/lib/systemd/system/ \ - $pkgdir/etc/php/conf.d/; + install -v -Dm644 ./README.txt ./LICENSE.txt ${pkgdir}/usr/share/doc/newrelic-php5/ - if [ $CARCH == i686 ]; then - # Binary Daemon - install -v -Dm755 ./daemon/newrelic-daemon.x86 $pkgdir/usr/bin/newrelic-daemon - # PHP extension - install -v -Dm755 ./agent/x86/newrelic-$_libver-zts.so $pkgdir/usr/lib/php/modules/newrelic-$_libver-zts.so - install -v -Dm755 ./agent/x86/newrelic-$_libver.so $pkgdir/usr/lib/php/modules/newrelic-$_libver.so - else - # Binary Daemon - install -v -Dm755 ./daemon/newrelic-daemon.x64 $pkgdir/usr/bin/newrelic-daemon - # PHP extension - install -v -Dm755 ./agent/x64/newrelic-$_libver-zts.so $pkgdir/usr/lib/php/modules/newrelic-$_libver-zts.so - install -v -Dm755 ./agent/x64/newrelic-$_libver.so $pkgdir/usr/lib/php/modules/newrelic-$_libver.so - fi + install -v -Dm644 ./scripts/newrelic.ini.template ${pkgdir}/etc/php/conf.d/newrelic.ini + install -v -Dm644 ./scripts/newrelic.ini.template ${pkgdir}/etc/php/conf.d/newrelic.ini.template - install -v -Dm644 ./README.txt ./LICENSE.txt $pkgdir/usr/share/doc/newrelic-php5/ - - install -v -Dm644 ./scripts/newrelic.ini.template $pkgdir/etc/php/conf.d/newrelic.ini - install -v -Dm644 ./scripts/newrelic.ini.template $pkgdir/etc/php/conf.d/newrelic.ini.template - - install -v -Dm644 ../newrelic-daemon.service $pkgdir/usr/lib/systemd/system/ + install -v -Dm644 ../newrelic-daemon.service ${pkgdir}/usr/lib/systemd/system/ } diff --git a/newrelic-php5.install b/newrelic-php5.install index 70b63fa3f4fc..f4a80e25069d 100755 --- a/newrelic-php5.install +++ b/newrelic-php5.install @@ -14,12 +14,8 @@ post_install() { # Create the newrelic user and group useradd --system -M --home / --shell /sbin/nologin newrelic || true -# Symlink for PHP extension -ln -s /usr/lib/php/modules/newrelic-20131226-zts.so /usr/lib/php/modules/newrelic-zts.so -ln -s /usr/lib/php/modules/newrelic-20131226.so /usr/lib/php/modules/newrelic.so - # Kludge the permissions -mkdir /var/log/newrelic +mkdir -p /var/log/newrelic chmod 1777 /var/log/newrelic inifile=/etc/php/conf.d/newrelic.ini @@ -43,15 +39,15 @@ if sed -e '/^[ ]*#/d' "${inifile}" 2> /dev/null | grep -q 'REPLACE_WITH_R *** *** You can do this by edit file /etc/php/conf.d/newrelic.ini, *** fint the line newrelic.license="REPLACE_WITH_REAL_KEY" -*** and replace with your real key. More information here: +*** and replace with your real key. More information here: *** *** https://docs.newrelic.com/docs/php/new-relic-for-php#installation -*** +*** *** No data will be reported until the server monitor can start. *** You can get your New Relic key from the 'Configuration' section *** of the 'Support' menu of your New Relic account (accessible at *** https://rpm.newrelic.com). -*** +*** *** ********************************************************************* ********************************************************************* @@ -91,8 +87,6 @@ pre_remove() { post_remove() { # do something here userdel newrelic || true - unlink /usr/lib/php/modules/newrelic.so - unlink /usr/lib/php/modules/newrelic-zts.so rm -rf /var/log/newrelic } |