diff options
-rw-r--r-- | testing/ldapvi/APKBUILD | 56 | ||||
-rw-r--r-- | testing/ldapvi/GNUmakefile.in.diff | 17 | ||||
-rw-r--r-- | testing/ldapvi/ldapvi_getline.patch | 36 | ||||
-rw-r--r-- | testing/ldapvi/ldapvi_vim_modeline_fix.patch | 11 |
4 files changed, 120 insertions, 0 deletions
diff --git a/testing/ldapvi/APKBUILD b/testing/ldapvi/APKBUILD new file mode 100644 index 0000000000..f31c6cb836 --- /dev/null +++ b/testing/ldapvi/APKBUILD @@ -0,0 +1,56 @@ +# Contributor: ScrumpyJack <scrumpyjack@me.com> +# Maintainer: +pkgname=ldapvi +pkgver=1.7 +pkgrel=0 +pkgdesc="ldapvi is an interactive LDAP client for Unix terminals" +url="http://www.lichteblau.com/ldapvi/" +arch="all" +license="GNU" +depends="" +depends_dev="openldap-dev popt-dev readline-dev glib-dev" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-doc" +source="http://www.lichteblau.com/download/${pkgname}-${pkgver}.tar.gz + GNUmakefile.in.diff + ldapvi_vim_modeline_fix.patch + ldapvi_getline.patch" + +_builddir=$srcdir/${pkgname}-${pkgver} +prepare() { + local i + cd "$_builddir" + patch -Np0 -i "$srcdir"/GNUmakefile.in.diff + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr + make +} + +package() { + cd "$_builddir" + mkdir -p "$pkgdir/usr/bin" "$pkgdir/usr/share/doc/ldapvi" \ + "$pkgdir/usr/share/man/man1" + make DESTDIR="$pkgdir" MANDIR="$pkgdir"/usr/share/man/man1 \ + DOCDIR="$pkgdir/usr/share/doc/ldapvi" install || return 1 +} +md5sums="6dc2f5441ac5f1e2b5b036e3521012cc ldapvi-1.7.tar.gz +615743d94e3353f0d0f72ba488746e04 GNUmakefile.in.diff +fbd6e48d389196b73f1a38be5539a47d ldapvi_vim_modeline_fix.patch +b58b3b443368002ef78aefb6c3c14a05 ldapvi_getline.patch" +sha256sums="6f62e92d20ff2ac0d06125024a914b8622e5b8a0a0c2d390bf3e7990cbd2e153 ldapvi-1.7.tar.gz +a8ea4025c97489f35478b8f8fdd5b4c19adb90ae5c6b51157797ce38a83f8d72 GNUmakefile.in.diff +8ef83d5a74288edb0aeef9bb07ebe9d2866cfa2c960c891953016536f8016e8d ldapvi_vim_modeline_fix.patch +6b6571bdfaf8c2b20da3a44cdc136453e6a904a405262e97dedfef0d089661e1 ldapvi_getline.patch" +sha512sums="4b38cee0763aa33703afbd5e358a458b1468abf58e43ea885879b2117bc1c0bbc375d91c6a43467ec08035b8b3b7dd4b024f2937c37741c7a5513ea9192aed36 ldapvi-1.7.tar.gz +f97bd3c285fc9f76970af7f82bb7adaca70e4bcad634c06b07171afbad6ef83526aca4b6840a66d78ed7cb9b9040a91756c860364f97c45561c88cc4f827fb02 GNUmakefile.in.diff +df070ac52c0046378909dada3c017d23f49a20ea36cbc6df349a830678acce7524266da191b47d8a6b6dd95a9a0399a0ce826e44766e44fba9e75d356cd69960 ldapvi_vim_modeline_fix.patch +34fd4ce7432a578ae5b3ec4c82a369410b5bda4daac4da70d7e176b49fed57f5e8a8bd5255a4dd348be9fc9f6a12c1d1adc2a9fd547cc8ea05b25dd9c66b8f28 ldapvi_getline.patch" diff --git a/testing/ldapvi/GNUmakefile.in.diff b/testing/ldapvi/GNUmakefile.in.diff new file mode 100644 index 0000000000..67bb1e6d64 --- /dev/null +++ b/testing/ldapvi/GNUmakefile.in.diff @@ -0,0 +1,17 @@ +--- GNUmakefile.in 2006-11-04 13:53:40.000000000 +0100 ++++ GNUmakefile.in.new 2006-12-28 00:29:18.000000000 +0100 +@@ -25,10 +25,10 @@ + + .PHONY: install + install: ldapvi +- mkdir -p @bindir@ @mandir@/man1/ @prefix@/share/doc/ldapvi +- @INSTALL_PROGRAM@ ldapvi @bindir@ +- @INSTALL_PROGRAM@ -m 644 ldapvi.1 @mandir@/man1/ +- @INSTALL_PROGRAM@ -m 644 manual/manual.css manual/manual.xml manual/bg.png manual/html.xsl @prefix@/share/doc/ldapvi ++ mkdir -p $(DESTDIR)@bindir@ $(DESTDIR)@mandir@/man1/ $(DESTDIR)@prefix@/share/doc/ldapvi ++ @INSTALL_PROGRAM@ ldapvi $(DESTDIR)@bindir@ ++ @INSTALL_PROGRAM@ -m 644 ldapvi.1 $(DESTDIR)@mandir@/man1/ ++ @INSTALL_PROGRAM@ -m 644 manual/manual.css manual/manual.xml manual/bg.png manual/html.xsl $(DESTDIR)@prefix@/share/doc/ldapvi + + distclean: + rm -rf configure GNUmakefile config.h config.log autom4te.cache config.status diff --git a/testing/ldapvi/ldapvi_getline.patch b/testing/ldapvi/ldapvi_getline.patch new file mode 100644 index 0000000000..f839107b3d --- /dev/null +++ b/testing/ldapvi/ldapvi_getline.patch @@ -0,0 +1,36 @@ +diff -uNr ldapvi-1.7.orig/common.h ldapvi-1.7/common.h +--- ldapvi-1.7.orig/common.h 2007-05-05 12:17:26.000000000 +0200 ++++ ldapvi-1.7/common.h 2009-06-20 18:51:31.000000000 +0200 +@@ -273,7 +273,7 @@ + char *home_filename(char *name); + void read_ldapvi_history(void); + void write_ldapvi_history(void); +-char *getline(char *prompt, char *value); ++char *ldapvi_getline(char *prompt, char *value); + char *get_password(); + char *append(char *a, char *b); + void *xalloc(size_t size); +diff -uNr ldapvi-1.7.orig/ldapvi.c ldapvi-1.7/ldapvi.c +--- ldapvi-1.7.orig/ldapvi.c 2007-05-05 12:17:26.000000000 +0200 ++++ ldapvi-1.7/ldapvi.c 2009-06-20 18:51:31.000000000 +0200 +@@ -470,7 +470,7 @@ + bo->authmethod = LDAP_AUTH_SASL; + puts("Switching to SASL authentication."); + } +- bo->sasl_mech = getline("SASL mechanism", bo->sasl_mech); ++ bo->sasl_mech = ldapvi_getline("SASL mechanism", bo->sasl_mech); + } + + static int +diff -uNr ldapvi-1.7.orig/misc.c ldapvi-1.7/misc.c +--- ldapvi-1.7.orig/misc.c 2007-05-05 12:17:26.000000000 +0200 ++++ ldapvi-1.7/misc.c 2009-06-20 18:51:31.000000000 +0200 +@@ -315,7 +315,7 @@ + } + + char * +-getline(char *prompt, char *value) ++ldapvi_getline(char *prompt, char *value) + { + tdialog d; + init_dialog(&d, DIALOG_DEFAULT, prompt, value); diff --git a/testing/ldapvi/ldapvi_vim_modeline_fix.patch b/testing/ldapvi/ldapvi_vim_modeline_fix.patch new file mode 100644 index 0000000000..b91bff4894 --- /dev/null +++ b/testing/ldapvi/ldapvi_vim_modeline_fix.patch @@ -0,0 +1,11 @@ +--- ldapvi-1.7.orig/ldapvi.c 2014-05-07 15:43:26.727507056 +0400 ++++ ldapvi-1.7/ldapvi.c 2014-05-07 15:43:07.787295850 +0400 +@@ -1414,7 +1414,7 @@ + int nlines = 0; + + if (print_binary_mode == PRINT_UTF8 && !cmdline->ldif) { +- fputs("# -*- coding: utf-8 -*- vim:encoding=utf-8:\n", s); ++ fputs("# -*- coding: utf-8 -*- \n", s); + nlines++; + } + if (cmdline->ldif) { |