-
Notifications
You must be signed in to change notification settings - Fork 625
/
debian.sbt
20 lines (19 loc) · 1002 Bytes
/
debian.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import Common.{betaVersion, snapshotVersion, stableVersion, versionUsage}
linuxPackageMappings in Debian += packageMapping(file("LICENSE") -> "/usr/share/doc/thehive/copyright").withPerms("644")
name in Debian := "thehive4"
version in Debian := {
version.value match {
case stableVersion(_, _) => version.value
case betaVersion(v1, v2, v3) => v1 + "-0." + v3 + "RC" + v2
case snapshotVersion(stableVersion(v1, v2)) => v1 + "-" + v2 + "-SNAPSHOT"
case snapshotVersion(betaVersion(v1, v2, v3)) => v1 + "-0." + v3 + "RC" + v2 + "-SNAPSHOT"
case _ => versionUsage(version.value)
}
}
debianPackageConflicts += "thehive"
debianPackageDependencies += "java8-runtime-headless"
maintainerScripts in Debian := maintainerScriptsFromDirectory(
baseDirectory.value / "package" / "debian",
Seq(DebianConstants.Postinst, DebianConstants.Prerm, DebianConstants.Postrm)
)
linuxMakeStartScript in Debian := None