summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-01-12 04:23:33 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2011-01-12 04:23:44 -0600
commita7a6a94120b4415aa814ac223b63b5723e1666ab (patch)
tree8d20368dc29a99ff697314592e6cb4fa8b124dbb /testing
parent1c77aa8252bd2ee2f2eafe0bde0dfac104cbe5b6 (diff)
downloadaports-a7a6a94120b4415aa814ac223b63b5723e1666ab.tar.bz2
aports-a7a6a94120b4415aa814ac223b63b5723e1666ab.tar.xz
testing/jwhois: new aport.
Diffstat (limited to 'testing')
-rw-r--r--testing/jwhois/APKBUILD42
-rw-r--r--testing/jwhois/jwhois-libiconv.patch10
2 files changed, 52 insertions, 0 deletions
diff --git a/testing/jwhois/APKBUILD b/testing/jwhois/APKBUILD
new file mode 100644
index 000000000..4bcfed7ff
--- /dev/null
+++ b/testing/jwhois/APKBUILD
@@ -0,0 +1,42 @@
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=jwhois
+pkgver=4.0
+pkgrel=0
+pkgdesc="WHOIS/RWHOIS client"
+url="http://www.gnu.org/software/jwhois/"
+arch="x86 x86_64"
+license="GPL"
+depends=
+makedepends="libiconv-dev autoconf automake libtool"
+install=
+subpackages="$pkgname-doc"
+source="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz
+ jwhois-libiconv.patch"
+arch="all"
+
+_builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ patch -p1 < "$srcdir/jwhois-libiconv.patch"
+ autoreconf
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/ \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --disable-nls \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+md5sums="977d0ba90ee058a7998c94d933fc9546 jwhois-4.0.tar.gz
+f861d1891a718f3b370e1ac032b0b337 jwhois-libiconv.patch"
diff --git a/testing/jwhois/jwhois-libiconv.patch b/testing/jwhois/jwhois-libiconv.patch
new file mode 100644
index 000000000..31c54bdf4
--- /dev/null
+++ b/testing/jwhois/jwhois-libiconv.patch
@@ -0,0 +1,10 @@
+--- jwhois-4.0/src/Makefile.am
++++ jwhois-4.0.mod/src/Makefile.am
+@@ -23,6 +23,7 @@
+ getopt.c getopt1.c jconfig.c string.c cache.c rwhois.c jwhois.c \
+ whois.c http.c
+
++LIBS += @LIBICONV@
+ jwhois_LIBS = @LIBINTL@ @LIBICONV@ @LIBS@
+
+ jwhois_CFLAGS = $(OLDCFLAGS) -DSYSCONFDIR="\"$(sysconfdir)\"" \