Skip to content

Commit

Permalink
#193 Sign rpm files
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed May 11, 2017
1 parent cbbae19 commit e01ff33
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 663 deletions.
11 changes: 10 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ linuxEtcDefaultTemplate in Debian := (baseDirectory.value / "package" / "etc_def
linuxMakeStartScript in Debian := None

// RPM //
rpmReleaseFile := (packageBin in Rpm in rpmPackageRelease).value
rpmRelease := "8"
rpmVendor in Rpm := "TheHive Project"
rpmUrl := Some("http://thehive-project.org/")
Expand All @@ -127,6 +126,16 @@ maintainerScripts in Rpm := maintainerScriptsFromDirectory(
linuxPackageSymlinks in Rpm := Nil
rpmPrefix := Some(defaultLinuxInstallLocation.value)
linuxEtcDefaultTemplate in Rpm := (baseDirectory.value / "package" / "etc_default_thehive").asURL
rpmReleaseFile := {
val rpmFile = (packageBin in Rpm in rpmPackageRelease).value
s"rpm --addsign $rpmFile".!!
rpmFile
}
packageBin in Rpm := {
val rpmFile = (packageBin in Rpm).value
s"rpm --addsign $rpmFile".!!
rpmFile
}

// DOCKER //
import com.typesafe.sbt.packager.docker.{ Cmd, ExecCmd }
Expand Down
Loading

0 comments on commit e01ff33

Please sign in to comment.