summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2017-07-20 08:46:10 +0200
committerEndi S. Dewata <edewata@redhat.com>2017-07-20 08:46:10 +0200
commit6d3b819f70a0df6120bc59f7dc6ff7a347cd0804 (patch)
treebd9b5c044328dd053d49f329a4c7622ad7a0aee2
parentecb716fcccf5143c1f97d1028a7886b984c1a5cf (diff)
downloadpki-dev-6d3b819f70a0df6120bc59f7dc6ff7a347cd0804.zip
pki-dev-6d3b819f70a0df6120bc59f7dc6ff7a347cd0804.tar.gz
pki-dev-6d3b819f70a0df6120bc59f7dc6ff7a347cd0804.tar.xz
Added base scripts.
-rwxr-xr-xscripts/base-build.sh19
-rwxr-xr-xscripts/base-install.sh9
-rwxr-xr-xscripts/base-remove.sh6
-rwxr-xr-xscripts/base-update.sh4
4 files changed, 38 insertions, 0 deletions
diff --git a/scripts/base-build.sh b/scripts/base-build.sh
new file mode 100755
index 0000000..6f6877e
--- /dev/null
+++ b/scripts/base-build.sh
@@ -0,0 +1,19 @@
+#!/bin/sh -x
+
+PROJECT_DIR=`cd ../.. ; pwd`
+
+BUILD_DIR=$HOME/build/pki-base
+COMPOSE=$PROJECT_DIR/pki/scripts/compose_pki_core_packages
+
+mkdir -p $BUILD_DIR
+cd $BUILD_DIR
+
+rm -rf rpmbuild
+mkdir -p rpmbuild
+
+$COMPOSE --work-dir $BUILD_DIR/rpmbuild --without-server --without-javadoc hybrid_rpms
+
+rm -rf repo
+mkdir -p repo
+mv `find rpmbuild/RPMS -name *.rpm` repo
+createrepo repo
diff --git a/scripts/base-install.sh b/scripts/base-install.sh
new file mode 100755
index 0000000..8716131
--- /dev/null
+++ b/scripts/base-install.sh
@@ -0,0 +1,9 @@
+#!/bin/sh -x
+
+PROJECT_DIR=`cd ../.. ; pwd`
+
+BUILD_DIR=$HOME/build/pki-base
+
+cd $BUILD_DIR/repo
+
+yum localinstall -y *.rpm
diff --git a/scripts/base-remove.sh b/scripts/base-remove.sh
new file mode 100755
index 0000000..90d20c1
--- /dev/null
+++ b/scripts/base-remove.sh
@@ -0,0 +1,6 @@
+#!/bin/sh -x
+
+rpm -e --nodeps pki-symkey
+rpm -e --nodeps pki-base
+rpm -e --nodeps pki-tools
+rpm -e --nodeps pki-core-debuginfo
diff --git a/scripts/base-update.sh b/scripts/base-update.sh
new file mode 100755
index 0000000..d449041
--- /dev/null
+++ b/scripts/base-update.sh
@@ -0,0 +1,4 @@
+#!/bin/sh -x
+
+./base-remove.sh
+./base-install.sh