summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2017-07-21 18:23:47 +0200
committerEndi S. Dewata <edewata@redhat.com>2017-07-21 18:23:47 +0200
commitbe2b41df4a70643a4b84af67d445e37a075f0065 (patch)
treecb9954a2a55c51bbb22d9588c80ec0ca8b9d35d4
parent72ccf99e502b2fc8b59f31780ba48134fa8d2759 (diff)
downloadpki-dev-be2b41df4a70643a4b84af67d445e37a075f0065.zip
pki-dev-be2b41df4a70643a4b84af67d445e37a075f0065.tar.gz
pki-dev-be2b41df4a70643a4b84af67d445e37a075f0065.tar.xz
Added Dogtag 10.0 scripts.
-rwxr-xr-xdogtag-10.0/ca-create.sh4
-rwxr-xr-xdogtag-10.0/ca-internal-create.sh3
-rwxr-xr-xdogtag-10.0/ca-internal-remove.sh6
-rwxr-xr-xdogtag-10.0/ca-master-create.sh3
-rwxr-xr-xdogtag-10.0/ca-master-remove.sh6
-rwxr-xr-xdogtag-10.0/console-download.sh12
-rwxr-xr-xdogtag-10.0/core-build.sh22
-rwxr-xr-xdogtag-10.0/core-download.sh22
-rwxr-xr-xdogtag-10.0/core-install.sh9
-rwxr-xr-xdogtag-10.0/core-reinstall.sh4
-rwxr-xr-xdogtag-10.0/core-uninstall.sh17
-rwxr-xr-xdogtag-10.0/ds-create.sh11
-rwxr-xr-xdogtag-10.0/ds-remove.sh3
-rwxr-xr-xdogtag-10.0/kra-create.sh3
-rwxr-xr-xdogtag-10.0/ocsp-create.sh3
-rwxr-xr-xdogtag-10.0/theme-download.sh13
-rwxr-xr-xdogtag-10.0/tks-create.sh3
17 files changed, 144 insertions, 0 deletions
diff --git a/dogtag-10.0/ca-create.sh b/dogtag-10.0/ca-create.sh
new file mode 100755
index 0000000..42b4105
--- /dev/null
+++ b/dogtag-10.0/ca-create.sh
@@ -0,0 +1,4 @@
+#!/bin/sh -x
+
+mkdir -p build
+pkispawn -v -f ca.cfg -s CA 2>&1 | tee build/ca-create.log
diff --git a/dogtag-10.0/ca-internal-create.sh b/dogtag-10.0/ca-internal-create.sh
new file mode 100755
index 0000000..28ba87e
--- /dev/null
+++ b/dogtag-10.0/ca-internal-create.sh
@@ -0,0 +1,3 @@
+#!/bin/sh -x
+
+pkispawn -v -f ca-internal.cfg -s CA 2>&1 | tee build/ca-internal-create.log
diff --git a/dogtag-10.0/ca-internal-remove.sh b/dogtag-10.0/ca-internal-remove.sh
new file mode 100755
index 0000000..c792bf5
--- /dev/null
+++ b/dogtag-10.0/ca-internal-remove.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+SRC_DIR=`cd ../.. ; pwd`
+INSTANCE_NAME=ca-internal
+
+pkidestroy -v -s CA -i $INSTANCE_NAME
diff --git a/dogtag-10.0/ca-master-create.sh b/dogtag-10.0/ca-master-create.sh
new file mode 100755
index 0000000..0b53fb5
--- /dev/null
+++ b/dogtag-10.0/ca-master-create.sh
@@ -0,0 +1,3 @@
+#!/bin/sh -x
+
+pkispawn -v -f ca-master.cfg -s CA 2>&1 | tee build/ca-master-create.log
diff --git a/dogtag-10.0/ca-master-remove.sh b/dogtag-10.0/ca-master-remove.sh
new file mode 100755
index 0000000..438f8dd
--- /dev/null
+++ b/dogtag-10.0/ca-master-remove.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+SRC_DIR=`cd ../.. ; pwd`
+INSTANCE_NAME=ca-master
+
+pkidestroy -v -s CA -i $INSTANCE_NAME
diff --git a/dogtag-10.0/console-download.sh b/dogtag-10.0/console-download.sh
new file mode 100755
index 0000000..d304bfa
--- /dev/null
+++ b/dogtag-10.0/console-download.sh
@@ -0,0 +1,12 @@
+#!/bin/sh -x
+
+mkdir -p ~/Downloads
+cd ~/Downloads
+
+BASE_URL=http://kojipkgs.fedoraproject.org/packages
+PACKAGE=pki-console
+VERSION=10.0.7
+RELEASE=1
+OS=fc19
+
+wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/noarch/pki-console-$VERSION-$RELEASE.$OS.noarch.rpm
diff --git a/dogtag-10.0/core-build.sh b/dogtag-10.0/core-build.sh
new file mode 100755
index 0000000..a1dfa46
--- /dev/null
+++ b/dogtag-10.0/core-build.sh
@@ -0,0 +1,22 @@
+#!/bin/sh -x
+
+WORK_DIR=`pwd`
+PROJECT_DIR=`cd ../.. ; pwd`
+COMPONENT=core
+
+mkdir -p $WORK_DIR/build
+rm -rf $WORK_DIR/build/$COMPONENT
+
+cd $PROJECT_DIR
+rm -rf packages
+mkdir -p packages
+
+pki/scripts/compose_pki_${COMPONENT}_packages --without-javadoc hybrid_rpms 2>&1 | tee packages/build.log
+#pki/scripts/compose_pki_${COMPONENT}_packages hybrid_rpms 2>&1 | tee packages/build.log
+
+mv packages $WORK_DIR/build/$COMPONENT
+cd $WORK_DIR/build/$COMPONENT
+
+mkdir -p repo
+mv `find RPMS -name *.rpm` repo
+createrepo repo
diff --git a/dogtag-10.0/core-download.sh b/dogtag-10.0/core-download.sh
new file mode 100755
index 0000000..6d2bb39
--- /dev/null
+++ b/dogtag-10.0/core-download.sh
@@ -0,0 +1,22 @@
+#!/bin/sh -x
+
+mkdir -p ~/Downloads
+cd ~/Downloads
+
+BASE_URL=http://kojipkgs.fedoraproject.org/packages
+PACKAGE=pki-core
+VERSION=10.0.7
+RELEASE=1
+OS=fc19
+
+wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/noarch/pki-base-$VERSION-$RELEASE.$OS.noarch.rpm
+wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/noarch/pki-ca-$VERSION-$RELEASE.$OS.noarch.rpm
+wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/noarch/pki-javadoc-$VERSION-$RELEASE.$OS.noarch.rpm
+wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/noarch/pki-kra-$VERSION-$RELEASE.$OS.noarch.rpm
+wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/noarch/pki-ocsp-$VERSION-$RELEASE.$OS.noarch.rpm
+wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/noarch/pki-server-$VERSION-$RELEASE.$OS.noarch.rpm
+wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/noarch/pki-tks-$VERSION-$RELEASE.$OS.noarch.rpm
+wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/noarch/pki-tps-tomcat-$VERSION-$RELEASE.$OS.noarch.rpm
+wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/x86_64/pki-symkey-$VERSION-$RELEASE.$OS.x86_64.rpm
+wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/x86_64/pki-tools-$VERSION-$RELEASE.$OS.x86_64.rpm
+wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/x86_64/pki-core-debuginfo-$VERSION-$RELEASE.$OS.x86_64.rpm
diff --git a/dogtag-10.0/core-install.sh b/dogtag-10.0/core-install.sh
new file mode 100755
index 0000000..86fc7cb
--- /dev/null
+++ b/dogtag-10.0/core-install.sh
@@ -0,0 +1,9 @@
+#!/bin/sh -x
+
+WORK_DIR=`pwd`
+PROJECT_DIR=`cd ../.. ; pwd`
+COMPONENT=core
+
+cd $WORK_DIR/build/$COMPONENT/repo
+
+yum localinstall -y *.rpm
diff --git a/dogtag-10.0/core-reinstall.sh b/dogtag-10.0/core-reinstall.sh
new file mode 100755
index 0000000..1f13497
--- /dev/null
+++ b/dogtag-10.0/core-reinstall.sh
@@ -0,0 +1,4 @@
+#!/bin/sh -x
+
+./core-uninstall.sh
+./core-install.sh
diff --git a/dogtag-10.0/core-uninstall.sh b/dogtag-10.0/core-uninstall.sh
new file mode 100755
index 0000000..48ff2ad
--- /dev/null
+++ b/dogtag-10.0/core-uninstall.sh
@@ -0,0 +1,17 @@
+#!/bin/sh -x
+
+yum erase -y\
+ pki-symkey\
+ pki-base\
+ pki-tools\
+ pki-util\
+ pki-silent\
+ pki-selinux\
+ pki-server\
+ pki-ca\
+ pki-kra\
+ pki-ocsp\
+ pki-tks\
+ pki-tps\
+ pki-javadoc\
+ pki-core-debuginfo
diff --git a/dogtag-10.0/ds-create.sh b/dogtag-10.0/ds-create.sh
new file mode 100755
index 0000000..759160b
--- /dev/null
+++ b/dogtag-10.0/ds-create.sh
@@ -0,0 +1,11 @@
+#!/bin/sh -x
+
+setup-ds.pl --silent --\
+ General.FullMachineName=$HOSTNAME\
+ General.SuiteSpotUserID=nobody\
+ General.SuiteSpotGroup=nobody\
+ slapd.ServerPort=389\
+ slapd.ServerIdentifier=pki-tomcat\
+ slapd.Suffix=dc=example,dc=com\
+ slapd.RootDN="cn=Directory Manager"\
+ slapd.RootDNPwd=Secret123
diff --git a/dogtag-10.0/ds-remove.sh b/dogtag-10.0/ds-remove.sh
new file mode 100755
index 0000000..980a354
--- /dev/null
+++ b/dogtag-10.0/ds-remove.sh
@@ -0,0 +1,3 @@
+#!/bin/sh -x
+
+remove-ds.pl -f -i slapd-pki-tomcat
diff --git a/dogtag-10.0/kra-create.sh b/dogtag-10.0/kra-create.sh
new file mode 100755
index 0000000..71bd462
--- /dev/null
+++ b/dogtag-10.0/kra-create.sh
@@ -0,0 +1,3 @@
+#!/bin/sh -x
+
+pkispawn -v -f kra.cfg -s KRA 2>&1 | tee build/kra-create.log
diff --git a/dogtag-10.0/ocsp-create.sh b/dogtag-10.0/ocsp-create.sh
new file mode 100755
index 0000000..3680932
--- /dev/null
+++ b/dogtag-10.0/ocsp-create.sh
@@ -0,0 +1,3 @@
+#!/bin/sh -x
+
+pkispawn -v -f ocsp.cfg -s OCSP -v 2>&1 | tee build/ocsp-create.log
diff --git a/dogtag-10.0/theme-download.sh b/dogtag-10.0/theme-download.sh
new file mode 100755
index 0000000..6ae45f8
--- /dev/null
+++ b/dogtag-10.0/theme-download.sh
@@ -0,0 +1,13 @@
+#!/bin/sh -x
+
+mkdir -p ~/Downloads
+cd ~/Downloads
+
+BASE_URL=http://kojipkgs.fedoraproject.org/packages
+PACKAGE=dogtag-pki-theme
+VERSION=10.0.7
+RELEASE=1
+OS=fc19
+
+wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/noarch/dogtag-pki-console-theme-$VERSION-$RELEASE.$OS.noarch.rpm
+wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/noarch/dogtag-pki-server-theme-$VERSION-$RELEASE.$OS.noarch.rpm
diff --git a/dogtag-10.0/tks-create.sh b/dogtag-10.0/tks-create.sh
new file mode 100755
index 0000000..4a6fabe
--- /dev/null
+++ b/dogtag-10.0/tks-create.sh
@@ -0,0 +1,3 @@
+#!/bin/sh -x
+
+pkispawn -v -f tks.cfg -s TKS -v 2>&1 | tee build/tks-create.log