summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaichi Shinozaki2016-02-02 11:22:21 +0000
committerDaichi Shinozaki2016-02-02 11:22:21 +0000
commit5b12be10a4130c7e516af5cc8b3d9f56272af4c4 (patch)
tree4f6a8bb74eb31aef19f7e90cd12ea49b63c9e83a
parentc258e10df3662dfe95ca3ed3eae22553b2babfdf (diff)
downloadaur-5b12be10a4130c7e516af5cc8b3d9f56272af4c4.tar.gz
Added a openresty.install
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD9
-rw-r--r--openresty.install10
3 files changed, 20 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0b45608a9763..a70b33e22320 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,10 +1,11 @@
# Generated by mksrcinfo v8
-# Fri Jan 29 14:31:52 UTC 2016
+# Tue Feb 2 11:21:56 UTC 2016
pkgbase = openresty
pkgdesc = A Fast and Scalable Web Platform by Extending NGINX with Lua
pkgver = 1.9.7.3
- pkgrel = 2
+ pkgrel = 3
url = http://openresty.org/
+ install = openresty.install
arch = i686
arch = x86_64
license = BSD
@@ -25,9 +26,11 @@ pkgbase = openresty
source = http://openresty.org/download/openresty-1.9.7.3.tar.gz
source = service
source = openresty.logrotate
+ source = openresty.install
sha256sums = 3e4422576d11773a03264021ff7985cd2eeac3382b511ae3052e835210a9a69a
sha256sums = ec55ac7da98f5f5ec54d096c5f79b656edec0ebca835b6b9f1d20fb7be7119c5
sha256sums = 613b0ed3fe4b5ee505ddb5122ee41604f464a5049be81c97601ee93970763a23
+ sha256sums = f071e0fd8d0d588f03fcc7db6f3cb3f7ea1b870d3416a0bde142d9aeb839d0f6
pkgname = openresty
diff --git a/PKGBUILD b/PKGBUILD
index 99bf56ef2422..ca6cbfa975ab 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,22 +6,23 @@ _cfgdir=/opt/openresty/nginx/conf
_tmpdir=/var/lib/openresty
pkgname=openresty
pkgver=1.9.7.3
-pkgrel=2
+pkgrel=3
pkgdesc="A Fast and Scalable Web Platform by Extending NGINX with Lua"
arch=('i686' 'x86_64')
url="http://openresty.org/"
license=('BSD')
depends=('perl>=5.6.1' 'readline' 'pcre' 'openssl')
-install=
+install=$pkgname.install
source=(http://openresty.org/download/$pkgname-$pkgver.tar.gz
service
- openresty.logrotate
+ $pkgname.logrotate
+ $pkgname.install
)
noextract=()
sha256sums=('3e4422576d11773a03264021ff7985cd2eeac3382b511ae3052e835210a9a69a'
'ec55ac7da98f5f5ec54d096c5f79b656edec0ebca835b6b9f1d20fb7be7119c5'
'613b0ed3fe4b5ee505ddb5122ee41604f464a5049be81c97601ee93970763a23'
- )
+ 'f071e0fd8d0d588f03fcc7db6f3cb3f7ea1b870d3416a0bde142d9aeb839d0f6')
backup=(${_cfgdir:1}/fastcgi.conf
${_cfgdir:1}/fastcgi_params
${_cfgdir:1}/koi-win
diff --git a/openresty.install b/openresty.install
new file mode 100644
index 000000000000..5bb3904b5f80
--- /dev/null
+++ b/openresty.install
@@ -0,0 +1,10 @@
+post_install(){
+ cat<<'EOL'
+Please add a following line to the ~/.bashrc or ~/.zshrc :
+export PATH=/opt/openresty/bin:$PATH
+EOL
+
+}
+post_upgrade(){
+ post_install
+}