(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:pkgname)
          op: assign_op.Equal
          rhs: {<logstash>}
          spids: [6]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:pkgver)
          op: assign_op.Equal
          rhs: {<5.4.1>}
          spids: [9]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:pkgrel)
          op: assign_op.Equal
          rhs: {<0>}
          spids: [12]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:pkgdesc)
          op: assign_op.Equal
          rhs: {(DQ <'A flexible, open source, data collection, parsing and enrichment pipeline'>)}
          spids: [15]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:url)
          op: assign_op.Equal
          rhs: {(DQ <'http://logstash.net'>)}
          spids: [20]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:arch)
          op: assign_op.Equal
          rhs: {(DQ <noarch>)}
          spids: [25]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:license)
          op: assign_op.Equal
          rhs: {(DQ <apache>)}
          spids: [30]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:depends)
          op: assign_op.Equal
          rhs: {(DQ <'openjdk8-jre-base java-jffi-native libc6-compat bash'>)}
          spids: [35]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:makedepends)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_DollarName '$depends_dev'))}
          spids: [40]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:install)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_DollarName '$pkgname') <.pre-install>)}
          spids: [45]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:pkgusers)
          op: assign_op.Equal
          rhs: {(DQ <logstash>)}
          spids: [51]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:subpackages)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_DollarName '$pkgname') <-doc>)}
          spids: [56]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:options)
          op: assign_op.Equal
          rhs: {(DQ <'!strip !check'>)}
          spids: [62]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:source)
          op: assign_op.Equal
          rhs: 
            {
              (DQ ($ Id.VSub_DollarName '$pkgname') <-> ($ Id.VSub_DollarName '$pkgver') 
                <'.tar.gz::https://artifacts.elastic.co/downloads/'> ($ Id.VSub_DollarName '$pkgname') <'/'> ($ Id.VSub_DollarName '$pkgname') <-> 
                ($ Id.VSub_DollarName '$pkgver') <'.tar.gz\n'> <'\t'> ($ Id.VSub_DollarName '$pkgname') <'.confd\n'> <'\t'> 
                ($ Id.VSub_DollarName '$pkgname') <'.initd\n'> <'\t'> ($ Id.VSub_DollarName '$pkgname') <'.conf\n'> <'\t'> ($ Id.VSub_DollarName '$pkgname') 
                <'.profile\n'> <'\t'>
              )
            }
          spids: [67]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:builddir)
          op: assign_op.Equal
          rhs: 
            {
              (DQ (${ Id.VSub_Name srcdir) <'/'> (${ Id.VSub_Name pkgname) <-> (${ Id.VSub_Name pkgver))
            }
          spids: [94]
        )
      ]
    )
    (command.ShFunction
      name: build
      body: 
        (BraceGroup
          children: [(command.ControlFlow token:<Id.ControlFlow_Return return> arg_word:{<0>})]
        )
    )
    (command.ShFunction
      name: package
      body: 
        (BraceGroup
          children: [
            (C {<local>} {<Id.Lit_VarLike 'datadir='> <'/var/lib/logstash'>} 
              {<Id.Lit_VarLike 'logdir='> ($ Id.VSub_DollarName '$datadir') <'/logs'>} {<Id.Lit_VarLike 'confdir='> <'/etc/logstash'>}
            )
            (C {<local>} {<Id.Lit_VarLike 'homedir='> <'/usr/share/logstash'>} 
              {<Id.Lit_VarLike 'heapsize='> <150m>}
            )
            (C {<cd>} {(DQ ($ Id.VSub_DollarName '$builddir'))})
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<install>} {<-dm755>} 
                  {(DQ ($ Id.VSub_DollarName '$pkgdir') <'/'> ($ Id.VSub_DollarName '$homedir'))}
                )
                (command.ControlFlow
                  token: <Id.ControlFlow_Return return>
                  arg_word: {<1>}
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<install>} {<-dm755>} 
                  {(DQ ($ Id.VSub_DollarName '$pkgdir') <'/'> ($ Id.VSub_DollarName '$logdir'))}
                )
                (command.ControlFlow
                  token: <Id.ControlFlow_Return return>
                  arg_word: {<1>}
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<install>} {<-dm755>} 
                  {(DQ ($ Id.VSub_DollarName '$pkgdir') <'/'> ($ Id.VSub_DollarName '$datadir'))}
                )
                (command.ControlFlow
                  token: <Id.ControlFlow_Return return>
                  arg_word: {<1>}
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<install>} {<-dm755>} 
                  {(DQ ($ Id.VSub_DollarName '$pkgdir') <'/'> ($ Id.VSub_DollarName '$confdir'))}
                )
                (command.ControlFlow
                  token: <Id.ControlFlow_Return return>
                  arg_word: {<1>}
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<install>} {<-dm755>} 
                  {
                    (DQ ($ Id.VSub_DollarName '$pkgdir') <'/'> ($ Id.VSub_DollarName '$confdir') 
                      <'/conf.d'>
                    )
                  }
                )
                (command.ControlFlow
                  token: <Id.ControlFlow_Return return>
                  arg_word: {<1>}
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<install>} {<-m755>} {<-D>} 
                  {(DQ ($ Id.VSub_DollarName '$srcdir')) <'/'> ($ Id.VSub_DollarName '$pkgname') 
                    <.initd>
                  } {(DQ ($ Id.VSub_DollarName '$pkgdir')) <'/etc/init.d/'> ($ Id.VSub_DollarName '$pkgname')}
                )
                (command.ControlFlow
                  token: <Id.ControlFlow_Return return>
                  arg_word: {<1>}
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<install>} {<-m644>} {<-D>} 
                  {(DQ ($ Id.VSub_DollarName '$srcdir')) <'/'> ($ Id.VSub_DollarName '$pkgname') 
                    <.confd>
                  } {(DQ ($ Id.VSub_DollarName '$pkgdir')) <'/etc/conf.d/'> ($ Id.VSub_DollarName '$pkgname')}
                )
                (command.ControlFlow
                  token: <Id.ControlFlow_Return return>
                  arg_word: {<1>}
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<install>} {<-m644>} {<-D>} 
                  {(DQ ($ Id.VSub_DollarName '$srcdir')) <'/'> ($ Id.VSub_DollarName '$pkgname') 
                    <.conf>
                  } {(DQ ($ Id.VSub_DollarName '$pkgdir') <'/'> ($ Id.VSub_DollarName '$confdir')) <'/conf.d/'>}
                )
                (command.ControlFlow
                  token: <Id.ControlFlow_Return return>
                  arg_word: {<1>}
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<install>} {<-m644>} {<-D>} 
                  {(DQ ($ Id.VSub_DollarName '$srcdir')) <'/'> ($ Id.VSub_DollarName '$pkgname') 
                    <.profile>
                  } {(DQ ($ Id.VSub_DollarName '$pkgdir')) <'/etc/profile.d/logstash.sh'>}
                )
                (command.ControlFlow
                  token: <Id.ControlFlow_Return return>
                  arg_word: {<1>}
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<cp>} {<-r>} {<Id.Lit_Star '*'>} 
                  {
                    (DQ ($ Id.VSub_DollarName '$pkgdir') <'/'> ($ Id.VSub_DollarName '$homedir') <'/'>)
                  }
                )
                (command.ControlFlow
                  token: <Id.ControlFlow_Return return>
                  arg_word: {<1>}
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<cp>} {<'config/'> <Id.Lit_Star '*'>} 
                  {
                    (DQ ($ Id.VSub_DollarName '$pkgdir') <'/'> ($ Id.VSub_DollarName '$confdir') <'/'>)
                  }
                )
                (command.ControlFlow
                  token: <Id.ControlFlow_Return return>
                  arg_word: {<1>}
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (C {<mkdir>} {<-p>} {(DQ ($ Id.VSub_DollarName '$pkgdir')) <'/usr/share/doc/logstash'>})
                (C {<cd>} {(DQ ($ Id.VSub_DollarName '$pkgdir'))})
              ]
            )
            (C {<find>} {<'usr/share/logstash'>} {<-maxdepth>} {<1>} {<-type>} {<f>} {<Id.KW_Bang '!'>} 
              {<-name>} {<Gemfile> <Id.Lit_Star '*'>} {<-name>} {(DQ <'[[:upper:]]*'>)} {<-exec>} {<mv>} 
              {<Id.Lit_LBrace '{'> <Id.Lit_RBrace '}'>} {<'usr/share/doc/logstash/'>} {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\;'>)}
            )
            (C {<find>} {<'usr/share/logstash'>} {<-type>} {<f>} {<-name>} {<Id.Lit_Star '*'> <.bat>} 
              {<-exec>} {<rm>} {<-f>} {<Id.Lit_LBrace '{'> <Id.Lit_RBrace '}'>} 
              {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\;'>)}
            )
            (C {<find>} {<'usr/share/logstash'>} {<-type>} {<f>} {<-name>} 
              {<Id.Lit_Star '*'> <win32> <Id.Lit_Star '*'>} {<-exec>} {<rm>} {<-f>} {<Id.Lit_LBrace '{'> <Id.Lit_RBrace '}'>} 
              {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\;'>)}
            )
            (C {<find>} {<'usr/share/logstash'>} {<-type>} {<f>} {<-name>} 
              {<Id.Lit_Star '*'> <Win32> <Id.Lit_Star '*'>} {<-exec>} {<rm>} {<-f>} {<Id.Lit_LBrace '{'> <Id.Lit_RBrace '}'>} 
              {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\;'>)}
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<rm>} {<-rf>} 
                  {(DQ ($ Id.VSub_DollarName '$pkgdir')) <'/usr/share/logstash/vendor/jruby/lib/jni'>}
                )
                (command.ControlFlow
                  token: <Id.ControlFlow_Return return>
                  arg_word: {<1>}
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<sed>} {<-i>} {<-e>} 
                  {
                    (DQ <'s|# path.config:|path.config: '> ($ Id.VSub_DollarName '$confdir') 
                      <'/conf.d|'>
                    )
                  } {<-e>} {(DQ <'s|# path.logs:|path.logs: '> ($ Id.VSub_DollarName '$logdir') <'|'>)} {<-e>} 
                  {(DQ <'s|# path.data:|path.data: '> ($ Id.VSub_DollarName '$datadir') <'|'>)} {(DQ ($ Id.VSub_DollarName '$pkgdir') <'/'> ($ Id.VSub_DollarName '$confdir')) <'/logstash.yml'>}
                )
                (command.ControlFlow
                  token: <Id.ControlFlow_Return return>
                  arg_word: {<1>}
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<rmdir>} 
                  {(DQ ($ Id.VSub_DollarName '$pkgdir') <'/'> ($ Id.VSub_DollarName '$homedir')) 
                    <'/data'>
                  }
                )
                (command.ControlFlow
                  token: <Id.ControlFlow_Return return>
                  arg_word: {<1>}
                )
              ]
            )
            (C {<ln>} {<-s>} {(DQ ($ Id.VSub_DollarName '$datadir'))} 
              {(DQ ($ Id.VSub_DollarName '$pkgdir') <'/'> ($ Id.VSub_DollarName '$homedir')) 
                <'/data'>
              }
            )
            (C {<ln>} {<-s>} {(DQ ($ Id.VSub_DollarName '$logdir'))} 
              {(DQ ($ Id.VSub_DollarName '$pkgdir') <'/'> ($ Id.VSub_DollarName '$homedir')) 
                <'/logs'>
              }
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<sed>} {<-i>} {<-e>} 
                  {(DQ <'s|^-Xms.*|-Xms'> ($ Id.VSub_DollarName '$heapsize') <'|'>)} {<-e>} {(DQ <'s|^-Xmx.*|-Xmx'> ($ Id.VSub_DollarName '$heapsize') <'|'>)} 
                  {(DQ ($ Id.VSub_DollarName '$pkgdir') <'/'> ($ Id.VSub_DollarName '$confdir')) 
                    <'/jvm.options'>
                  }
                )
                (command.ControlFlow
                  token: <Id.ControlFlow_Return return>
                  arg_word: {<1>}
                )
              ]
            )
          ]
        )
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:sha512sums)
          op: assign_op.Equal
          rhs: 
            {
              (DQ 
                <
'79429494f9499cb1ed8567b2ae00b8e1d0e692304d880f88e65198f04ad7e29b942614c299efe36d1d1a2e50ef63d6e15cc6a2204f005808c5f79940ed7ec601  logstash-5.4.1.tar.gz\n'
                > 
                <
'94b18da3f0ef40f68118b27654563e7aa6dd4a3b90f0d8ad61a8be579d4be62c2bf1b192a32ee6140b81224343eeb442687539f6def1e725787b8cb96c0c70d1  logstash.confd\n'
                > 
                <
'828684ea0b9faa53ac51f7fb22bf73d862dc058d605f27958db6a8efbd10f5463a0837fa88b62a3964582c72fdd7ece434057a540b0924eae1fae17b9d5887b4  logstash.initd\n'
                > 
                <
'21609c8f44b31a5f298573be4b5c0fdcdc165e603a95c3626570fb6dd44dad114a74ee3f10fbd518f72b537a3d6bdcdbad09798c4bead0ee16f2a3b8e2b00ed3  logstash.conf\n'
                > 
                <
'180349d57a6a48be9052649425a945a07cf5e194d0f32f83567b460936729a70244d73c3495f8a318a3b98ac99a2848cadfbee5bd017da803c68c5140b6cd29d  logstash.profile'
                >
              )
            }
          spids: [733]
        )
      ]
    )
  ]
)