Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Don't use use a VCS pkgbuild for a static package

  • Loading branch information...
commit cd29a4d8a3cdcfaa1b7776c921433831d8ed9a63 1 parent d695d68
Greg Sutcliffe authored

Showing 1 changed file with 9 additions and 28 deletions. Show diff stats Hide diff stats

  1. +9 28 foreman-proxy/PKGBUILD
37 foreman-proxy/PKGBUILD
... ... @@ -1,46 +1,27 @@
1 1 # Maintainer: Greg Sutcliffe <greg.sutcliffe@gmail.com>>
2 2
3 3 pkgname=foreman-proxy
4   -pkgver=1.1_0.1rc1
5   -pkgrel=1
  4 +pkgver=1.1RC1
  5 +pkgrel=2
6 6 pkgdesc="Manages DNS, DHCP, TFTP and Puppet though a HTTP Restful API. Used by foreman"
7 7 arch=('any')
8 8 url="http://theforeman.org"
9 9 license=('GPL3')
10 10 depends=('ruby-sinatra' 'iputils' 'ruby')
11   -makedepends=('git')
12   -provides=('foreman-proxy')
13   -conflicts=('foreman-proxy')
  11 +conflicts=('foreman-proxy-git')
14 12 backup=("etc/foreman-proxy/settings.yml")
15 13 options=(emptydirs)
16 14 install="foreman-proxy.install"
17   -source=('foreman-proxy.systemd'
18   - 'foreman-proxy.tmpfiles.conf')
  15 +source=(https://github.com/theforeman/smart-proxy/archive/${pkgver}.tar.gz
  16 + foreman-proxy.systemd
  17 + foreman-proxy.tmpfiles.conf)
19 18 noextract=()
20   -md5sums=('c99762a8f6a0594965f54dcab5cf726a'
  19 +md5sums=('34c832837326825a7eec649de49eb27f'
  20 + 'c99762a8f6a0594965f54dcab5cf726a'
21 21 'f6d26c35bf3b9a7c71105e72053785a1')
22 22
23   -_gitroot=https://github.com/theforeman/smart-proxy.git
24   -_gitname=foreman-proxy
25   -_gitbranch=c60b9b257893aca558c3c0bc628be06c86d1a434
26   -
27   -build() {
28   - cd "$srcdir"
29   - msg "Connecting to GIT server...."
30   -
31   - if [[ -d "$_gitname" ]]; then
32   - cd "$_gitname" && git pull origin && git reset "$_gitbranch" --hard
33   - msg "The local files are updated."
34   - else
35   - git clone "$_gitroot" "$_gitname"
36   - fi
37   -
38   - msg "GIT checkout done or server timeout"
39   -
40   -}
41   -
42 23 package() {
43   - cd "$srcdir/$_gitname"
  24 + cd $srcdir/smart-proxy-${pkgver}
44 25
45 26 # Main codebase
46 27 install -d -m0755 $pkgdir/usr/share/foreman-proxy/

0 comments on commit cd29a4d

Please sign in to comment.
Something went wrong with that request. Please try again.