diff options
author | François Andriot <albator78@libertysurf.fr> | 2014-04-04 21:17:27 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2014-04-04 21:17:27 +0200 |
commit | 7b26da834f79b8b6eb2d8e99a1467ffea2791380 (patch) | |
tree | f26773747d20d14d82fe43fd5c245d2f9e803eee /redhat/build/configure_repository.sh | |
parent | 61c9cb24d0d3319c8c800fabf1af8153dcabce2c (diff) | |
download | tde-packaging-7b26da834f79b8b6eb2d8e99a1467ffea2791380.tar.gz tde-packaging-7b26da834f79b8b6eb2d8e99a1467ffea2791380.zip |
RPM Packaging: update build scripts
Diffstat (limited to 'redhat/build/configure_repository.sh')
-rwxr-xr-x | redhat/build/configure_repository.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/redhat/build/configure_repository.sh b/redhat/build/configure_repository.sh new file mode 100755 index 000000000..2456b1a6a --- /dev/null +++ b/redhat/build/configure_repository.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +TDE_VERSION=${1:-14.0.0} +ARCH=$(uname -i) +RPMDIR=$(rpm -E %{_rpmdir}.tde-${TDE_VERSION}) + +if [ -x /usr/bin/yum ]; then + cat <<EOF >/tmp/rpmbuild-tde.repo +[rpmbuild.${ARCH}] +name=rpmbuild.${ARCH} +baseurl=file://${RPMDIR}/${ARCH} +enabled=1 +gpgcheck=0 + +[rpmbuild.noarch] +name=rpmbuild.noarch +baseurl=file://${RPMDIR}/noarch +enabled=1 +gpgcheck=0 +EOF + sudo mv -f /tmp/rpmbuild-tde.repo /etc/yum.repos.d/ +fi |