forked from bisq-network/tor-binary
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpom.xml
More file actions
160 lines (143 loc) · 8.5 KB
/
Copy pathpom.xml
File metadata and controls
160 lines (143 loc) · 8.5 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<groupId>com.github.haveno-dex.tor-binary</groupId>
<artifactId>tor-binary</artifactId>
<version>0.4.9.8</version>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<properties>
<!-- change here to get the desired version, verify signature, unpack and package tor binary
requirements:
- gpg in path for PGP signature verification
- tar with gzip/xz support in path
-->
<torbrowser.version>15.0.13</torbrowser.version>
<torbrowser.download.base.url>https://archive.torproject.org/tor-package-archive/torbrowser/${torbrowser.version}</torbrowser.download.base.url>
<pgp.signature.keyserver>keys.openpgp.org</pgp.signature.keyserver>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.remote-resource.directory>${project.build.directory}/maven-shared-archive-resources</project.remote-resource.directory>
</properties>
<licenses>
<license>
<name>GNU AFFERO GENERAL PUBLIC LICENSE</name>
<url>http://www.gnu.org/licenses/agpl-3.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<issueManagement>
<system>GitHub</system>
<url>https://github.com/haveno-dex/tor-binary/issues</url>
</issueManagement>
<developers>
<developer>
<name>Cédric Walter</name>
<email>cedric.walter@gmail.com</email>
<organization>None</organization>
<organizationUrl>www.cedricwalter.com</organizationUrl>
</developer>
<developer>
<name>JesusMcCloud</name>
</developer>
<developer>
<name>Florian Reimair</name>
<email>office@florianreimair.at</email>
</developer>
</developers>
<scm>
<connection>scm:git:https://github.com/haveno-dex/tor-binary</connection>
<developerConnection>scm:git:https://github.com/haveno-dex/tor-binary</developerConnection>
<url>scm:git:https://github.com/haveno-dex/tor-binary</url>
</scm>
<modules>
<module>tor-binary-resources</module>
<module>tor-binary-linux32</module>
<module>tor-binary-linux64</module>
<module>tor-binary-linux-aarch64</module>
<module>tor-binary-macos</module>
<module>tor-binary-macos-aarch64</module>
<module>tor-binary-windows</module>
<module>tor-binary-windows64</module>
<module>tor-binary-geoip</module>
</modules>
<profiles>
<profile>
<id>check-pgp-signatures</id>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<inherited>false</inherited>
<executions>
<execution>
<id>check-pgp-signatures</id>
<phase>verify</phase>
<configuration>
<target>
<property name="pgp.signature.check.directory"
value="${project.build.directory}/pgp-signature-check"/>
<macrodef name="fetch-tor-bundle">
<attribute name="bundle"/>
<sequential>
<get
src="${torbrowser.download.base.url}/@{bundle}"
dest="${pgp.signature.check.directory}/@{bundle}"
skipexisting="true"/>
<get
src="${torbrowser.download.base.url}/@{bundle}.asc"
dest="${pgp.signature.check.directory}/@{bundle}.asc"
skipexisting="true"/>
</sequential>
</macrodef>
<macrodef name="verify-tor-bundle">
<attribute name="bundle"/>
<sequential>
<exec executable="gpg" failonerror="true">
<arg value="--batch"/>
<arg value="--no-tty"/>
<arg value="--auto-key-locate"/>
<arg value="keyserver"/>
<arg value="--keyserver"/>
<arg value="${pgp.signature.keyserver}"/>
<arg value="--keyserver-options"/>
<arg value="auto-key-retrieve"/>
<arg value="--verify"/>
<arg value="${pgp.signature.check.directory}/@{bundle}.asc"/>
<arg value="${pgp.signature.check.directory}/@{bundle}"/>
</exec>
</sequential>
</macrodef>
<delete dir="${pgp.signature.check.directory}" failonerror="false"/>
<mkdir dir="${pgp.signature.check.directory}"/>
<parallel>
<fetch-tor-bundle bundle="tor-expert-bundle-windows-i686-${torbrowser.version}.tar.gz"/>
<fetch-tor-bundle bundle="tor-expert-bundle-windows-x86_64-${torbrowser.version}.tar.gz"/>
<fetch-tor-bundle bundle="tor-expert-bundle-macos-x86_64-${torbrowser.version}.tar.gz"/>
<fetch-tor-bundle bundle="tor-expert-bundle-macos-aarch64-${torbrowser.version}.tar.gz"/>
<fetch-tor-bundle bundle="tor-expert-bundle-linux-i686-${torbrowser.version}.tar.gz"/>
<fetch-tor-bundle bundle="tor-expert-bundle-linux-x86_64-${torbrowser.version}.tar.gz"/>
<fetch-tor-bundle bundle="tor-expert-bundle-linux-aarch64-${torbrowser.version}.tar.gz"/>
</parallel>
<verify-tor-bundle bundle="tor-expert-bundle-windows-i686-${torbrowser.version}.tar.gz"/>
<verify-tor-bundle bundle="tor-expert-bundle-windows-x86_64-${torbrowser.version}.tar.gz"/>
<verify-tor-bundle bundle="tor-expert-bundle-macos-x86_64-${torbrowser.version}.tar.gz"/>
<verify-tor-bundle bundle="tor-expert-bundle-macos-aarch64-${torbrowser.version}.tar.gz"/>
<verify-tor-bundle bundle="tor-expert-bundle-linux-i686-${torbrowser.version}.tar.gz"/>
<verify-tor-bundle bundle="tor-expert-bundle-linux-x86_64-${torbrowser.version}.tar.gz"/>
<verify-tor-bundle bundle="tor-expert-bundle-linux-aarch64-${torbrowser.version}.tar.gz"/>
<delete dir="${pgp.signature.check.directory}" failonerror="false"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>