Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (36 sloc) 1.42 KB
# Maintainer: Greg Sutcliffe <greg.sutcliffe@gmail.com>>
pkgname=foreman-proxy
pkgver=1.2.0
pkgrel=1
pkgdesc="Manages DNS, DHCP, TFTP and Puppet though a HTTP Restful API. Used by foreman"
arch=('any')
url="http://theforeman.org"
license=('GPL3')
depends=('ruby-sinatra' 'iputils' 'ruby')
conflicts=('foreman-proxy-git')
backup=("etc/foreman-proxy/settings.yml")
options=(emptydirs)
install="foreman-proxy.install"
source=(https://github.com/theforeman/smart-proxy/archive/${pkgver}.tar.gz
foreman-proxy.systemd
foreman-proxy.tmpfiles.conf)
noextract=()
md5sums=('96ccc6870c456801219ad7db0636ccda'
'c99762a8f6a0594965f54dcab5cf726a'
'f6d26c35bf3b9a7c71105e72053785a1')
package() {
cd $srcdir/smart-proxy-${pkgver}
# Main codebase
install -d -m0755 $pkgdir/usr/share/foreman-proxy/
cp -r ./ $pkgdir/usr/share/foreman-proxy/
# Symlink config file to etc
install -Dp -m0644 config/settings.yml.example $pkgdir/etc/foreman-proxy/settings.yml
ln -sv /etc/foreman-proxy/settings.yml $pkgdir/usr/share/foreman-proxy/config/settings.yml
# logdirs
install -d -m0755 $pkgdir/usr/share/foreman-proxy/logs
install -d -m0755 $pkgdir/var/log/foreman-proxy
# systemd
install -Dm 644 $srcdir/foreman-proxy.systemd $pkgdir/usr/lib/systemd/system/foreman-proxy.service
install -Dm 644 $srcdir/foreman-proxy.tmpfiles.conf $pkgdir/usr/lib/tmpfiles.d/foreman-proxy.conf
}
# vim:set ts=2 sw=2 et: