Linux

amazon-efs-utils install

Naan 2018. 10. 10. 21:04
320x100

# git clone https://github.com/aws/efs-utils

Cloning into 'efs-utils'...

fatal: unable to access 'https://github.com/aws/efs-utils/': Peer reports incompatible or unsupported protocol version.


# yum update -y nss curl libcurl


# git clone https://github.com/aws/efs-utils

Cloning into 'efs-utils'...

remote: Enumerating objects: 40, done.

remote: Counting objects: 100% (40/40), done.

remote: Compressing objects: 100% (26/26), done.

remote: Total 171 (delta 9), reused 23 (delta 7), pack-reused 131

Receiving objects: 100% (171/171), 73.41 KiB | 0 bytes/s, done.

Resolving deltas: 100% (50/50), done.


# cd efs-utils/
# make rpm
# make rpm
rm -rf build/rpmbuild
rm -rf amazon-efs-utils
rm -f amazon-efs-utils.tar.gz
rm -f amazon-efs-utils.spec
mkdir -p amazon-efs-utils
mkdir -p amazon-efs-utils/dist
cp -p dist/amazon-efs-mount-watchdog.conf amazon-efs-utils/dist
cp -p dist/amazon-efs-mount-watchdog.service amazon-efs-utils/dist
cp -p dist/efs-utils.conf amazon-efs-utils/dist
cp -p dist/efs-utils.crt amazon-efs-utils/dist
mkdir -p amazon-efs-utils/src
cp -rp src/mount_efs amazon-efs-utils/src
cp -rp src/watchdog amazon-efs-utils/src
mkdir -p amazon-efs-utils/man
cp -rp man/mount.efs.8 amazon-efs-utils/man
tar -czf amazon-efs-utils.tar.gz amazon-efs-utils/*
ln -sf dist/amazon-efs-utils.spec amazon-efs-utils.spec
mkdir -p build/rpmbuild/{SPECS,COORD_SOURCES,DATA_SOURCES,BUILD,RPMS,SOURCES,SRPMS}
cp amazon-efs-utils.spec build/rpmbuild/SPECS
cp amazon-efs-utils.tar.gz build/rpmbuild/SOURCES
rpmbuild -ba --define "_topdir `pwd`/build/rpmbuild" build/rpmbuild/SPECS/amazon-efs-utils.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.K6kcBG
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# yum -y install ./build/amazon-efs-utils*rpm Loaded plugins: fastestmirror, langpacks Examining ./build/amazon-efs-utils-1.4-1.el7.noarch.rpm: amazon-efs-utils-1.4-1.el7.noarch Marking ./build/amazon-efs-utils-1.4-1.el7.noarch.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package amazon-efs-utils.noarch 0:1.4-1.el7 will be installed --> Processing Dependency: stunnel >= 4.56 for package: amazon-efs-utils-1.4-1.el7.noarch Loading mirror speeds from cached hostfile * base: mirror.kakao.com * epel: mirror.premi.st * extras: mirror.kakao.com * updates: mirror.kakao.com --> Running transaction check ---> Package stunnel.x86_64 0:4.56-6.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================================================================================== Installing: amazon-efs-utils noarch 1.4-1.el7 /amazon-efs-utils-1.4-1.el7.noarch 39 k Installing for dependencies: stunnel x86_64 4.56-6.el7 base 146 k Transaction Summary =============================================================================================================================================================================================================== Install 1 Package (+1 Dependent package) Total size: 185 k Total download size: 146 k Installed size: 347 k Downloading packages: stunnel-4.56-6.el7.x86_64.rpm | 146 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : stunnel-4.56-6.el7.x86_64 1/2 Installing : amazon-efs-utils-1.4-1.el7.noarch 2/2 Verifying : stunnel-4.56-6.el7.x86_64 1/2 Verifying : amazon-efs-utils-1.4-1.el7.noarch 2/2 Installed: amazon-efs-utils.noarch 0:1.4-1.el7 Dependency Installed: stunnel.x86_64 0:4.56-6.el7 Complete! [root@ec2-52-2-12-250 efs-utils]#


320x100