Compare commits

..

2 Commits

Author SHA1 Message Date
f69f384802 Initial upload: victoriametrics 1.55.1-1 2021-03-07 19:37:02 +01:00
55c32498ca Deleted package: nginx-mod-vts
Deleted package: php-pdlib
2021-03-07 18:45:07 +01:00
9 changed files with 89 additions and 142 deletions

View File

@@ -1,19 +0,0 @@
pkgbase = nginx-mod-vts
pkgdesc = Nginx virtual host traffic status module
pkgver = 0.1.18
pkgrel = 1
url = https://github.com/vozlt/nginx-module-vts
arch = i686
arch = x86_64
license = BSD
depends = nginx
source = http://nginx.org/download/nginx-1.18.0.tar.gz
source = http://nginx.org/download/nginx-1.18.0.tar.gz.asc
source = https://github.com/vozlt/nginx-module-vts/archive/v0.1.18.tar.gz
validpgpkeys = B0F4253373F8F6F510D42178520A9993A1C052F8
sha256sums = 4c373e7ab5bf91d34a4f11a0c9496561061ba5eee6020db272a17a7228d35f99
sha256sums = SKIP
sha256sums = 17ea41d4083f6d1ab1ab83dad9160eeca66867abe16c5a0421f85a39d7c84b65
pkgname = nginx-mod-vts

View File

@@ -1,41 +0,0 @@
# Maintainer: Giovanni Harting <539@idlegandalf.com>
pkgname=nginx-mod-vts
pkgver=0.1.18
pkgrel=1
_modname="nginx-module-vts"
_nginxver="1.18.0"
pkgdesc="Nginx virtual host traffic status module"
arch=('i686' 'x86_64')
depends=('nginx')
url="https://github.com/vozlt/nginx-module-vts"
license=('BSD')
source=(
http://nginx.org/download/nginx-$_nginxver.tar.gz
http://nginx.org/download/nginx-$_nginxver.tar.gz.asc
https://github.com/vozlt/$_modname/archive/v$pkgver.tar.gz
)
sha256sums=('4c373e7ab5bf91d34a4f11a0c9496561061ba5eee6020db272a17a7228d35f99'
'SKIP'
'17ea41d4083f6d1ab1ab83dad9160eeca66867abe16c5a0421f85a39d7c84b65')
validpgpkeys=('B0F4253373F8F6F510D42178520A9993A1C052F8')
build() {
cd "$srcdir"/nginx-$_nginxver
./configure --with-compat --add-dynamic-module=../$_modname-$pkgver
make modules
}
package() {
cd "$srcdir"/nginx-$_nginxver/objs
for mod in *.so; do
install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
done
install -Dm0644 "${srcdir}/nginx-module-vts-$pkgver"/LICENSE "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE
}

View File

@@ -1,19 +0,0 @@
pkgbase = php-pdlib
pkgdesc = PHP extension for Dlib.
pkgver = 1.0.2
pkgrel = 1
url = https://github.com/goodspb/pdlib
arch = x86_64
license = MIT
depends = php
depends = dlib
depends = openblas
depends = giflib
backup = etc/php/conf.d/pdlib.ini
source = php-pdlib-1.0.2.tar.gz::https://github.com/goodspb/pdlib/archive/v1.0.2.tar.gz
source = gif.patch
b2sums = fb149fcfe4b670b493aa33979493925c87a862f804ff95a894472d125f213558ae2d6f27949fed82c32b8eb277f7956579292e8cfd6797362611b241a3e61dcd
b2sums = c5b1634fd8c7aa56a30afc2275a5b0b65ec867eef1b084ab7869f565fec18eb2c887c476e0d0b2be6b228b8109df84e049bacee22b239ab381119ccadab3b87f
pkgname = php-pdlib

View File

@@ -1,44 +0,0 @@
# Maintainer: Giovanni Harting <539@idlegandalf.com>
pkgname=php-pdlib
_name=pdlib
pkgver=1.0.2
pkgrel=1
pkgdesc="PHP extension for Dlib."
arch=('x86_64')
url="https://github.com/goodspb/pdlib"
license=('MIT')
depends=('php' 'dlib' 'openblas' 'giflib')
backup=("etc/php/conf.d/${_name}.ini")
source=("$pkgname-$pkgver.tar.gz::https://github.com/goodspb/${_name}/archive/v${pkgver}.tar.gz"
"gif.patch")
b2sums=('fb149fcfe4b670b493aa33979493925c87a862f804ff95a894472d125f213558ae2d6f27949fed82c32b8eb277f7956579292e8cfd6797362611b241a3e61dcd'
'c5b1634fd8c7aa56a30afc2275a5b0b65ec867eef1b084ab7869f565fec18eb2c887c476e0d0b2be6b228b8109df84e049bacee22b239ab381119ccadab3b87f')
prepare() {
cd "$_name-$pkgver"
patch -Np1 -i "$srcdir"/gif.patch
}
build() {
cd "$_name-$pkgver"
phpize
./configure --prefix=/usr
make
}
package() {
cd "$_name-$pkgver"
make INSTALL_ROOT="$pkgdir" install
install -d "$pkgdir/etc/php/conf.d"
echo '[pdlib]\n;extension="pdlib.so"' >"$pkgdir/etc/php/conf.d/$_name.ini"
}
check() {
cd "$_name-$pkgver"
export TEST_PHP_EXECUTABLE=/usr/bin/php
export TEST_PHP_ARGS="-d extension=/usr/lib/php/modules/bz2.so -d extension=${srcdir}/${_name}-${pkgver}/modules/pdlib.so"
make NO_INTERACTION=1 test
}

