Date: Friday, September 27, 2019 @ 19:25:54 Author: felixonmars Revision: 511943
archrelease: copy trunk to community-x86_64 Added: webhook/repos/community-x86_64/PKGBUILD (from rev 511942, webhook/trunk/PKGBUILD) webhook/repos/community-x86_64/webhook.service (from rev 511942, webhook/trunk/webhook.service) Deleted: webhook/repos/community-x86_64/PKGBUILD webhook/repos/community-x86_64/webhook.service -----------------+ PKGBUILD | 92 +++++++++++++++++++++++++++--------------------------- webhook.service | 24 +++++++------- 2 files changed, 58 insertions(+), 58 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-09-27 19:25:26 UTC (rev 511942) +++ PKGBUILD 2019-09-27 19:25:54 UTC (rev 511943) @@ -1,46 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgname=webhook -pkgver=2.6.9 -pkgrel=2 -pkgdesc="A lightweight incoming webhook server to run shell commands" -arch=('x86_64') -url="https://github.com/adnanh/webhook" -license=('MIT') -depends=('glibc') -makedepends=('go-pie' 'git') -source=("$pkgname-$pkgver.tar.gz::https://github.com/adnanh/webhook/archive/$pkgver.tar.gz" - webhook.service - go.uuid.patch::https://github.com/adnanh/webhook/pull/321.patch) -sha512sums=('ccbfad6e2b9dfb77c4763a9b66e6a56f4e463b047fbedd6ffca4e61112ce3444696fae08a4e513f8778adc3d23ba9935b778ed35fdb3075bba73095f3d7cb311' - '4b08e6348a7e51aa4df668f1541f12e08960801d2e039b480de6ad73d26b8c325012474f83a3c8e819caafc216535c0b259aed1daf2226d545f895d0bd3d8efe' - 'fd66e890167fd620aed3df57dceb251460ac13e67b1c64e13d7a2628720703cf08977d61a8a30bf19988cfd273c2aa221ca98448f280fc5c35343a08d145c46f') - -prepare() { - cd webhook-$pkgver - patch -p1 -i ../go.uuid.patch - - mkdir -p .gopath/src/github.com/adnanh - ln -sf "$PWD" .gopath/src/github.com/adnanh/webhook - export GOPATH="$PWD/.gopath:/usr/share/gocode" - - rm -r vendor - - go get github.com/codegangsta/negroni github.com/gorilla/mux github.com/satori/go.uuid \ - gopkg.in/fsnotify.v1 github.com/ghodss/yaml -} - -build() { - cd "$srcdir"/webhook-$pkgver - go build -o build/webhook -} - -package() { - cd webhook-$pkgver - - install -Dm755 build/webhook "$pkgdir"/usr/bin/webhook - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE - - install -dm755 "$pkgdir"/etc/webhook - install -Dm644 "$srcdir"/webhook.service "$pkgdir"/usr/lib/systemd/system/webhook.service -} Copied: webhook/repos/community-x86_64/PKGBUILD (from rev 511942, webhook/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-09-27 19:25:54 UTC (rev 511943) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=webhook +pkgver=2.6.10 +pkgrel=1 +pkgdesc="A lightweight incoming webhook server to run shell commands" +arch=('x86_64') +url="https://github.com/adnanh/webhook" +license=('MIT') +depends=('glibc') +makedepends=('go-pie' 'git') +source=("$pkgname-$pkgver.tar.gz::https://github.com/adnanh/webhook/archive/$pkgver.tar.gz" + webhook.service + go.uuid.patch::https://github.com/adnanh/webhook/pull/321.patch) +sha512sums=('158c71104dcfcf0b65ee6f511912523992f4b70394b4e6f9206ab3615a980662c3a821ce4f10fadcdbc1e604dd67cf7253115612af3194d1358dc6be4d5ddf0e' + '4b08e6348a7e51aa4df668f1541f12e08960801d2e039b480de6ad73d26b8c325012474f83a3c8e819caafc216535c0b259aed1daf2226d545f895d0bd3d8efe' + 'fd66e890167fd620aed3df57dceb251460ac13e67b1c64e13d7a2628720703cf08977d61a8a30bf19988cfd273c2aa221ca98448f280fc5c35343a08d145c46f') + +prepare() { + cd webhook-$pkgver + patch -p1 -i ../go.uuid.patch + + mkdir -p .gopath/src/github.com/adnanh + ln -sf "$PWD" .gopath/src/github.com/adnanh/webhook + export GOPATH="$PWD/.gopath:/usr/share/gocode" + + rm -r vendor + + go get github.com/codegangsta/negroni github.com/gorilla/mux github.com/satori/go.uuid \ + gopkg.in/fsnotify.v1 github.com/ghodss/yaml +} + +build() { + cd "$srcdir"/webhook-$pkgver + go build -o build/webhook +} + +package() { + cd webhook-$pkgver + + install -Dm755 build/webhook "$pkgdir"/usr/bin/webhook + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + + install -dm755 "$pkgdir"/etc/webhook + install -Dm644 "$srcdir"/webhook.service "$pkgdir"/usr/lib/systemd/system/webhook.service +} Deleted: webhook.service =================================================================== --- webhook.service 2019-09-27 19:25:26 UTC (rev 511942) +++ webhook.service 2019-09-27 19:25:54 UTC (rev 511943) @@ -1,12 +0,0 @@ -[Unit] -Description=Webhook Service -After=network.target -Wants=network.target - -[Service] -Type=simple -ExecStart=/usr/bin/webhook -hooks /etc/webhook/hooks.json -verbose -Restart=on-failure - -[Install] -WantedBy=multi-user.target Copied: webhook/repos/community-x86_64/webhook.service (from rev 511942, webhook/trunk/webhook.service) =================================================================== --- webhook.service (rev 0) +++ webhook.service 2019-09-27 19:25:54 UTC (rev 511943) @@ -0,0 +1,12 @@ +[Unit] +Description=Webhook Service +After=network.target +Wants=network.target + +[Service] +Type=simple +ExecStart=/usr/bin/webhook -hooks /etc/webhook/hooks.json -verbose +Restart=on-failure + +[Install] +WantedBy=multi-user.target