From 83be5d23a4dc3730cf880135c31f27825b20e9c0 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 15 Jun 2016 22:42:06 -0400 Subject: add libre/parabola-hackers --- libre/parabola-hackers/PKGBUILD | 61 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 libre/parabola-hackers/PKGBUILD (limited to 'libre') 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 + +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 -- {} + +} -- cgit v1.2.3