mirror of
https://abf.rosa.ru/djam/syncthing.git
synced 2025-04-18 14:44:25 +00:00
Compare commits
13 commits
djam_perso
...
rosa2016.1
Author | SHA1 | Date | |
---|---|---|---|
![]() |
e058a58fdb | ||
![]() |
7333f3ae04 | ||
![]() |
eb44488603 | ||
![]() |
fbf2c21c9a | ||
dc5b1232eb | |||
309a40be21 | |||
bd6287e73f | |||
c6cc5188f2 | |||
4a5be75de2 | |||
574a83c0fa | |||
481af770fc | |||
705468c21a | |||
bbc0deca1a |
4 changed files with 47 additions and 5 deletions
2
.abf.yml
2
.abf.yml
|
@ -1,3 +1,3 @@
|
|||
sources:
|
||||
syncthing-1.27.6.tar.gz: ae6f0eeb5c31f5d72de25aec5217e8979285370f
|
||||
syncthing-1.29.5.tar.gz: 0cc3979f85891f592ea6e60f7fdcaa73550ffc3b
|
||||
syncthing-source-v1.3.0.tar.gz: 3034b64191fc6fca6ad407551ca5ce6c1a50d579
|
||||
|
|
17
.gitea/workflows/ci.yml
Normal file
17
.gitea/workflows/ci.yml
Normal file
|
@ -0,0 +1,17 @@
|
|||
version: '1'
|
||||
|
||||
name: Run CI/CD...
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
main:
|
||||
runs-on: r11_builder
|
||||
steps:
|
||||
- name: Jobs
|
||||
uses: ${{ github.server_url }}/Djam/r11_workflows@main
|
||||
with:
|
||||
CI_DEPLOY: ${{ secrets.CI_DEPLOY }}
|
||||
PUBLICATOR: ${{ secrets.PUBLICATOR }}
|
||||
REPO_DEPLOY: ${{ secrets.REPO_DEPLOY }}
|
||||
|
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
.*~
|
||||
*~
|
||||
.env
|
|
@ -9,9 +9,11 @@
|
|||
%ifarch %{arm}
|
||||
%global altarch armv7
|
||||
%endif
|
||||
%define secscan 0
|
||||
|
||||
|
||||
Name: syncthing
|
||||
Version: 1.27.6
|
||||
Version: 1.29.5
|
||||
Release: 1
|
||||
Summary: Syncthing
|
||||
License: MIT
|
||||
|
@ -22,9 +24,15 @@ Group: Networking/Other
|
|||
BuildRequires: systemd
|
||||
BuildRequires: procps
|
||||
BuildRequires: go >= 1.10
|
||||
BuildRequires: git
|
||||
BuildRequires: git-core
|
||||
BuildRequires: pkgconfig(openssl3.3)
|
||||
BuildRequires: upx
|
||||
|
||||
%if %{secscan}
|
||||
BuildRequires: clamav
|
||||
BuildRequires: trivy
|
||||
%endif
|
||||
|
||||
Requires(post): systemd
|
||||
Requires(preun): systemd
|
||||
Requires(postun): systemd
|
||||
|
@ -40,12 +48,17 @@ Using syncthing, that control is returned to you.
|
|||
|
||||
%prep
|
||||
%setup -q
|
||||
%if %{secscan}
|
||||
clamscan -ir .
|
||||
trivy fs --scanners vuln --format cosign-vuln .
|
||||
%endif
|
||||
|
||||
|
||||
%build
|
||||
export GOPROXY=direct
|
||||
export GOPROXY=https://proxy.golang.org,direct
|
||||
go run build.go -version v%{version}
|
||||
#./build.sh -version v%{version}
|
||||
upx bin/%{name}
|
||||
# upx bin/%{name}
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
|
@ -75,4 +88,13 @@ install -Dm0644 man/* %{buildroot}%{_mandir}/man1/%{name}
|
|||
%{_unitdir}/%{name}@.service
|
||||
%{_mandir}/man1/%{name}
|
||||
|
||||
%check
|
||||
export GOPROXY=https://proxy.golang.org/cached-only
|
||||
#go test ./...
|
||||
|
||||
%if %{secscan}
|
||||
clamscan -ir %{buildroot}
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
|
|
Loading…
Add table
Reference in a new issue