summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancoism902020-01-14 13:15:37 +0100
committerfrancoism902020-01-14 13:15:37 +0100
commitab7d21c545cb67d5d9e08ec4f92d8bb08537f3b2 (patch)
tree0a023ab8f34ce46343f2a7f7fd49f11b09166a87
downloadaur-ab7d21c545cb67d5d9e08ec4f92d8bb08537f3b2.tar.gz
Initial commit
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD56
2 files changed, 78 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..768964192aa
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = nginx-mainline-mod-secure-token-git
+ pkgdesc = Generates CDN tokens, either as a cookie or as a query string parameter.
+ pkgver = r153.596ed5f
+ pkgrel = 1
+ url = https://github.com/kaltura/nginx-secure-token-module
+ arch = i686
+ arch = x86_64
+ license = CUSTOM
+ makedepends = git
+ depends = nginx-mainline=1.17.7
+ provides = nginx-mainline-mod-secure-token
+ conflicts = nginx-mainline-mod-secure-token
+ source = https://nginx.org/download/nginx-1.17.7.tar.gz
+ source = https://nginx.org/download/nginx-1.17.7.tar.gz.asc
+ source = ngx_secure_token::git+https://github.com/kaltura/nginx-secure-token-module.git
+ validpgpkeys = B0F4253373F8F6F510D42178520A9993A1C052F8
+ sha256sums = b62756842807e5693b794e5d0ae289bd8ae5b098e66538b2a91eb80f25c591ff
+ sha256sums = SKIP
+ sha256sums = SKIP
+
+pkgname = nginx-mainline-mod-secure-token-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3499c041a71
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,56 @@
+# Maintainer: Francois Menning <f.menning@pm.me>
+# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
+
+_modname="ngx_secure_token"
+_nginxver=1.17.7
+
+pkgname=nginx-mainline-mod-secure-token-git
+pkgver=r153.596ed5f
+pkgrel=1
+pkgdesc="Generates CDN tokens, either as a cookie or as a query string parameter."
+arch=('i686' 'x86_64')
+depends=("nginx-mainline=$_nginxver")
+makedepends=('git')
+provides=('nginx-mainline-mod-secure-token')
+conflicts=('nginx-mainline-mod-secure-token')
+url="https://github.com/kaltura/nginx-secure-token-module"
+license=('CUSTOM')
+
+source=(
+ https://nginx.org/download/nginx-$_nginxver.tar.gz{,.asc}
+ "$_modname::git+https://github.com/kaltura/nginx-secure-token-module.git"
+)
+
+validpgpkeys=(
+ 'B0F4253373F8F6F510D42178520A9993A1C052F8' # Maxim Dounin <mdounin@mdounin.ru>
+)
+
+sha256sums=('b62756842807e5693b794e5d0ae289bd8ae5b098e66538b2a91eb80f25c591ff'
+ 'SKIP'
+ 'SKIP')
+
+pkgver() {
+ cd "$_modname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$srcdir"/$_modname
+ sed 's@/usr/local@/usr@' -i config
+}
+
+build() {
+ cd "$srcdir"/nginx-$_nginxver
+ ./configure --with-compat --add-dynamic-module=../$_modname
+ make modules
+}
+
+package() {
+ install -Dm644 "$srcdir"/$_modname/LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+ cd "$srcdir"/nginx-$_nginxver/objs
+ for mod in ngx_*.so; do
+ install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
+ done
+}