-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[eclipse/packager#7]: Allow adding only MD5 checksums
This change allows specifying a custom provider for signature configurations. By default it will support "default" and "md5-only".
- Loading branch information
Showing
11 changed files
with
402 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<?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/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>de.dentrassi.maven.rpm.test</groupId> | ||
<artifactId>test15-md5-only</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
<packaging>jar</packaging> | ||
|
||
<name>Test Package #15</name> | ||
<description> | ||
Test Default | ||
</description> | ||
|
||
<url>http://dentrassi.de</url> | ||
|
||
<organization> | ||
<name>Jens Reimann</name> | ||
<url>http://dentrassi.de</url> | ||
</organization> | ||
|
||
<licenses> | ||
<license> | ||
<name>Eclipse Public License - v 1.0</name> | ||
<distribution>repo</distribution> | ||
<url>https://www.eclipse.org/legal/epl-v10.html</url> | ||
</license> | ||
</licenses> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | ||
<skipSigning>true</skipSigning> | ||
<rpm.skipSigning>true</rpm.skipSigning> | ||
</properties> | ||
|
||
<build> | ||
|
||
<plugins> | ||
<plugin> | ||
<groupId>de.dentrassi.maven</groupId> | ||
<artifactId>rpm</artifactId> | ||
<version>@project.version@</version> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>rpm</goal> | ||
</goals> | ||
<configuration> | ||
<group>Application/Misc</group> | ||
|
||
<forceRelease>false</forceRelease> | ||
<version>1.0.0</version> | ||
<outputFileName>test15.rpm</outputFileName> | ||
<signatureConfiguration>default</signatureConfiguration> | ||
|
||
<signature> | ||
<keyId>${keyId}</keyId> | ||
<keyringFile>${user.home}/.gnupg/secring.gpg</keyringFile> | ||
<passphrase>${passphrase}</passphrase> | ||
<hashAlgorithm>SHA1</hashAlgorithm> | ||
<skip>${skipSigning}</skip> | ||
</signature> | ||
|
||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
<profiles> | ||
<profile> | ||
<id>sign</id> | ||
<activation> | ||
<activeByDefault>false</activeByDefault> | ||
</activation> | ||
<properties> | ||
<skipSigning>false</skipSigning> | ||
</properties> | ||
</profile> | ||
</profiles> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
def verify ( ) { | ||
Process proc = ('rpm -Kv ' + basedir + "/target/test15.rpm").execute() | ||
return proc.in.getText().trim() | ||
} | ||
|
||
def result = verify() | ||
println "Verify: " + result | ||
|
||
def m1 = result =~ /MD5 digest\: OK/ | ||
def m2 = result =~ /Header SHA1 digest\: OK/ | ||
return m1.find() && m2.find() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<?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/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>de.dentrassi.maven.rpm.test</groupId> | ||
<artifactId>test15-md5-only</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
<packaging>jar</packaging> | ||
|
||
<name>Test Package #15</name> | ||
<description> | ||
Test MD5 only | ||
</description> | ||
|
||
<url>http://dentrassi.de</url> | ||
|
||
<organization> | ||
<name>Jens Reimann</name> | ||
<url>http://dentrassi.de</url> | ||
</organization> | ||
|
||
<licenses> | ||
<license> | ||
<name>Eclipse Public License - v 1.0</name> | ||
<distribution>repo</distribution> | ||
<url>https://www.eclipse.org/legal/epl-v10.html</url> | ||
</license> | ||
</licenses> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | ||
<skipSigning>true</skipSigning> | ||
<rpm.skipSigning>true</rpm.skipSigning> | ||
</properties> | ||
|
||
<build> | ||
|
||
<plugins> | ||
<plugin> | ||
<groupId>de.dentrassi.maven</groupId> | ||
<artifactId>rpm</artifactId> | ||
<version>@project.version@</version> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>rpm</goal> | ||
</goals> | ||
<configuration> | ||
<group>Application/Misc</group> | ||
|
||
<forceRelease>false</forceRelease> | ||
<version>1.0.0</version> | ||
<outputFileName>test15.rpm</outputFileName> | ||
<signatureConfiguration>md5-only</signatureConfiguration> | ||
|
||
<signature> | ||
<keyId>${keyId}</keyId> | ||
<keyringFile>${user.home}/.gnupg/secring.gpg</keyringFile> | ||
<passphrase>${passphrase}</passphrase> | ||
<hashAlgorithm>SHA1</hashAlgorithm> | ||
<skip>${skipSigning}</skip> | ||
</signature> | ||
|
||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
<profiles> | ||
<profile> | ||
<id>sign</id> | ||
<activation> | ||
<activeByDefault>false</activeByDefault> | ||
</activation> | ||
<properties> | ||
<skipSigning>false</skipSigning> | ||
</properties> | ||
</profile> | ||
</profiles> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
def verify ( ) { | ||
Process proc = ('rpm -Kv ' + basedir + "/target/test15.rpm").execute() | ||
return proc.in.getText().trim() | ||
} | ||
|
||
def result = verify() | ||
println "Verify: " + result | ||
|
||
def m1 = result =~ /MD5 digest\: OK/ | ||
def m2 = result =~ /SHA/ | ||
return m1.find() && !m2.find() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
invoker.buildResult=failure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<?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/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>de.dentrassi.maven.rpm.test</groupId> | ||
<artifactId>test15-md5-only</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
<packaging>jar</packaging> | ||
|
||
<name>Test Package #15</name> | ||
<description> | ||
Test "not found" | ||
</description> | ||
|
||
<url>http://dentrassi.de</url> | ||
|
||
<organization> | ||
<name>Jens Reimann</name> | ||
<url>http://dentrassi.de</url> | ||
</organization> | ||
|
||
<licenses> | ||
<license> | ||
<name>Eclipse Public License - v 1.0</name> | ||
<distribution>repo</distribution> | ||
<url>https://www.eclipse.org/legal/epl-v10.html</url> | ||
</license> | ||
</licenses> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | ||
<skipSigning>true</skipSigning> | ||
<rpm.skipSigning>true</rpm.skipSigning> | ||
</properties> | ||
|
||
<build> | ||
|
||
<plugins> | ||
<plugin> | ||
<groupId>de.dentrassi.maven</groupId> | ||
<artifactId>rpm</artifactId> | ||
<version>@project.version@</version> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>rpm</goal> | ||
</goals> | ||
<configuration> | ||
<group>Application/Misc</group> | ||
|
||
<forceRelease>false</forceRelease> | ||
<version>1.0.0</version> | ||
<outputFileName>test15.rpm</outputFileName> | ||
<signatureConfiguration>not-found</signatureConfiguration> | ||
|
||
<signature> | ||
<keyId>${keyId}</keyId> | ||
<keyringFile>${user.home}/.gnupg/secring.gpg</keyringFile> | ||
<passphrase>${passphrase}</passphrase> | ||
<hashAlgorithm>SHA1</hashAlgorithm> | ||
<skip>${skipSigning}</skip> | ||
</signature> | ||
|
||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
<profiles> | ||
<profile> | ||
<id>sign</id> | ||
<activation> | ||
<activeByDefault>false</activeByDefault> | ||
</activation> | ||
<properties> | ||
<skipSigning>false</skipSigning> | ||
</properties> | ||
</profile> | ||
</profiles> | ||
|
||
</project> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.