summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChris Fordham2016-02-13 17:25:23 +1100
committerChris Fordham2016-02-13 17:25:23 +1100
commit68c3a5638ea86b0e0bdd62be52a5a67a7c29a1b8 (patch)
tree36ec00d3586342432ee1f43b707484357a59d573 /PKGBUILD
downloadaur-68c3a5638ea86b0e0bdd62be52a5a67a7c29a1b8.tar.gz
Add rightlink-bin package.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..33be6e4ffa3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Chris Fordham <chris [at] fordham [hyphon] nagy [dot] id [dot] au> aka flaccid
+
+pkgname=rightlink-bin
+pkgver=10.3.0
+pkgrel=1
+pkgdesc="RightLink version 10 (RL10) is a new version of RightScale's server agent that connects servers managed through RightScale to the RightScale cloud management platform."
+license=('RightScale')
+arch=('x86_64')
+url="http://docs.rightscale.com/release-notes/right-link-10.html"
+license=(RightScale)
+conflicts=(rightscale)
+replaces=(rightscale)
+depends=('cloud-init')
+provides=('rightlink')
+source=("https://rightlink.rightscale.com/rll/$pkgver/rightlink.tgz")
+md5sums=('22080fefbc3c46790bcd29f7261f50e1')
+install='rightlink.install'
+options=(emptydirs strip !docs !libtool !staticlibs)
+
+package() {
+ install -D -m755 "$srcdir/rightlink/rightlink" "$pkgdir/usr/bin/rightlink"
+ install -D -m755 "$srcdir/rightlink/rightlink" "$pkgdir/usr/bin/rsc"
+ install -D -m644 "$srcdir/rightlink/rightlink.service" "$pkgdir/usr/lib/systemd/system/rightlink.service"
+ install -D -m440 "$startdir/90-rightscale" "$pkgdir/etc/sudoers.d/90-rightscale"
+
+ # add a symlink for the binary in /usr/local/bin to support
+ # the systemd service included in the source
+ install -d "$pkgdir/usr/local/bin"
+ cd "$pkgdir/usr/local/bin"
+ ln -sf /usr/bin/rightlink ./rightlink
+
+ # ensure these folders match standard permissions on filesystem
+ chmod 750 "$pkgdir/etc/sudoers.d"
+}
+
+# vim:set ts=2 sw=2 et: