aboutsummaryrefslogblamecommitdiffstats
path: root/community/synapse/APKBUILD
blob: 79c7b7d4d61b8c35c9b449c1842c58ef20a110ae (plain) (tree)
1
2
3
4
5
6
7
8


                                             
             
        

                                           
                                                 



















                            












                             
                             

                   
                 
                 

                            
                                                     






                                                                                              
                              

         
           


                      

                      

                     

                      

                      

                      
 





















                                                                           
            
                                                                                                                                                       
                                                                                                                                               
                                                                                                                                               
                                                                                                                                                        
 
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=synapse
pkgver=1.45.1
pkgrel=0
pkgdesc="Matrix reference homeserver"
url="https://github.com/matrix-org/synapse"
arch="noarch !armhf !s390x !ppc64le" # Tests fail
license="Apache-2.0"
depends="
	python3
	py3-eliot
	py3-txacme
	py3-jsonschema
	py3-frozendict
	py3-canonicaljson
	py3-pynacl
	py3-idna
	py3-service_identity
	py3-twisted
	py3-openssl
	py3-yaml
	py3-asn1
	py3-asn1-modules
	py3-daemonize
	py3-bcrypt
	py3-pillow
	py3-sortedcontainers
	py3-msgpack
	py3-phonenumbers
	py3-six
	py3-attrs
	py3-netaddr
	py3-jinja2
	py3-pymacaroons
	py3-prometheus-client
	py3-treq
	py3-lxml
	py3-psycopg2
	py3-signedjson
	py3-bleach
	py3-typing-extensions
	py3-authlib
	py3-jwt
	py3-saml2
	py3-ijson
	"
makedepends="py3-setuptools"
checkdepends="py3-mock py3-parameterized py3-hiredis"
pkgusers="synapse"
pkggroups="synapse"
install="$pkgname.pre-install $pkgname.post-install"
subpackages="$pkgname-openrc"
source="$pkgname-$pkgver.tar.gz::https://github.com/matrix-org/synapse/archive/v$pkgver.tar.gz
	synapse.initd
	synapse.confd
	relax-crypto-dep.patch
	"

# secfixes:
#   1.41.1-r0:
#     - CVE-2021-39164
#     - CVE-2021-39163
#   1.33.2-r0:
#     - CVE-2021-29471
#   1.30.1-r0:
#     - CVE-2021-3449
#   1.24.0-r0:
#     - CVE-2020-26257
#   1.21.1-r0:
#     - CVE-2020-26891
#   1.20.0-r0:
#     - CVE-2020-26890

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="." trial tests
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"

	install -d -g synapse -o synapse -m775 \
		"$pkgdir"/etc/synapse \
		"$pkgdir"/var/lib/synapse

	cp -a synapse/res "$pkgdir"/var/lib/synapse
	chown -R synapse:synapse "$pkgdir"/var/lib/synapse/res

	install -Dm755 "$srcdir"/synapse.initd "$pkgdir"/etc/init.d/synapse
	install -Dm644 "$srcdir"/synapse.confd "$pkgdir"/etc/conf.d/synapse
}

sha512sums="
b2326d9e9f94f1a40488ade2931c5c139c1f27dfe0b16981b832cf595ba03dfd286f464cd49f6a20018eeaa1d2999fa8bb8c5416a2273b58842df4d608ea7c22  synapse-1.45.1.tar.gz
7ac08b676b246647ebfa50f46525ed81d4fa53e83ab11d984f1cedc79ffbbcf12234424215f44f7038b82b7523c1e2fcac306d8bdc9d64648c5d994017b51e55  synapse.initd
7c022f0e00c8ac363d6d2e003b6389fb06a3934f68390ebac156cb46bc1366585e6b6cda07b15176bc62a00f5bf21bfda153ff5418b07331257a7075102a6f83  synapse.confd
1a51c2bc9aae9cac28ede7dd3e37297ed6a5d40360a4f3935f095ed8ebb7aff5a1d3c6476e61d46070029f228dba574c77c8bdb4b111e87e0411bc5c80a0d2a9  relax-crypto-dep.patch
"