Skip to content

Commit

Permalink
Fix apache skel packaging
Browse files Browse the repository at this point in the history
Fixing dependency issues. This should be rebuilt if any file within the folder cahnges,
not only if the folder itself changes

Change-Id: Iddb0488576472b948b2028d3f8190e91f538ec80
  • Loading branch information
Alex Zurhake committed Oct 22, 2024
1 parent f80d8a6 commit 6f359b1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 24 deletions.
20 changes: 16 additions & 4 deletions omd/packages/apache-omd/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
load("@rules_pkg//pkg:mappings.bzl", "pkg_mklink")
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")

genrule(
name = "apache-omd",
srcs = [
Expand Down Expand Up @@ -107,10 +110,19 @@ genrule(
visibility = ["//visibility:public"],
)

genrule(
pkg_mklink(
name = "85-apache-symlink",
link_name = "skel/etc/rc.d/85-apache",
target = "../init.d/apache",
)

pkg_tar(
name = "skel_dir",
srcs = ["@omd_packages//omd/packages/apache-omd:skel"],
outs = ["apache-skel.tar.gz"],
cmd = "tar -czf $@ -C $(location //omd/packages/apache-omd:skel)/.. skel",
srcs = glob(
include = ["skel/**/*"],
) + ["85-apache-symlink"],
extension = "tar.gz",
package_file_name = "apache-skel.tar.gz",
strip_prefix = ".",
visibility = ["//visibility:public"],
)
19 changes: 0 additions & 19 deletions omd/packages/apache-omd/BUILD.apache_omd.bazel

This file was deleted.

1 change: 0 additions & 1 deletion omd/packages/apache-omd/skel/etc/rc.d/85-apache

This file was deleted.

0 comments on commit 6f359b1

Please sign in to comment.