mirror of
https://github.com/darlinghq/darling.git
synced 2025-03-03 15:27:36 +00:00

I didn't add setsebool -P mmap_low_allowed 1 to the install script because I didn't feel comfortable adding that
14 lines
482 B
Bash
14 lines
482 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -eu
|
|
|
|
yum-builddep -y /src/rpm/SPECS/darling.spec
|
|
if [ -e "/src/rpm/SOURCES/darling.tar.gz" ]; then
|
|
ln -s /src/rpm/SOURCES/darling.tar.gz /root/rpmbuild/SOURCES/
|
|
else
|
|
# Preparing tarball
|
|
tar --transform "s|^\./|/darling/|" -cf /root/rpmbuild/SOURCES/darling.tar.gz -C /src --exclude=.git --exclude SOURCES .
|
|
fi
|
|
ln -s /src/rpm/SOURCES/dkms.conf /root/rpmbuild/SOURCES/
|
|
#spectool -g -R /src/rpm/SPECS/darling.spec
|
|
rpmbuild -ba /src/rpm/SPECS/darling.spec |