diff options
author | Endi S. Dewata <edewata@redhat.com> | 2017-07-20 08:37:47 +0200 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2017-07-20 08:37:47 +0200 |
commit | ab60a2d6737a828409fdb057b1069308ae98025c (patch) | |
tree | bb48ef1624b300fd69480418d4873cebd50fb742 | |
parent | 7eb3f1603dda1f8ea2c261fc3996ba85444d4bd0 (diff) | |
download | pki-dev-ab60a2d6737a828409fdb057b1069308ae98025c.tar.gz pki-dev-ab60a2d6737a828409fdb057b1069308ae98025c.tar.xz pki-dev-ab60a2d6737a828409fdb057b1069308ae98025c.zip |
Added meta scripts.
-rwxr-xr-x | scripts/meta-build.sh | 19 | ||||
-rwxr-xr-x | scripts/meta-download.sh | 11 | ||||
-rwxr-xr-x | scripts/meta-publish.sh | 10 |
3 files changed, 40 insertions, 0 deletions
diff --git a/scripts/meta-build.sh b/scripts/meta-build.sh new file mode 100755 index 0000000..b9c8137 --- /dev/null +++ b/scripts/meta-build.sh @@ -0,0 +1,19 @@ +#!/bin/sh -x + +PROJECT_DIR=`cd ../.. ; pwd` + +BUILD_DIR=$HOME/build/pki-meta +COMPOSE=$PROJECT_DIR/pki/scripts/compose_dogtag_pki_meta_packages + +mkdir -p $BUILD_DIR +cd $BUILD_DIR + +rm -rf rpmbuild +mkdir -p rpmbuild + +$COMPOSE --work-dir $BUILD_DIR/rpmbuild hybrid_rpms + +rm -rf repo +mkdir -p repo +mv `find rpmbuild/RPMS -name *.rpm` repo +createrepo repo diff --git a/scripts/meta-download.sh b/scripts/meta-download.sh new file mode 100755 index 0000000..ab9eccd --- /dev/null +++ b/scripts/meta-download.sh @@ -0,0 +1,11 @@ +#!/bin/sh -x + +cd ~/Downloads + +BASE_URL=http://kojipkgs.fedoraproject.org/packages +PACKAGE=dogtag-pki +VERSION=10.3.5 +RELEASE=1 +OS=fc24 + +wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/noarch/dogtag-pki-$VERSION-$RELEASE.$OS.noarch.rpm diff --git a/scripts/meta-publish.sh b/scripts/meta-publish.sh new file mode 100755 index 0000000..bffaa55 --- /dev/null +++ b/scripts/meta-publish.sh @@ -0,0 +1,10 @@ +#!/bin/sh -x + +BUILD_DIR=$HOME/build/pki-meta +mkdir -p $BUILD_DIR +cd $BUILD_DIR + +REPO_DIR=/var/www/html/pub/fedora/linux/releases/20/Everything/x86_64/os +mkdir -p $REPO_DIR +cp repo/*.rpm $REPO_DIR +createrepo $REPO_DIR |