Skip to content

Commit

Permalink
(PA-4719) Add AIX 7.2 platform
Browse files Browse the repository at this point in the history
We still need to bootstrap openssl 1.0.2 so that we can connect to artifactory
to download aix-yum.sh, which installs yum on AIX. Then we can use yum to
install non-pl-build-tools gcc, etc.
  • Loading branch information
joshcooper committed Jun 15, 2023
1 parent 322f9ea commit b49b9db
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions configs/platforms/aix-7.2-ppc.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
platform "aix-7.2-ppc" do |plat|
# os_version = 7.2
plat.make "gmake"
plat.mktemp "/opt/freeware/bin/mktemp -d -p /var/tmp"
plat.patch "/opt/freeware/bin/patch"
plat.rpmbuild "/usr/bin/rpm"
plat.servicetype "aix"
plat.tar "/opt/freeware/bin/tar"

plat.provision_with %[
curl -O https://artifactory.delivery.puppetlabs.net/artifactory/generic__buildsources/openssl-1.0.2.1800.tar.Z;
uncompress openssl-1.0.2.1800.tar.Z;
tar xvf openssl-1.0.2.1800.tar;
cd openssl-1.0.2.1800 && /usr/sbin/installp -acgwXY -d $PWD openssl.base;
curl --output yum.sh https://artifactory.delivery.puppetlabs.net/artifactory/generic__buildsources/buildsources/aix-yum.sh && sh yum.sh]

packages = %w(
autoconf
cmake
coreutils
gawk
gcc
gcc-c++
gdbm
gmp
libffi
libyaml
make
perl
pkg-config
readline
readline-devel
sed
tar
zlib
zlib-devel
)
plat.provision_with "yum install --assumeyes #{packages.join(' ')}"

# No upstream rsync packages
plat.provision_with "rpm -Uvh https://artifactory.delivery.puppetlabs.net/artifactory/rpm__remote_aix_linux_toolbox/RPMS/ppc/rsync/rsync-3.0.6-1.aix5.3.ppc.rpm"

plat.install_build_dependencies_with "yum install --assumeyes "
plat.vmpooler_template "aix-7.2-power"
end

0 comments on commit b49b9db

Please sign in to comment.