blob: 6995d01a3b8b10bc2408b11b24d9802f45e67f08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# Maintainer: Benjamin A. Shelton <zancarius@gmail.com>
# Source: https://github.com/zancarius/archlinux-pkgbuilds
pkgbase=sentry
pkgname=('sentry')
pkgver=8.20.0
pkgrel=1
pkgdesc="Python-based realtime logging and aggregation server."
arch=(any)
url="http://pypi.python.org/pypi/sentry"
license=(BSD)
makedepends=(
'clang'
'python2-pip'
'python2-setuptools'
'python2-virtualenv'
)
install='sentry.install'
depends=(
'jansson'
'libjpeg-turbo'
'libxml2'
'libxslt'
'llvm'
'ncurses5-compat-libs'
'python2'
'postgresql'
'redis'
)
options=(!strip)
source=(
"sentry.install"
"sentry-celery.service"
"sentry-cron.service"
"sentry.service"
"sentry-web.service"
"sentry.target"
"sentry-sysusers.conf"
)
sha256sums=(
f546dfbb4c3dac72a9588f18c7dca668b680ddc4d8878f54b174756acc6de2bf # sentry.install
d60b097721ec4acbc5b1232a0f29ef9d21d60228d17db655848a8e2a5c9a5281 # sentry-celery.service
d22b9bde7c39d9d0f031ba1b01c955c9dbe4ffe3f3f083875fe557f75f0050f7 # sentry-cron.service
3c471417a279ac6605d3bb82b7377eaab0e24efe9cf582a11eef0d9e4c89428e # sentry.service
0fe0062a77f78b01ab3729f0217a9d6b448cbfb7521c4a04c79d6e3062b4c635 # sentry-web.service
94121159756f7ac863e2b1149b530ea633efa2f3eeef57cc332e1f4cba724e2d # sentry.target
682917f4da89a526949fec71c1afa5849a3a73453b812c8edd945e2f8b146926 # sentry-sysusers.conf
)
package() {
mkdir -p "${pkgdir}/opt/sentry"
virtualenv2 --python=python2.7 "${pkgdir}/opt/sentry"
source "${pkgdir}/opt/sentry/bin/activate"
# Begin Sentry installation for our specific version via PyPI. This
# guarantees we'll grab all of the appropriate dependencies and
# automates the process.
#
# If you're running GCC 6.1 and Sentry won't build, uncomment the following
# line and comment-out or remove the one immediately after it. If you wish
# to be more specific, replace -Wno-error with -Wno-misleading-indentation.
#CFLAGS="-Wno-error" "${pkgdir}/opt/sentry/bin/pip" install "sentry==${pkgver}"
"${pkgdir}/opt/sentry/bin/pip" install "sentry==${pkgver}"
# Make certain the virtualenv is relocatable.
virtualenv2 --relocatable "${pkgdir}/opt/sentry"
sed -i "s#${pkgdir}##" "${pkgdir}/opt/sentry/bin/activate"
mkdir -p "${pkgdir}/opt/sentry/.python-eggs"
mkdir -p "${pkgdir}/etc/sentry"
# Remove Desktop Services Store from package. At least one of these files
# still persists in the Sentry package. They're harmless, but I don't like
# them. :) More information: http://en.wikipedia.org/wiki/.DS_Store
find "${pkgdir}" -name '.DS_Store' -delete
install -Dm0644 "${srcdir}/sentry-celery.service" "${pkgdir}/usr/lib/systemd/system/sentry-celery.service"
install -Dm0644 "${srcdir}/sentry-cron.service" "${pkgdir}/usr/lib/systemd/system/sentry-cron.service"
install -Dm0644 "${srcdir}/sentry-web.service" "${pkgdir}/usr/lib/systemd/system/sentry-web.service"
install -Dm0644 "${srcdir}/sentry.service" "${pkgdir}/usr/lib/systemd/system/sentry.service"
install -Dm0644 "${srcdir}/sentry.target" "${pkgdir}/usr/lib/systemd/system/sentry.target"
install -Dm0644 "${srcdir}/sentry-sysusers.conf" "${pkgdir}/usr/lib/sysusers.d/sentry.conf"
}
|