-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also add libsepol used by secilc Signed-off-by: Dmitry Sharshakov <dmitry.sharshakov@siderolabs.com>
- Loading branch information
Showing
7 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/src/Makefile b/src/Makefile | ||
index 7b0e8446..440913ba 100644 | ||
--- a/src/Makefile | ||
+++ b/src/Makefile | ||
@@ -91,7 +91,7 @@ install: all | ||
install -m 755 $(LIBSO) $(DESTDIR)$(SHLIBDIR) | ||
test -d $(DESTDIR)$(LIBDIR)/pkgconfig || install -m 755 -d $(DESTDIR)$(LIBDIR)/pkgconfig | ||
install -m 644 $(LIBPC) $(DESTDIR)$(LIBDIR)/pkgconfig | ||
- $(LN) -sf --relative $(DESTDIR)$(SHLIBDIR)/$(LIBSO) $(DESTDIR)$(LIBDIR)/$(TARGET) | ||
+ $(LN) -sf $(DESTDIR)$(SHLIBDIR)/$(LIBSO) $(DESTDIR)$(LIBDIR)/$(TARGET) | ||
|
||
relabel: | ||
/sbin/restorecon $(DESTDIR)$(SHLIBDIR)/$(LIBSO) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: libsepol | ||
dependencies: | ||
- stage: base | ||
- stage: patch | ||
- stage: flex | ||
- stage: m4 | ||
steps: | ||
- sources: | ||
- url: https://github.com/SELinuxProject/selinux/releases/download/{{ .libsepol_version }}/libsepol-{{ .libsepol_version }}.tar.gz | ||
destination: libsepol.tar.gz | ||
sha256: "{{ .libsepol_sha256 }}" | ||
sha512: "{{ .libsepol_sha512 }}" | ||
prepare: | ||
- | | ||
tar -xzf libsepol.tar.gz --strip-components=1 | ||
patch -p1 < /pkg/patches/busybox-ln.patch | ||
build: | ||
- | | ||
make -j $(nproc) | ||
install: | ||
- | | ||
make install DESTDIR=/rootfs PREFIX=/toolchain | ||
finalize: | ||
- from: /rootfs | ||
to: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
diff --git a/Makefile b/Makefile | ||
index ef7bc8cd..db1fc6c2 100644 | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -28,7 +28,7 @@ CFLAGS ?= -Wall -Wshadow -Wextra -Wundef -Wmissing-format-attribute -Wcast-align | ||
override CFLAGS += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 | ||
override LDLIBS += -lsepol | ||
|
||
-all: $(SECILC) $(SECIL2CONF) $(SECIL2TREE) man | ||
+all: $(SECILC) $(SECIL2CONF) $(SECIL2TREE) | ||
|
||
$(SECILC): $(SECILC_OBJS) | ||
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS) | ||
@@ -56,15 +56,11 @@ $(SECIL2CONF_MANPAGE): $(SECIL2CONF_MANPAGE).xml | ||
$(SECIL2TREE_MANPAGE): $(SECIL2TREE_MANPAGE).xml | ||
$(XMLTO) man $(SECIL2TREE_MANPAGE).xml | ||
|
||
-install: all man | ||
+install: all | ||
-mkdir -p $(DESTDIR)$(BINDIR) | ||
- -mkdir -p $(DESTDIR)$(MANDIR)/man8 | ||
install -m 755 $(SECILC) $(DESTDIR)$(BINDIR) | ||
install -m 755 $(SECIL2CONF) $(DESTDIR)$(BINDIR) | ||
install -m 755 $(SECIL2TREE) $(DESTDIR)$(BINDIR) | ||
- install -m 644 $(SECILC_MANPAGE) $(DESTDIR)$(MANDIR)/man8 | ||
- install -m 644 $(SECIL2CONF_MANPAGE) $(DESTDIR)$(MANDIR)/man8 | ||
- install -m 644 $(SECIL2TREE_MANPAGE) $(DESTDIR)$(MANDIR)/man8 | ||
|
||
doc: | ||
$(MAKE) -C docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: secilc | ||
dependencies: | ||
- stage: base | ||
- stage: patch | ||
- stage: libsepol | ||
runtime: true | ||
steps: | ||
- sources: | ||
- url: https://github.com/SELinuxProject/selinux/releases/download/{{ .secilc_version }}/secilc-{{ .secilc_version }}.tar.gz | ||
destination: secilc.tar.gz | ||
sha256: "{{ .secilc_sha256 }}" | ||
sha512: "{{ .secilc_sha512 }}" | ||
prepare: | ||
- | | ||
tar -xzf secilc.tar.gz --strip-components=1 | ||
patch -p1 < /pkg/patches/disable-manpages.patch | ||
build: | ||
- | | ||
make -j $(nproc) all | ||
install: | ||
- | | ||
make install DESTDIR=/rootfs PREFIX=/toolchain | ||
finalize: | ||
- from: /rootfs | ||
to: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters