Guest User

Untitled

a guest
Sep 19th, 2019
199
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Generated by debtap
  2. # Maintainer: Callum Denby <me@callumdenby.com>
  3. # Contributor: Callum Denby <me@callumdenby.com>
  4. pkgname=aws-session-manager-plugin
  5. pkgver=1.1.31.0
  6. pkgrel=2
  7. pkgdesc="AWS Session Manager Plugin for aws-cli."
  8. arch=('i686' 'x86_64')
  9. url="https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html"
  10. license=('custom')
  11. depends=('aws-cli')
  12. makedepends=('sed')
  13. backup=('usr/lib/systemd/system/session-manager-plugin.service' 'usr/sessionmanagerplugin/LICENSE' 'usr/sessionmanagerplugin/VERSION')
  14. options=('!strip' '!emptydirs')
  15. install=${pkgname}.install
  16. source_i686=(https://s3.amazonaws.com/session-manager-downloads/plugin/${pkgver}/ubuntu_32bit/session-manager-plugin.deb)
  17. source_x86_64=(https://s3.amazonaws.com/session-manager-downloads/plugin/${pkgver}/ubuntu_64bit/session-manager-plugin.deb)
  18. sha512sums_i686=('9ff1895cd29592ee8c75d4f53af04b76e075387b2fca33bfd787b9a71880ed6a1091d34fe29c4af9f450f96856eb9fddbf366313ecda5185cc8a52a822b9bc93')
  19. sha512sums_x86_64=('b24dc8ebaa21689d4d2af2084a774a8b2037111438352cca065a0ac8140e4fe3b98eaf9dfde7f304d51aea19af93de0a9acdf400c684838720876827fb92eaf7')
  20.  
  21. package(){
  22.  
  23.     # Extract package data
  24.     tar xzf data.tar.gz -C "${pkgdir}"
  25.  
  26.     # Fix directories structure differencies
  27.     cd "${pkgdir}"
  28.  
  29.     mkdir -p usr/lib 2> /dev/null; mv lib/* usr/lib; rm -rf lib
  30.  
  31.     rm etc/init/session-manager-plugin.conf
  32.     rm -fr etc/init/
  33.  
  34.     sed -ie 's/usr\/local/usr/' usr/lib/systemd/system/session-manager-plugin.service
  35.  
  36.     mv usr/local/* usr; rm -rf usr/local
  37.  
  38.     cd ..
  39.  
  40. }
RAW Paste Data