1 |
commit: c36b83b06fbc342740c00f817392d67f9b0e338a |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 3 11:08:17 2019 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 3 11:09:20 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c36b83b0 |
7 |
|
8 |
net-p2p/syncthing: depend on appropriate acct-{user,group} packages |
9 |
|
10 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.66, Repoman-2.3.11 |
12 |
|
13 |
net-p2p/syncthing/syncthing-1.1.4-r1.ebuild | 149 ++++++++++++++++++++++++++++ |
14 |
1 file changed, 149 insertions(+) |
15 |
|
16 |
diff --git a/net-p2p/syncthing/syncthing-1.1.4-r1.ebuild b/net-p2p/syncthing/syncthing-1.1.4-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..c0734439f11 |
19 |
--- /dev/null |
20 |
+++ b/net-p2p/syncthing/syncthing-1.1.4-r1.ebuild |
21 |
@@ -0,0 +1,149 @@ |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+EGO_PN="github.com/${PN}/${PN}" |
28 |
+ |
29 |
+EGO_VENDOR=( |
30 |
+ "github.com/AudriusButkevicius/go-nat-pmp 452c97607362b2ab5a7839b8d1704f0396b640ca" |
31 |
+ "github.com/AudriusButkevicius/recli v0.0.5" |
32 |
+ "github.com/bkaradzic/go-lz4 7224d8d8f27ef618c0a95f1ae69dbb0488abc33a" |
33 |
+ "github.com/calmh/du v1.0.1" |
34 |
+ "github.com/calmh/xdr v1.1.0" |
35 |
+ "github.com/chmduquesne/rollinghash a60f8e7142b536ea61bb5d84014171189eeaaa81" |
36 |
+ "github.com/d4l3k/messagediff v1.2.1" |
37 |
+ "github.com/davecgh/go-spew v1.1.1" |
38 |
+ "github.com/flynn-archive/go-shlex 3f9db97f856818214da2e1057f8ad84803971cff" |
39 |
+ "github.com/gobwas/glob 51eb1ee00b6d931c66d229ceeb7c31b985563420" |
40 |
+ "github.com/gogo/protobuf v1.2.1" |
41 |
+ "github.com/golang/groupcache 84a468cf14b4376def5d68c722b139b881c450a4" |
42 |
+ "github.com/golang/snappy 553a641470496b2327abcac10b36396bd98e45c9" |
43 |
+ "github.com/jackpal/gateway 5795ac81146e01d3fab7bcf21c043c3d6a32b006" |
44 |
+ "github.com/kballard/go-shellquote cd60e84ee657ff3dc51de0b4f55dd299a3e136f2" |
45 |
+ "github.com/kr/pretty v0.1.0" |
46 |
+ "github.com/lib/pq v1.1.1" |
47 |
+ "github.com/mattn/go-isatty v0.0.7" |
48 |
+ "github.com/minio/sha256-simd cc1980cb03383b1d46f518232672584432d7532d" |
49 |
+ "github.com/onsi/ginkgo 6c46eb8334b30dc55b42f1a1c725d5ce97375390" |
50 |
+ "github.com/onsi/gomega ba3724c94e4dd5d5690d37c190f1c54b2c1b4e64" |
51 |
+ "github.com/oschwald/geoip2-golang v1.3.0" |
52 |
+ "github.com/oschwald/maxminddb-golang 26fe5ace1c706491c2936119e1dc69c1a9c04d7f" |
53 |
+ "github.com/petermattis/goid 3db12ebb2a599ba4a96bea1c17b61c2f78a40e02" |
54 |
+ "github.com/pkg/errors v0.8.1" |
55 |
+ "github.com/pmezard/go-difflib v1.0.0" |
56 |
+ "github.com/prometheus/client_golang v0.9.2" |
57 |
+ "github.com/rcrowley/go-metrics e181e095bae94582363434144c61a9653aff6e50" |
58 |
+ "github.com/sasha-s/go-deadlock v0.2.0" |
59 |
+ "github.com/stretchr/testify v1.2.2" |
60 |
+ "github.com/syncthing/notify 4e389ea6c0d84e6195eb585ffaf62c8c143306ae" |
61 |
+ "github.com/syndtr/goleveldb 34011bf325bce385408353a30b101fe5e923eb6e" |
62 |
+ "github.com/thejerf/suture v3.0.2" |
63 |
+ "github.com/urfave/cli v1.20.0" |
64 |
+ "github.com/vitrun/qart bf64b92db6b05651d6c25a3dabf2d543b360c0aa" |
65 |
+ "golang.org/x/crypto 0fcca4842a8d74bfddc2c96a073bd2a4d2a7a2e8 github.com/golang/crypto" |
66 |
+ "golang.org/x/net 351d144fa1fc0bd934e2408202be0c29f25e35a0 github.com/golang/net" |
67 |
+ "golang.org/x/sys 4d1cda033e0619309c606fc686de3adcf599539e github.com/golang/sys" |
68 |
+ "golang.org/x/text e19ae1496984b1c655b8044a65c0300a3c878dd3 github.com/golang/text" |
69 |
+ "golang.org/x/time 6dc17368e09b0e8634d71cac8168d853e869a0c7 github.com/golang/time" |
70 |
+ "gopkg.in/asn1-ber.v1 v1.2 github.com/go-asn1-ber/asn1-ber" |
71 |
+ "gopkg.in/check.v1 788fd78401277ebd861206a03c884797c6ec5541 github.com/go-check/check" |
72 |
+ "gopkg.in/ldap.v2 v2.5.1 github.com/go-ldap/ldap" |
73 |
+ "gopkg.in/yaml.v2 v2.0.0 github.com/go-yaml/yaml" |
74 |
+ # These are only used by the test suite but conditional vendoring is messy |
75 |
+ "github.com/beorn7/perks 3a771d992973f24aa725d07868b467d1ddfceafb" |
76 |
+ "github.com/golang/protobuf v1.2.0" |
77 |
+ "github.com/matttproud/golang_protobuf_extensions v1.0.1" |
78 |
+ "github.com/prometheus/client_model 5c3871d89910bfb32f5fcab2aa4b9ec68e65a99f" |
79 |
+ "github.com/prometheus/common v0.1.0" |
80 |
+ "github.com/prometheus/procfs 1dc9a6cbc91aacc3e8b2d63db4d2e957a5394ac4" |
81 |
+) |
82 |
+ |
83 |
+inherit golang-vcs-snapshot systemd xdg-utils |
84 |
+ |
85 |
+DESCRIPTION="Open Source Continuous File Synchronization" |
86 |
+HOMEPAGE="https://syncthing.net" |
87 |
+SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
88 |
+ ${EGO_VENDOR_URI}" |
89 |
+ |
90 |
+LICENSE="MPL-2.0" |
91 |
+SLOT="0" |
92 |
+KEYWORDS="~amd64 ~arm ~x86" |
93 |
+IUSE="selinux tools" |
94 |
+ |
95 |
+BDEPEND=">=dev-lang/go-1.12" |
96 |
+RDEPEND="acct-group/syncthing |
97 |
+ acct-user/syncthing |
98 |
+ tools? ( acct-group/stdiscosrv |
99 |
+ acct-group/strelaysrv |
100 |
+ acct-user/stdiscosrv |
101 |
+ acct-user/strelaysrv ) |
102 |
+ selinux? ( sec-policy/selinux-syncthing )" |
103 |
+ |
104 |
+DOCS=( README.md AUTHORS CONTRIBUTING.md ) |
105 |
+ |
106 |
+src_prepare() { |
107 |
+ # Bug #679280 |
108 |
+ xdg_environment_reset |
109 |
+ |
110 |
+ default |
111 |
+ sed -i \ |
112 |
+ 's|^ExecStart=.*|ExecStart=/usr/libexec/syncthing/strelaysrv|' \ |
113 |
+ src/${EGO_PN}/cmd/strelaysrv/etc/linux-systemd/strelaysrv.service \ |
114 |
+ || die |
115 |
+} |
116 |
+ |
117 |
+src_compile() { |
118 |
+ export GOPATH="${S}:$(get_golibdir_gopath)" |
119 |
+ cd src/${EGO_PN} || die |
120 |
+ go run build.go -version "v${PV}" -no-upgrade install \ |
121 |
+ $(usex tools "all" "") || die "build failed" |
122 |
+} |
123 |
+ |
124 |
+src_test() { |
125 |
+ cd src/${EGO_PN} || die |
126 |
+ go run build.go test || die "test failed" |
127 |
+} |
128 |
+ |
129 |
+src_install() { |
130 |
+ pushd src/${EGO_PN} >& /dev/null || die |
131 |
+ doman man/*.[157] |
132 |
+ einstalldocs |
133 |
+ |
134 |
+ dobin bin/syncthing |
135 |
+ if use tools ; then |
136 |
+ exeinto /usr/libexec/syncthing |
137 |
+ local exe |
138 |
+ for exe in bin/* ; do |
139 |
+ [[ "${exe}" == "bin/syncthing" ]] || doexe "${exe}" |
140 |
+ done |
141 |
+ fi |
142 |
+ popd >& /dev/null || die |
143 |
+ |
144 |
+ # openrc and systemd service files |
145 |
+ systemd_dounit src/${EGO_PN}/etc/linux-systemd/system/${PN}{@,-resume}.service |
146 |
+ systemd_douserunit src/${EGO_PN}/etc/linux-systemd/user/${PN}.service |
147 |
+ newconfd "${FILESDIR}/${PN}.confd" ${PN} |
148 |
+ newinitd "${FILESDIR}/${PN}.initd" ${PN} |
149 |
+ |
150 |
+ keepdir /var/{lib,log}/${PN} |
151 |
+ fowners ${PN}:${PN} /var/{lib,log}/${PN} |
152 |
+ insinto /etc/logrotate.d |
153 |
+ newins "${FILESDIR}/${PN}.logrotate" ${PN} |
154 |
+ |
155 |
+ if use tools ; then |
156 |
+ # openrc and systemd service files |
157 |
+ |
158 |
+ systemd_dounit "${FILESDIR}/stdiscosrv.service" |
159 |
+ newconfd "${FILESDIR}/stdiscosrv.confd" stdiscosrv |
160 |
+ newinitd "${FILESDIR}/stdiscosrv.initd" stdiscosrv |
161 |
+ |
162 |
+ systemd_dounit src/${EGO_PN}/cmd/strelaysrv/etc/linux-systemd/strelaysrv.service |
163 |
+ newconfd "${FILESDIR}/strelaysrv.confd" strelaysrv |
164 |
+ newinitd "${FILESDIR}/strelaysrv.initd" strelaysrv |
165 |
+ |
166 |
+ insinto /etc/logrotate.d |
167 |
+ newins "${FILESDIR}/stdiscosrv.logrotate" strelaysrv |
168 |
+ newins "${FILESDIR}/strelaysrv.logrotate" strelaysrv |
169 |
+ fi |
170 |
+} |