红色为修改部分

从aur 下载goagent.tar.gz解压

从code.google.com或者https://www.github.com/goagent/ 下载goagent-2.1.9.zip在重新打包为tar.gz

pkgname.daemon pkgname.service  goagent-2.1.9.tar.gz三个文件放在刚才解压的文件中也就是/tmp/goagent

**在用md5 **goagent-2.1.9.tar.gz 生成md5码 替换最后的那个代码伪造验证码

codewalker@codehost:/tmp/goagent

$ cat PKGBUILD 

# Maintainer: Felix Yan

# Contributor: cuihao

# Contributor: Guten  

pkgname=goagent

pkgver=2.1.9

pkgrel=1

pkgdesc=”A gae proxy forked from gappproxy/wallproxy”

arch=(“i686” “x86_64”)

url=”http://goagent.googlecode.com

license=(“GPL2”)

depends=(‘python2’ ‘python2-pyopenssl’)

optdepends=(

  ‘python26: (AUR) upload GAE code using /opt/server/uploader.zip’

  ‘python2-gevent-beta: (AUR) enable gevent support’

)

conflicts=(‘python2-gevent<=0.99’)

source=(

  “$pkgname.daemon”

  “$pkgname.service”

  “$pkgname-$pkgver.tar.gz

)

backup=(‘etc/goagent’)

install=’goagent.install’

build() {

  cd “$srcdir”

  

  rm -rf $pkgname

  mv goagent-$pkgver $pkgname

}

package() {

  cd “$srcdir/$pkgname”

  # python2 fix

  sed -i -re “1s/python2?/python2/“ local*.{vbs,dll,exe,manifest,bat}

  # remove CA.crt CA.key for security issues

  rm -f “$pkgdir/opt/goagent/local/CA.crt” “$pkgdir/opt/goagent/local/CA.key”

  # config file

  install -Dm644 “${pkgdir}/opt/goagent/local/proxy.ini” “${pkgdir}/etc/goagent”

  ln -sf “/etc/goagent” “${pkgdir}/opt/goagent/local/proxy.ini”

  # rc.d daemon

  install -Dm755 “${srcdir}/goagent.daemon” “${pkgdir}/etc/rc.d/goagent”

  # systemd service

  install -Dm644 “${srcdir}/goagent.service” “${pkgdir}/usr/lib/systemd/system/goagent.service”

}

# vim:set ts=2 sw=2 et:

md5sums=(‘94e66bb9673157bc7fcfc2e7d01be389’

         ‘a0223e4e436a4d5cc17f76fc1fbbc140’

         ‘faffee0d13aefba59f3997be2a5a1c8f’)