summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Stepanov2015-06-19 10:58:30 +0300
committerKonstantin Stepanov2015-06-19 10:58:30 +0300
commitac55006254ec39e5a16d26f97b5ab90f473360ab (patch)
treeb62c2a2207eab1c1d7853957c59492ba4bb03b58
downloadaur-ac55006254ec39e5a16d26f97b5ab90f473360ab.tar.gz
import package from old aur
-rw-r--r--.SRCINFO30
-rw-r--r--PKGBUILD61
-rw-r--r--ajenti.install9
3 files changed, 100 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6a194e3c863
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,30 @@
+pkgbase = ajenti-git
+ pkgdesc = An easy server administration frontend.
+ pkgver = 1.2.21.32.g83672a0
+ pkgrel = 1
+ url = http://github.com/Eugeny/ajenti/
+ install = ajenti.install
+ arch = any
+ license = LGPL
+ makedepends = git
+ makedepends = coffee-script
+ makedepends = lessc
+ makedepends = yuicompressor
+ depends = python2-gevent-socketio
+ depends = python2-lxml
+ depends = python2-passlib
+ depends = python2-psutil
+ depends = python2-daemon
+ depends = python2-catcher
+ depends = python2-reconfigure
+ depends = python2-pyopenssl
+ depends = python2-pillow
+ depends = python2-exconsole
+ optdepends = python2-ldap: Active Directory and LDAP authorization support
+ optdepends = python2-dbus: Services Management using Upstart and/or SystemD
+ backup = etc/ajenti/config.json
+ source = ajenti-git::git+https://github.com/Eugeny/ajenti.git#branch=master
+ md5sums = SKIP
+
+pkgname = ajenti-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..bd4dbcb6946
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,61 @@
+# Maintainer: Konstantin Stepanov <me@kstep.me>
+
+pkgname=ajenti-git
+pkgver=1.2.21.32.g83672a0
+pkgrel=1
+pkgdesc='An easy server administration frontend.'
+arch=(any)
+url="http://github.com/Eugeny/ajenti/"
+license=(LGPL)
+depends=(python2-gevent-socketio python2-lxml python2-passlib python2-psutil python2-daemon
+ python2-catcher python2-reconfigure python2-pyopenssl python2-pillow python2-exconsole)
+makedepends=(git coffee-script lessc yuicompressor)
+optdepends=(
+ 'python2-ldap: Active Directory and LDAP authorization support'
+ 'python2-dbus: Services Management using Upstart and/or SystemD'
+)
+install=ajenti.install
+source=("$pkgname::git+https://github.com/Eugeny/ajenti.git#branch=master")
+md5sums=(SKIP)
+backup=(etc/ajenti/config.json)
+
+pkgver() {
+ cd ${srcdir}/${pkgname}
+ git describe --always --tags | sed 's/-/./g'
+}
+
+prepare() {
+ cd ${srcdir}/${pkgname}
+
+ msg2 'Replacing python shebang by python2 shebang...'
+ find . -name ".*" -prune -o -type f -exec sed -i \
+ -e '1s|^#!/usr/bin/env python$|#!/usr/bin/env python2|' \
+ -e '1s|^#!/usr/bin/python$|#!/usr/bin/env python2|' \
+ "{}" \;
+}
+
+build() {
+ cd ${srcdir}/${pkgname}
+
+ python2 setup.py build
+ python2 compile_resources.py
+ python2 make_messages.py compile
+ #make tgz
+
+ #cd ${srcdir}/${pkgname}-${pkgver}/dist
+ #tar xzf ${pkgname}-${pkgver}.tar.gz
+}
+
+package() {
+ cd ${srcdir}/${pkgname}
+ # cd ${srcdir}/${pkgname}-${pkgver}/dist/${pkgname}-${pkgver}
+
+ python2 setup.py install --root=${pkgdir} --optimize=1
+
+ # Fix config file permissions
+ chmod 0640 ${pkgdir}/etc/ajenti/config.json
+
+ rm -r ${pkgdir}/etc/init.d
+
+ install -D -m 644 ${srcdir}/${pkgname}/packaging/files/ajenti.service ${pkgdir}/usr/lib/systemd/system/ajenti.service
+}
diff --git a/ajenti.install b/ajenti.install
new file mode 100644
index 00000000000..f3e0a01ff53
--- /dev/null
+++ b/ajenti.install
@@ -0,0 +1,9 @@
+post_install() {
+ echo 'Ajenti is listening by default on port 8000.'
+}
+
+post_remove() {
+ echo 'Perhaps you want to look in /var/backups and /var/lib/ajenti'
+ echo 'for leftover files. This is where ajenti stores backups of'
+ echo 'configuration files and plugins.'
+}