summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2017-07-20 08:37:47 +0200
committerEndi S. Dewata <edewata@redhat.com>2017-07-20 08:37:47 +0200
commitab60a2d6737a828409fdb057b1069308ae98025c (patch)
treebb48ef1624b300fd69480418d4873cebd50fb742
parent7eb3f1603dda1f8ea2c261fc3996ba85444d4bd0 (diff)
downloadpki-dev-ab60a2d6737a828409fdb057b1069308ae98025c.zip
pki-dev-ab60a2d6737a828409fdb057b1069308ae98025c.tar.gz
pki-dev-ab60a2d6737a828409fdb057b1069308ae98025c.tar.xz
Added meta scripts.
-rwxr-xr-xscripts/meta-build.sh19
-rwxr-xr-xscripts/meta-download.sh11
-rwxr-xr-xscripts/meta-publish.sh10
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