View File

@@ -1,19 +0,0 @@
diff --git a/config.m4 b/config.m4
index b7515b2..4736498 100644
--- a/config.m4
+++ b/config.m4
@@ -13,6 +13,7 @@ dnl Make sure that the comment is aligned:
if test "$PHP_PDLIB" != "no"; then
PHP_REQUIRE_CXX()
PHP_ADD_LIBRARY(stdc++, 1, PDLIB_SHARED_LIBADD)
+ PHP_ADD_LIBRARY(gif, 1, PDLIB_SHARED_LIBADD)
PHP_SUBST(PDLIB_SHARED_LIBADD)
pdlib_src_files="pdlib.cc \
@@ -65,4 +66,4 @@ AC_CONFIG_COMMANDS_POST([
echo "Please submit bug reports at:"
echo " https://github.com/goodspb/pdlib/issues"
echo ""
-])
\ No newline at end of file
+])

18
victoriametrics/.SRCINFO Normal file
View File

@@ -0,0 +1,18 @@
pkgbase = victoriametrics
pkgdesc = Fast, cost-effective and scalable time series database
pkgver = 1.55.1
pkgrel = 1
url = https://victoriametrics.github.io
arch = x86_64
license = Apache
makedepends = go
backup = etc/default/victoriametrics
source = https://github.com/VictoriaMetrics/VictoriaMetrics/archive/v1.55.1.tar.gz
source = victoriametrics.service
source = victoriametrics.default
sha256sums = 083f38a4f03a5096dfef59c4d56fd50d0435054e0b9e175239d99062394e4fe0
sha256sums = 8b264a0843ef9ed06b144220b5607027014c7af459293eadd0a3ffcbc05251d2
sha256sums = 0fc91310e2c3140bd90b2fad62f497d8e7432cf3a2a8ab3a034b45958e01012a
pkgname = victoriametrics

44
victoriametrics/PKGBUILD Normal file
View File

@@ -0,0 +1,44 @@
# Maintainer: Giovanni Harting <539@idlegandalf.com>
# Contributor: KawaiDesu <zmey1992@ya.ru>
pkgname=victoriametrics
_capname=VictoriaMetrics
pkgver=1.55.1
pkgrel=1
pkgdesc="Fast, cost-effective and scalable time series database"
arch=('x86_64')
url="https://victoriametrics.github.io"
license=('Apache')
makedepends=('go')
backup=('etc/default/victoriametrics')
source=("https://github.com/VictoriaMetrics/VictoriaMetrics/archive/v$pkgver.tar.gz"
"victoriametrics.service"
"victoriametrics.default")
sha256sums=('083f38a4f03a5096dfef59c4d56fd50d0435054e0b9e175239d99062394e4fe0'
'8b264a0843ef9ed06b144220b5607027014c7af459293eadd0a3ffcbc05251d2'
'0fc91310e2c3140bd90b2fad62f497d8e7432cf3a2a8ab3a034b45958e01012a')
build() {
cd "$_capname-$pkgver"
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 GO111MODULE=on CGO_CPPFLAGS="${CPPFLAGS}" CGO_CFLAGS="${CFLAGS}" CGO_CXXFLAGS="${CXXFLAGS}" CGO_LDFLAGS="${LDFLAGS}" \
go build -trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
-o bin/victoria-metrics \
./app/victoria-metrics
}
check() {
cd "$_capname-$pkgver"
go test ./app/victoria-metrics
}
package() {
install -Dm 755 "${srcdir}/${_capname}-${pkgver}"/bin/victoria-metrics -t "${pkgdir}"/usr/bin/
install -Dm 644 victoriametrics.service -t "${pkgdir}"/usr/lib/systemd/system/
install -Dm 644 victoriametrics.default -t "${pkgdir}"/etc/default/victoriametrics
}

View File

@@ -0,0 +1 @@
ARGS=""

View File

@@ -0,0 +1,26 @@
[Unit]
Description=Fast, cost-effective and scalable time series database
Documentation=https://victoriametrics.github.io/
After=network.target
[Service]
DynamicUser=true
LogsDirectory=victoriametrics
StateDirectory=victoriametrics
AmbientCapabilities=
CapabilityBoundingSet=
LockPersonality=true
ProtectControlGroups=true
ProtectKernelModules=true
ProtectKernelTunables=true
User=victoriametrics
Group=victoriametrics
EnvironmentFile=/etc/default/victoriametrics
ExecStart=/usr/bin/victoria-metrics -storageDataPath /var/lib/victoriametrics $ARGS
LimitNOFILE=65536
LimitNPROC=32000
[Install]
WantedBy=multi-user.target