Date: Thursday, May 23, 2013 @ 04:33:36 Author: fyan Revision: 91474 archrelease: copy trunk to community-testing-any
Added: goagent/repos/community-testing-any/ goagent/repos/community-testing-any/PKGBUILD (from rev 91473, goagent/trunk/PKGBUILD) goagent/repos/community-testing-any/goagent.install (from rev 91473, goagent/trunk/goagent.install) goagent/repos/community-testing-any/goagent.service (from rev 91473, goagent/trunk/goagent.service) -----------------+ PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ goagent.install | 22 ++++++++++++++++++++++ goagent.service | 12 ++++++++++++ 3 files changed, 75 insertions(+) Copied: goagent/repos/community-testing-any/PKGBUILD (from rev 91473, goagent/trunk/PKGBUILD) =================================================================== --- community-testing-any/PKGBUILD (rev 0) +++ community-testing-any/PKGBUILD 2013-05-23 02:33:36 UTC (rev 91474) @@ -0,0 +1,41 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@gmail.com> +# Contributor: cuihao <cuihao dot leo at gmail dot com> +# Contributor: Guten <ywzhai...@gmail.com> + +pkgname=goagent +pkgver=3.0.0 +pkgrel=1 +pkgdesc="A gae proxy forked from gappproxy/wallproxy" +arch=("any") +url="http://goagent.googlecode.com" +license=("GPL2") +depends=('python' 'python-pyopenssl') +optdepends=('python2: if you want to use uploader.zip to upload server') +source=(https://github.com/goagent/goagent/archive/v$pkgver.tar.gz + $pkgname.service) +backup=('etc/goagent') +install=goagent.install + +package() { + cd "$srcdir/$pkgbase-$pkgver" + + install -Dm755 local/proxy.py "$pkgdir/usr/share/$pkgname/local/proxy.py" + install -Dm644 local/proxy.pac "$pkgdir/usr/share/$pkgname/local/proxy.pac" + install -Dm644 local/cacert.pem "$pkgdir/usr/share/$pkgname/local/cacert.pem" + install -Dm644 local/SwitchyOptions.bak "$pkgdir/usr/share/$pkgname/local/SwitchyOptions.bak" + install -Dm644 local/SwitchySharp_1_9_52.crx "$pkgdir/usr/share/$pkgname/local/SwitchySharp_1_9_52.crx" + + install -Dm644 local/proxy.ini "$pkgdir/etc/goagent" + ln -sf "/etc/goagent" "${pkgdir}/usr/share/$pkgname/local/proxy.ini" + + cp -r server "$pkgdir/usr/share/$pkgname/" + rm "$pkgdir/usr/share/$pkgname/server/uploader.exe" + + # systemd service + install -Dm644 "${srcdir}/goagent.service" "${pkgdir}/usr/lib/systemd/system/goagent.service" +} + +# vim:set ts=2 sw=2 et: +sha512sums=('bb51be21fea89c84d1466c3a2a629b7b86dfd814a81f2eaedb653a7ddaa060c859d343daf3057cdc77244fd276593dbdab46cebeef6f005ad1fd145cda15aa45' + 'b8f5f6342303edd520a577d0348deef7017ba79aa5c6f43c4e1c368d7b204f6364f4537f2a5e21f3b63a321bdcf3d407e5dea9883211c11a4d11801b057cddc2') Copied: goagent/repos/community-testing-any/goagent.install (from rev 91473, goagent/trunk/goagent.install) =================================================================== --- community-testing-any/goagent.install (rev 0) +++ community-testing-any/goagent.install 2013-05-23 02:33:36 UTC (rev 91474) @@ -0,0 +1,22 @@ +post_install() { + echo "Please use systemd units to start/stop goagent:" + echo "sudo systemctl start/stop goagent" + + #cd /opt/goagent/local + #python2 -c 'from proxy import CertUtil; CertUtil.check_ca()' + chown -R nobody:daemon /usr/share/goagent/local +} + +post_upgrade() { + post_install +} + +pre_upgrade() { + rm -rf /opt/goagent/local/certs + rm -rf /usr/share/goagent/local/certs +} + +pre_remove() { + rm -rf /opt/goagent/local/certs + rm -rf /usr/share/goagent/local/certs +} Copied: goagent/repos/community-testing-any/goagent.service (from rev 91473, goagent/trunk/goagent.service) =================================================================== --- community-testing-any/goagent.service (rev 0) +++ community-testing-any/goagent.service 2013-05-23 02:33:36 UTC (rev 91474) @@ -0,0 +1,12 @@ +[Unit] +Description=GoAgent Service +After=network.target + +[Service] +Type=simple +User=nobody +ExecStart=/usr/share/goagent/local/proxy.py + +[Install] +WantedBy=multi-user.target +