gitea&deps -
This commit is contained in:
72
gitea/alr.sh
72
gitea/alr.sh
@ -1,72 +0,0 @@
|
||||
name='gitea'
|
||||
version='1.23.5'
|
||||
release='2'
|
||||
desc='Painless self-hosted Git service, community managed.'
|
||||
homepage='https://gitea.io'
|
||||
maintainer="Евгений Храмов <xpamych@yandex.ru>"
|
||||
architectures=('amd64')
|
||||
license=('MIT')
|
||||
provides=('gitea')
|
||||
conflicts=('gitea' 'gitea-git')
|
||||
|
||||
deps=(
|
||||
'git'
|
||||
)
|
||||
|
||||
build_deps=(
|
||||
'go'
|
||||
'nodejs'
|
||||
'npm'
|
||||
'python3-poetry-core'
|
||||
'openssh'
|
||||
'pam-devel'
|
||||
)
|
||||
|
||||
opt_deps=(
|
||||
'mariadb: поддержка MariaDB'
|
||||
'memcached: поддержка MemCached'
|
||||
'openssh: поддержка GIT поверх SSH'
|
||||
'pam: поддержка аутентификации с помощью PAM'
|
||||
'postgresql: поддержка PostgreSQL'
|
||||
'redis: поддержка Redis'
|
||||
'sqlite: поддержка SQLite'
|
||||
)
|
||||
|
||||
sources=("git+https://github.com/go-gitea/gitea.git#tag=v${version}")
|
||||
checksums=('SKIP')
|
||||
|
||||
options=(!lto)
|
||||
backup=('etc/gitea/app.ini')
|
||||
|
||||
prepare() {
|
||||
cd ${name}
|
||||
# Patch to disable failing tests that rely on weak ssh keys (DSA-1024)
|
||||
# See https://github.com/go-gitea/gitea/issues/31624
|
||||
make deps
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${name}
|
||||
export CGO_CPPFLAGS="${CPPFLAGS}"
|
||||
export CGO_CFLAGS="${CFLAGS}"
|
||||
export CGO_CXXFLAGS="${CXXFLAGS}"
|
||||
export CGO_LDFLAGS="${LDFLAGS}"
|
||||
export EXTRA_GOFLAGS="-buildmode=pie -mod=readonly -modcacherw"
|
||||
export LDFLAGS="-linkmode=external -compressdwarf=false -X 'code.gitea.io/gitea/modules/setting.AppWorkPath=/var/lib/gitea/' -X 'code.gitea.io/gitea/modules/setting.CustomConf=/etc/gitea/app.ini'"
|
||||
export TAGS="bindata sqlite sqlite_unlock_notify pam"
|
||||
make -j$(nproc)
|
||||
}
|
||||
|
||||
check() {
|
||||
cd ${name}
|
||||
make test
|
||||
}
|
||||
|
||||
package() {
|
||||
install-binary ${name}/${name}
|
||||
install-license ${name}/LICENSE ./$name/LICENSE
|
||||
install-systemd ${scriptdir}/${name}.service
|
||||
install -Dm644 ${scriptdir}/${name}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${name}.conf
|
||||
install -Dm644 ${scriptdir}/${name}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${name}.conf
|
||||
install -Dm644 ${name}/custom/conf/app.example.ini "${pkgdir}"/etc/gitea/app.ini
|
||||
}
|
@ -1,50 +0,0 @@
|
||||
[Unit]
|
||||
Description=Gitea (Git with a cup of tea)
|
||||
After=network.target
|
||||
After=mysqld.service
|
||||
After=postgresql.service
|
||||
After=memcached.service
|
||||
After=redis.service
|
||||
|
||||
[Service]
|
||||
User=gitea
|
||||
Group=gitea
|
||||
Type=simple
|
||||
WorkingDirectory=~
|
||||
RuntimeDirectory=gitea
|
||||
LogsDirectory=gitea
|
||||
StateDirectory=gitea
|
||||
Environment=USER=gitea HOME=/var/lib/gitea GITEA_WORK_DIR=/var/lib/gitea
|
||||
ExecStart=/usr/bin/gitea web -c /etc/gitea/app.ini
|
||||
Restart=always
|
||||
RestartSec=2s
|
||||
ReadWritePaths=/etc/gitea/app.ini
|
||||
AmbientCapabilities=
|
||||
CapabilityBoundingSet=
|
||||
LockPersonality=true
|
||||
#Required by commit search
|
||||
#MemoryDenyWriteExecute=true
|
||||
NoNewPrivileges=True
|
||||
#SecureBits=noroot-locked
|
||||
PrivateDevices=true
|
||||
PrivateTmp=true
|
||||
PrivateUsers=true
|
||||
ProtectClock=true
|
||||
ProtectControlGroups=true
|
||||
ProtectHome=true
|
||||
ProtectHostname=true
|
||||
ProtectKernelLogs=true
|
||||
ProtectKernelModules=true
|
||||
ProtectKernelTunables=true
|
||||
ProtectProc=invisible
|
||||
ProtectSystem=strict
|
||||
RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX
|
||||
RestrictNamespaces=true
|
||||
RestrictRealtime=true
|
||||
RestrictSUIDSGID=true
|
||||
SystemCallArchitectures=native
|
||||
SystemCallFilter=@system-service
|
||||
SystemCallErrorNumber=EPERM
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -1 +0,0 @@
|
||||
u gitea - "Gitea daemon user" /var/lib/gitea /bin/bash
|
@ -1,10 +0,0 @@
|
||||
d /var/lib/gitea 0750
|
||||
d /var/lib/gitea/attachments 0750
|
||||
d /var/lib/gitea/data 0750
|
||||
d /var/lib/gitea/indexers 0750
|
||||
d /var/lib/gitea/repos 0750
|
||||
d /var/lib/gitea/tmp 0750
|
||||
Z /var/lib/gitea - gitea gitea
|
||||
d /var/log/gitea 0750 gitea gitea
|
||||
z /etc/gitea 0755 root gitea
|
||||
z /etc/gitea/app.ini 0660 root gitea
|
@ -1,54 +0,0 @@
|
||||
name='libnghttp3'
|
||||
version='1.9.0'
|
||||
release='2'
|
||||
desc='HTTP/3 library written in C.'
|
||||
desc_ru='Библиотека HTTP/3, написанная на C.'
|
||||
homepage='https://github.com/ngtcp2/nghttp3'
|
||||
maintainer='Evgeniy Khramov xpamych@yandex.ru'
|
||||
maintainer_ru="Евгений Храмов <xpamych@yandex.ru>"
|
||||
architectures=('amd64')
|
||||
license=('MIT')
|
||||
provides=('libnghttp3.so')
|
||||
conflicts=('libnghttp3' 'libnghttp3-devel')
|
||||
|
||||
deps=(
|
||||
'glibc'
|
||||
)
|
||||
|
||||
build_deps=(
|
||||
'autoconf'
|
||||
'automake'
|
||||
'libtool'
|
||||
)
|
||||
|
||||
sources=("https://github.com/ngtcp2/nghttp3/releases/download/v$version/nghttp3-$version.tar.xz")
|
||||
checksums=('SKIP')
|
||||
|
||||
prepare() {
|
||||
cd nghttp3-$version
|
||||
autoreconf -i
|
||||
}
|
||||
|
||||
build() {
|
||||
cd nghttp3-$version
|
||||
./configure \
|
||||
--prefix=/usr
|
||||
make -j$(($(nproc) - 1))
|
||||
}
|
||||
|
||||
check() {
|
||||
cd nghttp3-$version
|
||||
make check -j$(($(nproc) - 1))
|
||||
}
|
||||
|
||||
package() {
|
||||
cd nghttp3-$version/lib
|
||||
make DESTDIR="${pkgdir}" install
|
||||
install -Dm644 ../COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
}
|
||||
|
||||
files() {
|
||||
printf '"%s" ' ./usr/include/nghttp3/*
|
||||
printf '"%s" ' ./usr/lib64/**/*
|
||||
echo ./usr/share/licenses/COPYING
|
||||
}
|
@ -1,61 +0,0 @@
|
||||
name='libngtcp2'
|
||||
version='1.12.0'
|
||||
release='1'
|
||||
desc='Implementation of IETF QUIC protocol.'
|
||||
desc_ru='Реализация протокола QUIC.'
|
||||
homepage='https://github.com/ngtcp2/ngtcp2'
|
||||
maintainer='Evgeniy Khramov xpamych@yandex.ru'
|
||||
maintainer_ru="Евгений Храмов <xpamych@yandex.ru>"
|
||||
architectures=('amd64')
|
||||
license=('MIT')
|
||||
provides=(
|
||||
'libngtcp2.so'
|
||||
'libngtcp2_crypto_gnutls.so'
|
||||
'libngtcp2_crypto_ossl.so'
|
||||
)
|
||||
|
||||
deps=(
|
||||
'glibc'
|
||||
'openssl'
|
||||
'gnutls'
|
||||
|
||||
)
|
||||
build_deps=(
|
||||
'autoconf'
|
||||
'automake'
|
||||
'brotli-devel'
|
||||
'gnutls-devel'
|
||||
'libtool'
|
||||
)
|
||||
|
||||
sources=("https://github.com/ngtcp2/ngtcp2/archive/refs/tags/v$version.tar.gz")
|
||||
checksums=('SKIP')
|
||||
|
||||
prepare() {
|
||||
cd ngtcp2-$version
|
||||
autoreconf -i
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ngtcp2-$version
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--with-libbrotlienc \
|
||||
--with-libbrotlidec \
|
||||
--with-gnutls \
|
||||
--enable-lib-only
|
||||
make -j$(($(nproc) - 1))
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ngtcp2-$version
|
||||
make DESTDIR="${pkgdir}" install
|
||||
install-license ./COPYING ./ngtcp2/COPYING
|
||||
}
|
||||
|
||||
files() {
|
||||
printf '"%s" ' ./usr/include/ngtcp2/*
|
||||
printf '"%s" ' ./usr/lib64/**/*
|
||||
echo ./usr/share/doc/ngtcp2/README.rst
|
||||
echo ./usr/share/licenses/ngtcp2/COPYING
|
||||
}
|
@ -1,37 +0,0 @@
|
||||
name='python3-flit-core'
|
||||
version='3.12.0'
|
||||
release='2'
|
||||
desc='Distribution-building parts of Flit. See flit package for more information.'
|
||||
homepage='https://github.com/pypa/flit'
|
||||
maintainer='Evgeniy Khramov <xpamych@yandex.ru>'
|
||||
maintainer_ru='Евгений Храмов <xpamych@yandex.ru>'
|
||||
architectures=('all')
|
||||
license=('BSD 3-clause')
|
||||
provides=('flit-core')
|
||||
conflicts=('flit-core')
|
||||
|
||||
deps=("python3")
|
||||
deps_arch=("python")
|
||||
deps_alpine=("python3")
|
||||
|
||||
build_deps=("python3" "python3-pip")
|
||||
build_deps_arch=("python" "python-pip")
|
||||
build_deps_alpine=("python3" "py3-pip")
|
||||
|
||||
sources=("https://files.pythonhosted.org/packages/source/f/flit-core/flit_core-3.12.0.tar.gz")
|
||||
checksums=('blake2b-256:6959b6fc2188dfc7ea4f936cd12b49d707f66a1cb7a1d2c16172963534db741b')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/flit_core-${version}"
|
||||
python -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/flit_core-${version}"
|
||||
pip install --root="${pkgdir}/" . --no-deps --ignore-installed --disable-pip-version-check
|
||||
}
|
||||
|
||||
files() {
|
||||
printf '"%s" ' ./usr/local/lib/python3.*/site-packages/flit_core/*
|
||||
printf '"%s" ' ./usr/local/lib/python3.*/site-packages/flit_core-${version}.dist-info/*
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
name='python3-sphinx'
|
||||
version='8.2.3'
|
||||
release='1'
|
||||
desc='Python documentation generator.'
|
||||
desc_ru='Генератор документации для Python.'
|
||||
homepage='https://github.com/sphinx-doc/sphinx'
|
||||
maintainer='Evgeniy Khramov <xpamych@yandex.ru>'
|
||||
maintainer_ru='Евгений Храмов <xpamych@yandex.ru>'
|
||||
architectures=('all')
|
||||
license=('custom')
|
||||
provides=('sphinx')
|
||||
conflicts=('sphinx')
|
||||
|
||||
deps=("python3")
|
||||
deps_arch=("python")
|
||||
deps_alpine=("python3")
|
||||
|
||||
build_deps=("python3" "python3-pip")
|
||||
build_deps_arch=("python" "python-pip")
|
||||
build_deps_alpine=("python3" "py3-pip")
|
||||
|
||||
sources=("https://files.pythonhosted.org/packages/source/s/Sphinx/sphinx-8.2.3.tar.gz")
|
||||
checksums=('blake2b-256:38ad4360e50ed56cb483667b8e6dadf2d3fda62359593faabbe749a27c4eaca6')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/sphinx-${version}"
|
||||
python -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/sphinx-${version}"
|
||||
pip install --root="${pkgdir}/" . --no-deps --ignore-installed --disable-pip-version-check
|
||||
}
|
||||
|
||||
files() {
|
||||
printf '"%s" ' ./usr/local/lib/python3.*/site-packages/sphinx/*
|
||||
printf '"%s" ' ./usr/local/lib/python3.*/site-packages/sphinx-${version}.dist-info/*
|
||||
}
|
@ -1,62 +0,0 @@
|
||||
name='simdjson'
|
||||
epoch='1'
|
||||
version='3.12.3'
|
||||
release='3'
|
||||
desc='A C++ library to see how fast we can parse JSON with complete validation.'
|
||||
desc_ru='Библиотека для парсинга JSON с полной валидацией.'
|
||||
homepage='https://github.com/simdjson/simdjson'
|
||||
maintainer='Evgeniy Khramov xpamych@yandex.ru'
|
||||
maintainer_ru="Евгений Храмов <xpamych@yandex.ru>"
|
||||
architectures=('amd64')
|
||||
license=('Apache-2.0')
|
||||
|
||||
deps=(
|
||||
'libgcc'
|
||||
)
|
||||
build_deps=(
|
||||
'autoconf'
|
||||
'automake'
|
||||
'cmake'
|
||||
'libtool'
|
||||
'pkgconf-pkg-config'
|
||||
)
|
||||
|
||||
sources=("https://github.com/simdjson/simdjson/archive/v$version.tar.gz")
|
||||
checksums=('SKIP')
|
||||
|
||||
build() {
|
||||
cmake -B build -S "$name-$version" \
|
||||
-DBUILD_SHARED_LIBS='On' \
|
||||
-DCMAKE_BUILD_TYPE='None' \
|
||||
-DCMAKE_INSTALL_PREFIX='/usr' \
|
||||
-DCPM_USE_LOCAL_PACKAGES='On' \
|
||||
-DSIMDJSON_DEVELOPER_MODE='On' \
|
||||
-DSIMDJSON_ALLOW_DOWNLOADS='Off' \
|
||||
-Wno-dev
|
||||
|
||||
cmake --build build -j$(($(nproc) - 1))
|
||||
}
|
||||
|
||||
check() {
|
||||
local excluded_tests=""
|
||||
local ctest_flags=(
|
||||
--test-dir build
|
||||
# show the stdout and stderr when the test fails
|
||||
--output-on-failure
|
||||
# execute tests in parallel
|
||||
--parallel $(nproc)
|
||||
# exclude problematic tests
|
||||
--exclude-regex "$excluded_tests"
|
||||
)
|
||||
|
||||
ctest "${ctest_flags[@]}"
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir/" cmake --install build
|
||||
}
|
||||
|
||||
files() {
|
||||
printf '"%s" ' ./usr/lib64/**/*
|
||||
echo ./usr/include/simdjson.h
|
||||
}
|
Reference in New Issue
Block a user