-
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.
Merge pull request #200 from Guillaume001/add-rpm-el9
Add RPM package for almalinux 9
- Loading branch information
Showing
5 changed files
with
72 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM almalinux:9 | ||
|
||
ENV RUSTUP_HOME=/usr/local/rustup \ | ||
CARGO_HOME=/usr/local/cargo \ | ||
PATH=/usr/local/cargo/bin:$PATH | ||
|
||
RUN set -eux; \ | ||
dnf check-update && dnf update -y ; \ | ||
dnf install -y \ | ||
pkgconf \ | ||
clang \ | ||
make \ | ||
openssl-devel \ | ||
krb5-devel ; \ | ||
dnf clean all ; \ | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path ; \ | ||
cargo install cargo-generate-rpm ; | ||
|
||
WORKDIR /SRC |
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 @@ | ||
../debian/openwecd.service |
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,15 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
OPENWEC_USER="openwec" | ||
OPENWEC_HOME="/var/empty/openwec" | ||
OPENWEC_SHELL="/sbin/nologin" | ||
|
||
create_user() { | ||
if id ${OPENWEC_USER} > /dev/null 2>&1; then return; fi | ||
/usr/sbin/adduser --system --create-home --home-dir "${OPENWEC_HOME}" --shell "${OPENWEC_SHELL}" --comment "OpenWEC user" "${OPENWEC_USER}" | ||
} | ||
|
||
create_user | ||
|
||
exit 0 |
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