diff options
author | 4le34n | 2017-08-09 15:14:50 +1100 |
---|---|---|
committer | 4le34n | 2017-08-09 15:14:50 +1100 |
commit | ffb9313ec5c618a8d988bb5aa545cf71a602acc2 (patch) | |
tree | 2d823a5c4591161e983a4ec5e00f535e4a316919 | |
parent | 33e3d238c1023ab5311e8a75b1a1e3e88e81eee6 (diff) | |
download | aur-ffb9313ec5c618a8d988bb5aa545cf71a602acc2.tar.gz |
More improvements PKGBUILD
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 6 | ||||
-rw-r--r-- | install | 16 |
3 files changed, 21 insertions, 6 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Tue Aug 8 05:31:27 UTC 2017 +# Wed Aug 9 04:14:31 UTC 2017 pkgbase = nfsen pkgdesc = Netflow visualisation and investigation tool pkgver = 1.3.8 - pkgrel = 10 + pkgrel = 11 url = https://sourceforge.net/projects/nfsen install = install arch = i686 @@ -20,7 +20,6 @@ pkgbase = nfsen optdepends = php-apache optdepends = php-fpm backup = etc/nfsen.conf - backup = etc/nginx/sites-available/nfsen source = https://sourceforge.net/projects/nfsen/files/stable/nfsen-1.3.8/nfsen-1.3.8.tar.gz source = nfsen.conf source = nginx @@ -2,7 +2,7 @@ pkgname=nfsen pkgver=1.3.8 -pkgrel=10 +pkgrel=11 pkgdesc="Netflow visualisation and investigation tool" arch=('i686' 'x86_64') url="https://sourceforge.net/projects/nfsen" @@ -14,7 +14,7 @@ depends=('nfdump>=1.6.1' 'php>4.1' 'rrdtool') optdepends=('apache' 'nginx' 'php-apache' 'php-fpm') -backup=('etc/nfsen.conf' 'etc/nginx/sites-available/nfsen') +backup=('etc/nfsen.conf') install='install' source=("$url/files/stable/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz" 'nfsen.conf' @@ -40,7 +40,7 @@ package() { install -Dm644 README "$pkgdir/usr/share/doc/$pkgname/README" install -Dm644 README.plugins "$pkgdir/usr/share/doc/$pkgname/README.plugins" install -Dm644 "$srcdir/nfsen.conf" "$pkgdir/etc/nfsen.conf" - install -Dm644 "$srcdir/nginx" "$pkgdir/etc/nginx/sites-available/nfsen" + install -Dm644 "$srcdir/nginx" "$pkgdir/usr/share/doc/$pkgname/vhost-nginx.conf" install -Dm755 "$srcdir/profile.sh" "$pkgdir/etc/profile.d/nfsen.sh" } md5sums=('fc45b3f44a66c2ed65d1269e479c2414' @@ -10,6 +10,22 @@ post_install() { note "To complete the installation, run:" note " cd /usr/share/webapps/nfsen" note " su -c "./install.pl /etc/nfsen.conf"" + echo "" + note "If you edited /etc/nfsen.conf you also need to run:" + note " cd /usr/share/webapps/nfsen" + note " su -c "./install.pl /etc/nfsen.conf"" + echo "" + note "If you want to use the nginx to access the web, run:" + note " sudo pacman -S nginx php-fpm" + note " Edit /etc/php/php.ini:" + note " Remove comment from ";extension=sockets.so" string" + note " Set up virtualhost in nginx" + notr " An example of the setting for nginx is in the file /usr/share/doc/nfsen/vhost-nginx.conf " + note " And run:" + note " sudo systemctl start nginx php-fpm" + echo "" + note "If you are using a web server Apache you know what to do :)" + echo "" } post_upgrade() { |