-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add EL9 packages (deps) Ghostscript and atool have not been added because the official packages are newer than the ones we are still using on AM1.14 * Add EL8 packages (deps) * jhove: Update packages to 1.26.1. Fix RH scripts * Added focal jhove 1.26.1 * Update bionic package to 1.26.1 * Added Centos7 1.26.1 package * Update bin scripts in Rocky8 and Rocky9 packages: The /usr/bin/jhove and /usr/bin/jhove-gui failed, so it was needed to create new packages (with extraversion=2) to fix the scripts issue. * rpms: Update temporal,enduro and add tctl --------- Co-authored-by: Miguel Medinilla <[email protected]> Co-authored-by: Miguel Medinilla <[email protected]>
- Loading branch information
1 parent
fefc202
commit 9c9f1d4
Showing
124 changed files
with
3,626 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM ubuntu:xenial | ||
FROM ubuntu:bionic | ||
|
||
ARG GIT_URL | ||
ARG GIT_BRANCH | ||
|
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 |
---|---|---|
@@ -1 +1 @@ | ||
etc/jhove/jhove.conf | ||
/etc/jhove/jhove.conf |
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ Architecture: all | |
Maintainer: Artefactual <[email protected]> | ||
Depends: openjdk-8-jre-headless | ||
Priority: optional | ||
Version: 1.20.1-RELEASE | ||
Version: 1.26.1-RELEASE | ||
Description: JSTOR/Harvard Object Validation Environment | ||
The concept of representation format, or type, permeates all technical | ||
areas of digital repositories. Policy and processing decisions | ||
|
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/bash | ||
java -cp "/usr/share/java/jhove-ext-modules.jar:/usr/share/java/jhove.jar" Jhove -c /etc/jhove/jhove.conf "$@" | ||
java -cp "/usr/share/java/jhove-ext-modules.jar:/usr/share/java/jhove.jar:/usr/share/java/jhove-core.jar:/usr/share/java/pdf-hul.jar:/usr/share/java/jpeg-hul.jar:/usr/share/java/wave-hul.jar:/usr/share/java/ascii-hul.jar:/usr/share/java/jpeg2000-hul.jar:/usr/share/java/utf8-hul.jar:/usr/share/java/aiff-hul.jar:/usr/share/java/xml-hul.jar:/usr/share/java/html-hul.jar:/usr/share/java/tiff-hul.jar:/usr/share/java/gif-hul.jar" edu.harvard.hul.ois.jhove.Jhove -c /etc/jhove/jhove.conf "$@" |
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,21 @@ | ||
FROM ubuntu:focal | ||
|
||
ARG GIT_URL | ||
ARG GIT_BRANCH | ||
ARG PACKAGE | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
|
||
RUN apt-get update && \ | ||
apt-get install -y dpkg-dev git build-essential wget debhelper \ | ||
devscripts equivs quilt maven git openjdk-8-jdk-headless | ||
|
||
|
||
|
||
RUN mkdir -p /debbuild/ && cd /debbuild && \ | ||
git clone $GIT_URL && \ | ||
cd $PACKAGE && \ | ||
git checkout $GIT_BRANCH | ||
|
||
#ADD debian /debbuild/$PACKAGE/debian | ||
|
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,58 @@ | ||
NAME = jhove | ||
VERSION ?= 1.26.1 | ||
RELEASE ?= 1~20.04 | ||
GIT_URL = https://github.com/openpreserve/jhove | ||
DEB_TOPDIR = "/debbuild" | ||
DOCKER_VOLUME = "/src" | ||
DOCKER_IMAGE = "debbuild-$(NAME)-$(VERSION)" | ||
|
||
.PHONY: build-docker-image build deb-build deb-clean deb-test update-changelog | ||
|
||
all: build-docker-image build | ||
|
||
build-docker-image: | ||
@echo "==> Building Docker image with build environment." | ||
@docker build --tag "$(DOCKER_IMAGE)" --build-arg GIT_URL="$(GIT_URL)" --build-arg GIT_BRANCH="v$(VERSION)" --build-arg PACKAGE="$(NAME)" . | ||
|
||
build: | ||
@echo "==> Building deb." | ||
docker run \ | ||
-e RELEASE=$(RELEASE) \ | ||
--rm \ | ||
--volume "$(shell pwd):$(DOCKER_VOLUME)" \ | ||
$(DOCKER_IMAGE) \ | ||
make -C $(DOCKER_VOLUME) deb-build | ||
|
||
deb-build: deb-clean | ||
@echo "==> Build package from source." | ||
cd /debbuild/$(NAME) && mvn package | ||
@echo "==> Copy package skel." | ||
cp -rf $(DOCKER_VOLUME)/package /debbuild/$(NAME)_$(VERSION)-$(RELEASE) | ||
sed -i 's/RELEASE/$(RELEASE)/g' /debbuild/$(NAME)_$(VERSION)-$(RELEASE)/DEBIAN/control | ||
@echo "==> Build package." | ||
cp /debbuild/$(NAME)/jhove-apps/target/jhove-apps-*.jar /debbuild/$(NAME)_$(VERSION)-$(RELEASE)/usr/share/java/jhove.jar | ||
cp /debbuild/$(NAME)/jhove-ext-modules/target/jhove-ext-modules-*.jar /debbuild/$(NAME)_$(VERSION)-$(RELEASE)/usr/share/java/jhove-ext-modules.jar | ||
cp /debbuild/$(NAME)/jhove-core/target/jhove-core-*.jar /debbuild/$(NAME)_$(VERSION)-$(RELEASE)/usr/share/java/jhove-core.jar | ||
cp /debbuild/$(NAME)/jhove-modules/pdf-hul/target/pdf-hul-*.jar /debbuild/$(NAME)_$(VERSION)-$(RELEASE)/usr/share/java/pdf-hul.jar | ||
cp /debbuild/$(NAME)/jhove-modules/jpeg-hul/target/jpeg-hul-*.jar /debbuild/$(NAME)_$(VERSION)-$(RELEASE)/usr/share/java/jpeg-hul.jar | ||
cp /debbuild/$(NAME)/jhove-modules/wave-hul/target/wave-hul-*.jar /debbuild/$(NAME)_$(VERSION)-$(RELEASE)/usr/share/java/wave-hul.jar | ||
cp /debbuild/$(NAME)/jhove-modules/ascii-hul/target/ascii-hul-*.jar /debbuild/$(NAME)_$(VERSION)-$(RELEASE)/usr/share/java/ascii-hul.jar | ||
cp /debbuild/$(NAME)/jhove-modules/jpeg2000-hul/target/jpeg2000-hul-*.jar /debbuild/$(NAME)_$(VERSION)-$(RELEASE)/usr/share/java/jpeg2000-hul.jar | ||
cp /debbuild/$(NAME)/jhove-modules/utf8-hul/target/utf8-hul-*.jar /debbuild/$(NAME)_$(VERSION)-$(RELEASE)/usr/share/java/utf8-hul.jar | ||
cp /debbuild/$(NAME)/jhove-modules/aiff-hul/target/aiff-hul-*.jar /debbuild/$(NAME)_$(VERSION)-$(RELEASE)/usr/share/java/aiff-hul.jar | ||
cp /debbuild/$(NAME)/jhove-modules/xml-hul/target/xml-hul-*.jar /debbuild/$(NAME)_$(VERSION)-$(RELEASE)/usr/share/java/xml-hul.jar | ||
cp /debbuild/$(NAME)/jhove-modules/html-hul/target/html-hul-*.jar /debbuild/$(NAME)_$(VERSION)-$(RELEASE)/usr/share/java/html-hul.jar | ||
cp /debbuild/$(NAME)/jhove-modules/tiff-hul/target/tiff-hul-*.jar /debbuild/$(NAME)_$(VERSION)-$(RELEASE)/usr/share/java/tiff-hul.jar | ||
cp /debbuild/$(NAME)/jhove-modules/gif-hul/target/gif-hul-*.jar /debbuild/$(NAME)_$(VERSION)-$(RELEASE)/usr/share/java/gif-hul.jar | ||
dpkg-deb --build /debbuild/$(NAME)_$(VERSION)-$(RELEASE) | ||
@echo "==> Copying built files." | ||
mkdir -p $(DOCKER_VOLUME)/build/ | ||
cp $(DEB_TOPDIR)/*.deb $(DOCKER_VOLUME)/build/ | ||
|
||
deb-clean: | ||
@echo "==> Cleaning up previous RPMs builds." | ||
@rm -rf $(DOCKER_VOLUME)/build/ | ||
|
||
# TODO: Create repo and test it | ||
deb-test: | ||
@docker run --rm --volume="$(shell pwd):$(DOCKER_VOLUME)" ubuntu:focal echo "Create repo and install package" |
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 @@ | ||
/etc/jhove/jhove.conf |
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,22 @@ | ||
Package: jhove | ||
Section: main | ||
Architecture: all | ||
Maintainer: Artefactual <[email protected]> | ||
Depends: openjdk-8-jre-headless | ||
Priority: optional | ||
Version: 1.26.1-RELEASE | ||
Description: JSTOR/Harvard Object Validation Environment | ||
The concept of representation format, or type, permeates all technical | ||
areas of digital repositories. Policy and processing decisions | ||
regarding object ingest, storage, access, and preservation are | ||
frequently conditioned on a per-format basis. In order to achieve | ||
necessary operational efficiencies, repositories need to be able to | ||
automate these procedures to the fullest extent possible. | ||
JSTOR and the Harvard University Library are collaborating on a | ||
project to develop an extensible framework for format validation: | ||
JHOVE (pronounced "jove"), the JSTOR/Harvard Object Validation | ||
Environment. The initial release of JHOVE includes modules for | ||
arbitrary byte streams, ASCII and UTF-8 encoded text, GIF, JPEG2000, | ||
and JPEG, and TIFF images, AIFF and WAVE audio, PDF, HTML, and XML; | ||
and text and XML output handlers. | ||
|
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,53 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jhoveConfig version="1.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="http://hul.harvard.edu/ois/xml/ns/jhove/jhoveConfig" | ||
xsi:schemaLocation="http://hul.harvard.edu/ois/xml/ns/jhove/jhoveConfig | ||
http://hul.harvard.edu/ois/xml/xsd/jhove/1.6/jhoveConfig.xsd"> | ||
<jhoveHome>$INSTALL_PATH</jhoveHome> | ||
<defaultEncoding>utf-8</defaultEncoding> | ||
<bufferSize>131072</bufferSize> | ||
<module> | ||
<class>edu.harvard.hul.ois.jhove.module.AiffModule</class> | ||
</module> | ||
<module> | ||
<class>edu.harvard.hul.ois.jhove.module.WaveModule</class> | ||
</module> | ||
<module> | ||
<class>edu.harvard.hul.ois.jhove.module.PdfModule</class> | ||
</module> | ||
<module> | ||
<class>com.mcgath.jhove.module.PngModule</class> | ||
</module> | ||
<module> | ||
<class>edu.harvard.hul.ois.jhove.module.Jpeg2000Module</class> | ||
</module> | ||
<module> | ||
<class>edu.harvard.hul.ois.jhove.module.JpegModule</class> | ||
</module> | ||
<module> | ||
<class>edu.harvard.hul.ois.jhove.module.GifModule</class> | ||
</module> | ||
<module> | ||
<class>edu.harvard.hul.ois.jhove.module.TiffModule</class> | ||
</module> | ||
<module> | ||
<class>edu.harvard.hul.ois.jhove.module.XmlModule</class> | ||
<param>schema=http://www.example.com/schema;/home/schemas/exampleschema.xsd</param> | ||
</module> | ||
<module> | ||
<class>edu.harvard.hul.ois.jhove.module.HtmlModule</class> | ||
</module> | ||
<module> | ||
<class>edu.harvard.hul.ois.jhove.module.WarcModule</class> | ||
</module> | ||
<module> | ||
<class>edu.harvard.hul.ois.jhove.module.GzipModule</class> | ||
</module> | ||
<module> | ||
<class>edu.harvard.hul.ois.jhove.module.AsciiModule</class> | ||
</module> | ||
<module> | ||
<class>edu.harvard.hul.ois.jhove.module.Utf8Module</class> | ||
</module> | ||
</jhoveConfig> |
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,2 @@ | ||
#!/bin/bash | ||
java -cp "/usr/share/java/jhove-ext-modules.jar:/usr/share/java/jhove.jar:/usr/share/java/jhove-core.jar:/usr/share/java/pdf-hul.jar:/usr/share/java/jpeg-hul.jar:/usr/share/java/wave-hul.jar:/usr/share/java/ascii-hul.jar:/usr/share/java/jpeg2000-hul.jar:/usr/share/java/utf8-hul.jar:/usr/share/java/aiff-hul.jar:/usr/share/java/xml-hul.jar:/usr/share/java/html-hul.jar:/usr/share/java/tiff-hul.jar:/usr/share/java/gif-hul.jar" edu.harvard.hul.ois.jhove.Jhove -c /etc/jhove/jhove.conf "$@" |
Empty file.
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,2 @@ | ||
*.rpm | ||
/_yum_repository |
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 @@ | ||
YUM_REPOSITORY = "$(shell pwd)/_yum_repository" | ||
|
||
all: build createrepo | ||
|
||
build: | ||
make -C ./siegfried | ||
make -C ./nailgun | ||
make -C ./fits | ||
make -C ./jhove | ||
make -C ./cadence | ||
make -C ./cadence-web | ||
make -C ./enduro | ||
make -C ./temporal | ||
make -C ./tctl | ||
|
||
createrepo: cleanrepo | ||
mkdir -p $(YUM_REPOSITORY) || true | ||
find . -name "*.rpm" | xargs -IF cp -f F $(YUM_REPOSITORY) | ||
docker run --rm --volume "$(YUM_REPOSITORY):/yum-repository" rockylinux:8 bash -c "yum install -y createrepo && createrepo /yum-repository" | ||
|
||
clean: cleanrepo | ||
find . -name "*.rpm" -delete | ||
|
||
cleanrepo: | ||
rm -rf $(YUM_REPOSITORY) |
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,10 @@ | ||
FROM rockylinux:8 | ||
|
||
# Environmnet variables needed during build | ||
|
||
# Environment variables needed during runtime | ||
|
||
RUN yum -y install rpm-build make git wget gcc-c++ | ||
RUN curl -fsSL https://rpm.nodesource.com/setup_14.x | bash - | ||
RUN dnf -y install nodejs | ||
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/rh/rh-nodejs8/root/bin/ |
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,59 @@ | ||
NAME = cadence-web | ||
VERSION ?= 3.32.0 | ||
RPM_TOPDIR = "/rpmbuild" | ||
DOCKER_VOLUME = "/src" | ||
DOCKER_IMAGE = "rpmbuild-$(NAME)-$(VERSION)" | ||
|
||
RPMBUILD_ARGS := \ | ||
--define "_topdir $(RPM_TOPDIR)" \ | ||
--define "name $(NAME)" \ | ||
--define "version $(VERSION)" | ||
|
||
.PHONY: build-docker-image build rpm-build rpm-clean rpm-test | ||
|
||
all: build-docker-image build | ||
|
||
build-docker-image: | ||
@echo "==> Building Docker image with build environment." | ||
@docker build --tag "${DOCKER_IMAGE}" . | ||
|
||
build: | ||
@echo "==> Building RPM inside Docker container." | ||
@docker run --rm -e VERSION="$(VERSION)" \ | ||
--volume "$(shell pwd):$(DOCKER_VOLUME)" \ | ||
$(DOCKER_IMAGE) \ | ||
make -C $(DOCKER_VOLUME) rpm-build | ||
|
||
dev: | ||
@echo "==> Building RPM inside Docker container." | ||
@docker run -i -t --rm --volume "$(shell pwd):$(DOCKER_VOLUME)" $(DOCKER_IMAGE) /bin/bash | ||
|
||
cleanup: | ||
@echo "==> Remove artifacts created as root." | ||
@docker run -i \ | ||
--rm \ | ||
--volume "$(shell pwd):$(DOCKER_VOLUME)" \ | ||
$(DOCKER_IMAGE) \ | ||
bash -c "rm -rf /src/*.rpm" | ||
|
||
rpm-build: rpm-clean | ||
@echo "==> Preparing environment for rpmbuild." | ||
mkdir -p $(RPM_TOPDIR)/{BUILD,RPMS,SRPMS} | ||
mkdir -p $(RPM_TOPDIR)/SOURCES/$(NAME)-$(VERSION) | ||
wget -q https://github.com/uber/cadence-web/archive/refs/tags/v${VERSION}.tar.gz -O $(RPM_TOPDIR)/SOURCES/cadence-web-${VERSION}.tar.gz | ||
cd $(RPM_TOPDIR)/SOURCES/ && tar zxf cadence-web-${VERSION}.tar.gz | ||
cp $(DOCKER_VOLUME)/files/cadence-web.service $(RPM_TOPDIR)/SOURCES/ | ||
cp $(DOCKER_VOLUME)/package.spec $(RPM_TOPDIR)/package.spec | ||
@echo "==> Running rpmbuild." | ||
rpmbuild $(RPMBUILD_ARGS) -ba --clean $(RPM_TOPDIR)/package.spec | ||
|
||
@echo "==> Copying RPM files." | ||
cp -p $(RPM_TOPDIR)/RPMS/x86_64/$(NAME)-$(VERSION)*.x86_64.rpm $(DOCKER_VOLUME)/ | ||
cp -p $(RPM_TOPDIR)/SRPMS/$(NAME)-$(VERSION)*.src.rpm $(DOCKER_VOLUME)/ | ||
|
||
rpm-clean: | ||
@echo "==> Cleaning up previous RPMs builds." | ||
@rm -rf $(RPM_TOPDIR) | ||
|
||
rpm-test: | ||
docker run --rm --volume="$(shell pwd):$(DOCKER_VOLUME)" rockylinux:8 bash -c "rpm -i $(DOCKER_VOLUME)/$(NAME)-$(VERSION)*.rpm && sf -version" |
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,11 @@ | ||
[Unit] | ||
Description=Cadence Web Server | ||
After=cadence.service | ||
|
||
[Service] | ||
Type=simple | ||
Restart=on-failure | ||
User=enduro | ||
Environment=CADENCE_TCHANNEL_PEERS=localhost:7400 | ||
WorkingDirectory=/usr/share/cadence-web/ | ||
ExecStart=/opt/rh/rh-nodejs10/root/usr/bin/node server.js |
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,48 @@ | ||
Name: %{name} | ||
Version: %{version} | ||
Release: 1%{?dist} | ||
Summary: Cadence is a Fault-Oblivious Stateful Code Platform | ||
URL: https://github.com/uber/cadence-web | ||
Group: Application/SystemTools | ||
License: MIT License | ||
Source0: %{name}-%{version}.tar.gz | ||
|
||
%description | ||
Cadence is a distributed, scalable, durable, and highly available orchestration engine to execute asynchronous long-running business logic in a scalable and resilient way | ||
|
||
%prep | ||
%setup -q | ||
|
||
%install | ||
rm -rf $RPM_BUILD_ROOT | ||
cd %{_sourcedir}/%{name}-%{version} && npm install --unsafe-perm | ||
#install -m 0755 -d $RPM_BUILD_ROOT/usr/local/share/cadence-web/ | ||
#install -m 0755 -d $RPM_BUILD_ROOT/etc/systemd/system/ | ||
mkdir -p $RPM_BUILD_ROOT/usr/share/cadence-web/ | ||
mkdir -p $RPM_BUILD_ROOT/etc/systemd/system/ | ||
|
||
cp -rf %{_sourcedir}/%{name}-%{version}/* $RPM_BUILD_ROOT/usr/share/cadence-web/ | ||
cp %{_sourcedir}/cadence-web.service $RPM_BUILD_ROOT/etc/systemd/system/cadence-web.service | ||
|
||
|
||
%clean | ||
rm -rf $RPM_BUILD_ROOT | ||
|
||
%files | ||
/usr/share/cadence-web/ | ||
%config /etc/systemd/system/cadence-web.service | ||
|
||
|
||
%post | ||
|
||
# Create enduro user and group | ||
getent group enduro >/dev/null || groupadd -f -g 444 -r enduro | ||
if ! getent passwd enduro >/dev/null ; then | ||
if ! getent passwd 444 >/dev/null ; then | ||
useradd -r -u 444 -g enduro -d /var/lib/enduro/ -s /sbin/nologin -c "Enduro system account" -m enduro | ||
else | ||
useradd -r -g enduro -d /var/lib/enduro/ -s /sbin/nologin -c "Enduro system account" -m enduro | ||
fi | ||
fi | ||
|
||
systemctl daemon-reload |
Oops, something went wrong.