Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add armv6h to ruby-shadow

  • Loading branch information...
commit c53aef5c471cb925681d976b22dfb57cdca1d6e9 1 parent 8972dd8
@GregSutcliffe authored
View
46 foreman/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Greg Sutcliffe <greg.sutcliffe@gmail.com>>
+
+pkgname=foreman
+pkgver=1.1
+pkgrel=1
+pkgdesc="Infrastruce management app built on Ruby-on_rails. Integrates with Puppet for complete lifecycle management or real or virtual servers"
+arch=('any')
+url="http://theforeman.org"
+license=('GPL3')
+depends=('ruby' 'ruby-bundler')
+conflicts=('foreman-git')
+backup=("etc/foreman/settings.yaml")
+options=(emptydirs)
+install="foreman.install"
+source=(https://github.com/theforeman/foreman/archive/${pkgver}.tar.gz
+ foreman.systemd
+ foreman.tmpfiles.conf)
+noextract=()
+md5sums=('defdfd2daec51abca4aee4ff6c68199c'
+ 'c99762a8f6a0594965f54dcab5cf726a'
+ 'f6d26c35bf3b9a7c71105e72053785a1')
+
+package() {
+ cd $srcdir/foreman-${pkgver}
+
+ # Main codebase
+ install -d -m0755 $pkgdir/usr/share/foreman/
+ cp -r ./ $pkgdir/usr/share/foreman/
+
+ # Symlink config file to etc
+ install -Dp -m0644 config/settings.yaml.example $pkgdir/etc/foreman/settings.yaml
+ ln -sv /etc/foreman/settings.yaml $pkgdir/usr/share/foreman/config/settings.yaml
+ install -Dp -m0644 config/database.yaml.example $pkgdir/etc/foreman/database.yaml
+ ln -sv /etc/foreman/database.yaml $pkgdir/usr/share/foreman/config/database.yaml
+
+ # logdirs
+ install -d -m0755 $pkgdir/usr/share/foreman/logs
+ install -d -m0755 $pkgdir/var/log/foreman
+
+ # systemd
+ install -Dm 644 $srcdir/foreman.systemd $pkgdir/usr/lib/systemd/system/foreman.service
+ install -Dm 644 $srcdir/foreman.tmpfiles.conf $pkgdir/usr/lib/tmpfiles.d/foreman.conf
+
+}
+
+# vim:set ts=2 sw=2 et:
View
39 foreman/foreman.install
@@ -0,0 +1,39 @@
+# Foreman-proxy: Installer: Arch
+# Maintainer: Greg Sutcliffe <greg.sutcliffe@gmail.com>>
+
+pre_install() {
+ # Add the "foreman-proxy" user and group
+ getent group foreman-proxy &>/dev/null || groupadd -r foreman-proxy &>/dev/null
+ getent passwd foreman-proxy &>/dev/null || useradd -r -g foreman-proxy -d /usr/share/foreman-proxy -s /sbin/nologin -c "Foreman Proxy deamon user" foreman-proxy &>/dev/null || :
+}
+
+post_install() {
+ chown -R foreman-proxy:foreman-proxy /usr/share/foreman-proxy
+ chown -R foreman-proxy:foreman-proxy /var/log/foreman-proxy
+ /usr/bin/systemd-tmpfiles --create foreman-proxy.conf
+ /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
+}
+
+pre_upgrade() {
+ pre_install
+ usermod -d /usr/share/foreman-proxy foreman-proxy &>/dev/null || :
+}
+
+post_upgrade() {
+ chown -R foreman-proxy:foreman-proxy /usr/share/foreman-proxy
+ chown -R foreman-proxy:foreman-proxy /var/log/foreman-proxy
+}
+
+pre_remove() {
+ # Cleanup tmpfiles
+ rm -rf /usr/share/foreman-proxy/tmp
+ /usr/bin/systemctl --no-reload disable foreman-proxy.service >/dev/null 2>&1 || :
+ /usr/bin/systemctl stop foreman-proxy.service >/dev/null 2>&1 || :
+}
+
+post_remove() {
+ /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
+ # Remove user and group
+ groupdel foreman-proxy >/dev/null 2>&1
+ userdel foreman-proxy
+}
View
13 foreman/foreman.systemd
@@ -0,0 +1,13 @@
+[Unit]
+Description=Foreman Proxy
+Wants=basic.target
+After=basic.target network.target
+
+[Service]
+Type=forking
+User=foreman-proxy
+ExecStart=/usr/share/foreman-proxy/bin/smart-proxy
+PIDFile=/run/foreman-proxy/foreman-proxy.pid
+
+[Install]
+WantedBy=multi-user.target
View
1  foreman/foreman.tmpfiles.conf
@@ -0,0 +1 @@
+d /run/foreman-proxy 0755 foreman-proxy foreman-proxy -
View
4 ruby-shadow/PKGBUILD
@@ -1,9 +1,9 @@
# Maintainer: Thomas S Hatch <thatch45@gmail.com>
pkgname=ruby-shadow
pkgver=2.1.4
-pkgrel=5
+pkgrel=6
pkgdesc="Interface for shadow passwords for Ruby"
-arch=(i686 x86_64 arm)
+arch=(i686 x86_64 arm armv6h)
depends=('ruby')
license=('publicdomain')
url=('https://github.com/apalmblad/ruby-shadow.git')
Please sign in to comment.
Something went wrong with that request. Please try again.