-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
74 lines (56 loc) · 2.09 KB
/
build.sbt
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
import com.typesafe.sbt.SbtNativePackager._
import com.typesafe.sbt.packager.Keys._
name := "Pegotes"
version := "1.0-SNAPSHOT-2"
libraryDependencies ++= Seq(
filters
)
play.Project.playJavaSettings
//***********************
// Empaquetado para Linux
//***********************
name in Linux := "pegotes"
maintainer := "Juan Carlos Mejías Rodríguez <[email protected]>"
packageSummary := "Un pastebin realmente sencillo escrito en Java"
packageDescription := "Hecho con el framework web Play!. Ofrece tres APIs: Xml, Json, y texto plano."
debianPackageDependencies in Debian := Seq("openjdk-7-jre | openjdk-6-jre")
debianMaintainerScripts <+= (sourceDirectory in Debian) map { (dir) =>
(
(dir / "postinst") -> "postinst"
)
}
debianMaintainerScripts <+= (sourceDirectory in Debian) map { (dir) =>
(
(dir / "postrm") -> "postrm"
)
}
debianMaintainerScripts <+= (sourceDirectory in Debian) map { (dir) =>
(
(dir / "prerm") -> "prerm"
)
}
linuxPackageMappings in Debian <+= (sourceDirectory in Debian) map { (dir) =>
(packageMapping(
(dir / "README.Debian") -> "/usr/share/doc/pegotes/README.Debian.gz"
) withUser "root" withGroup "root" withPerms "0644" gzipped) asDocs()
}
linuxPackageMappings in Debian <+= (sourceDirectory in Debian) map { (dir) =>
(packageMapping(
(dir / "changelog") -> "/usr/share/doc/pegotes/changelog.Debian.gz"
) withUser "root" withGroup "root" withPerms "0644" gzipped) asDocs()
}
linuxPackageMappings in Debian <+= (sourceDirectory in Debian) map { (dir) =>
(packageMapping(
(dir / "copyright") -> "/usr/share/doc/pegotes/copyright"
) withUser "root" withGroup "root" withPerms "0644") asDocs()
}
linuxPackageMappings in Debian <+= (sourceDirectory in Debian) map { (dir) =>
(packageMapping(
(dir / "manpage") -> "/usr/share/man/man1/pegotes.1.gz"
) withUser "root" withGroup "root" withPerms "0644" gzipped) asDocs()
}
linuxPackageMappings in Debian <+= (sourceDirectory in Debian) map { (dir) =>
(packageMapping(
(dir / "pegotesd") -> "/etc/init.d/pegotesd"
) withUser "root" withGroup "root" withPerms "0755") asDocs()
}