Last active
July 7, 2016 11:10
-
-
Save jameswhite/67a75d6167374a01589e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!/bin/bash | |
# vagrant box add jessie https://downloads.sourceforge.net/project/vagrantboxjessie/debian80.box | |
# vagrant init jessie | |
# vagrant up | |
# vagrant ssh -- -A | |
# sudo su - | |
# wget --no-check-certificate -qO - https://gist.githubusercontent.com/jameswhite/5ef1524e5d99904a0e65/raw/jessie | bash > jessie.out 2>&1 | |
apt-get update | |
env DEBIAN_FRONTEND=noninteractive apt-get upgrade -y --force-yes -oDpkg::Options::="--force-confdef" -oDpkg::Options::="--force-confold" | |
[ ! -d /opt/local/pkg/dogtag ] && mkdir -p /opt/local/pkg/dogtag | |
[ ! -d /opt/local/src/dogtag ] && mkdir -p /opt/local/src/dogtag | |
( | |
cd /opt/local/src/dogtag | |
wget http://ftp.de.debian.org/debian/pool/main/d/dogtag-pki/dogtag-pki_10.2.0-4.dsc | |
wget http://ftp.de.debian.org/debian/pool/main/d/dogtag-pki/dogtag-pki_10.2.0.orig.tar.xz | |
wget http://ftp.de.debian.org/debian/pool/main/d/dogtag-pki/dogtag-pki_10.2.0-4.debian.tar.xz | |
dpkg-source -x dogtag-pki_10.2.0-4.dsc | |
) | |
(cd /opt/local/src/dogtag/dogtag-pki-10.2.0/; dpkg-checkbuilddeps 2>&1 | grep "Unmet build dependencies:") | |
env DEBIAN_FRONTEND=noninteractive \ | |
apt-get install -y --force-yes \ | |
-o Dpkg::Options::="--force-confdef" \ | |
-o Dpkg::Options::="--force-confold" \ | |
build-essential apache2-dev cmake debhelper default-jdk \ | |
javahelper junit4 libcommons-cli-java libcommons-codec-java \ | |
libcommons-io-java libcommons-lang-java \ | |
libidm-console-framework-java libjackson2-annotations-java \ | |
libjss-java libldap-java libldap2-dev libnspr4-dev \ | |
libnss3-dev libresteasy-java libservlet3.0-java \ | |
libsvrcore-dev libtomcat7-java libtomcatjss-java \ | |
libxalan2-java libxerces2-java pkg-config policycoreutils \ | |
python-dev velocity dh-systemd libsepol1-dev | tee build-deps | |
# Build that stuff | |
(cd /opt/local/src/dogtag/dogtag-pki-10.2.0/; debian/rules binary) | |
(mv /opt/local/src/dogtag/*.deb /opt/local/pkg/dogtag) | |
env DEBIAN_FRONTEND=noninteractive \ | |
apt-get install -y --force-yes \ | |
-o Dpkg::Options::="--force-confdef" \ | |
-o Dpkg::Options::="--force-confold" \ | |
python-ldap python-lxml python-requests ldap-utils \ | |
libjackson2-jaxrs-providers-java libjs-jquery \ | |
libjs-underscore libxml-perl tomcat7-user libnss3-tools \ | |
python-urllib3 libjackson2-core-java \ | |
libjackson2-databind-java libjackson2-dataformat-smile \ | |
libjackson2-module-jaxb-annotations-java \ | |
python-ndg-httpsclient python-openssl python-pyasn1 \ | |
tomcat7-common libxslt1.1 python-cryptography python-cffi \ | |
python-pycparser python-ply python-ply-yacc-3.2 \ | |
python-ply-lex-3.2 javascript-common | tee install-deps | |
# Install that stuff | |
( | |
cd /opt/local/pkg/dogtag/ | |
dpkg -i pki-base* | |
dpkg -i dogtag-pki-console-theme* dogtag-pki-server-theme* | |
dpkg -i pki-console* pki-server* pki-tools* | |
dpkg -i libsymkey-java* libsymkey-jni* pki-javadoc* | |
dpkg -i pki-tks* pki-tps* pki-ca* pki-kra* pki-ocsp* | |
dpkg -i dogtag-pki* | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment