Skip to content

Commit

Permalink
Merge pull request #408 from sbt/wip/394-file-permissions
Browse files Browse the repository at this point in the history
FIX #394 adding tests for native packaging with 0440 permissions
  • Loading branch information
muuki88 committed Nov 15, 2014
2 parents 51ae6b1 + bfde849 commit 83b0706
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/sbt-test/debian/file-permissions/build.sbt
@@ -0,0 +1,16 @@
enablePlugins(DebianPlugin)

name := "debian-test"

version := "0.1.0"

maintainer := "Josh Suereth <joshua.suereth@typesafe.com>"

packageSummary := "Test debian package"

packageDescription := """A fun package description of our software,
with multiple lines."""

linuxPackageMappings += packageMapping(
((resourceDirectory in Compile).value / "sudoers.d", "/etc/sudoers.d")
) withPerms("0440") asDocs()
1 change: 1 addition & 0 deletions src/sbt-test/debian/file-permissions/project/plugins.sbt
@@ -0,0 +1 @@
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % sys.props("project.version"))
@@ -0,0 +1 @@
root
3 changes: 3 additions & 0 deletions src/sbt-test/debian/file-permissions/test
@@ -0,0 +1,3 @@
# Run the debian packaging.
> debian:package-bin
$ exists target/debian-test_0.1.0_all.deb

0 comments on commit 83b0706

Please sign in to comment.