summaryrefslogtreecommitdiff
path: root/libre/parabola-hackers
diff options
context:
space:
mode:
Diffstat (limited to 'libre/parabola-hackers')
-rw-r--r--libre/parabola-hackers/PKGBUILD61
1 files changed, 61 insertions, 0 deletions
diff --git a/libre/parabola-hackers/PKGBUILD b/libre/parabola-hackers/PKGBUILD
new file mode 100644
index 000000000..266c413e2
--- /dev/null
+++ b/libre/parabola-hackers/PKGBUILD
@@ -0,0 +1,61 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+
+pkgbase=parabola-hackers
+pkgname=(parabola-hackers nshd)
+pkgver=20160516
+_gitver=a99b31c556020859a5440ffce5409499034f8382
+pkgdesc='Programs for doing magic with hackers.git'
+url='https://projects.parabola.nu/packages/parabola-hackers.git/'
+license=('GPL')
+
+pkgrel=1
+arch=('x86_64' 'i686')
+makedepends=('go')
+source=("https://repo.parabola.nu/other/$pkgbase/$pkgbase-$pkgver.tar.gz")
+md5sums=('4eb38ced2486ab2a3d2fc5b6c9b935c1')
+
+# Don't use mksource=(git://...) because we need --recursive
+mksource() {
+ cd "$srcdir"
+ git clone --recursive git://projects.parabola.nu/packages/parabola-hackers.git $pkgbase-$pkgver
+ cd $pkgbase-$pkgver
+ git checkout $_gitver
+ make generate
+}
+
+build() {
+ cd "$srcdir/$pkgbase-$pkgver"
+ make \
+ prefix='/usr' \
+ bindir='$(libexecdir)/$(PACKAGE)' \
+ libexecdir='$(libdir)' \
+ sysconfdir='/etc'
+}
+
+package_parabola-hackers() {
+ backup=(etc/$pkgbase.yml)
+ depends=('ruby')
+
+ cd "$srcdir/$pkgbase-$pkgver"
+ make DESTDIR="${pkgdir}" install \
+ prefix='/usr' \
+ bindir='$(libexecdir)/$(PACKAGE)' \
+ libexecdir='$(libdir)' \
+ sysconfdir='/etc'
+ find "$pkgdir" -type f -name 'nshd*' -delete
+ find "$pkgdir" -type d -empty -exec rmdir -p --ignore-fail-on-non-empty -- {} +
+}
+
+package_nshd() {
+ pkgdesc='NSS and PAM integration for parabola-hackers'
+ depends=("parabola-hackers=$pkgver" 'nss-pam-ldapd')
+
+ cd "$srcdir/$pkgbase-$pkgver"
+ make DESTDIR="${pkgdir}" install \
+ prefix='/usr' \
+ bindir='$(libexecdir)/$(PACKAGE)' \
+ libexecdir='$(libdir)' \
+ sysconfdir='/etc'
+ find "$pkgdir" -type f -not -name 'nshd*' -delete
+ find "$pkgdir" -type d -empty -exec rmdir -p --ignore-fail-on-non-empty -- {} +
+}