summaryrefslogtreecommitdiff
path: root/www/bozohttpd
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2014-01-07 19:35:28 +0000
committerjperkin <jperkin@pkgsrc.org>2014-01-07 19:35:28 +0000
commit0101e746ed14894d2bb9b1b8321f219e90c8c432 (patch)
treea743c690f942d10338a7261edc744c71a58ee792 /www/bozohttpd
parent7e648db73b64ba89fef03b33509927129e0e8fd6 (diff)
downloadpkgsrc-0101e746ed14894d2bb9b1b8321f219e90c8c432.tar.gz
Fix build on SunOS, no <paths.h> and needs socket libraries.
Diffstat (limited to 'www/bozohttpd')
-rw-r--r--www/bozohttpd/Makefile4
-rw-r--r--www/bozohttpd/distinfo3
-rw-r--r--www/bozohttpd/patches/patch-cgi-bozo.c16
3 files changed, 21 insertions, 2 deletions
diff --git a/www/bozohttpd/Makefile b/www/bozohttpd/Makefile
index 3629e024507..6db2d9eb635 100644
--- a/www/bozohttpd/Makefile
+++ b/www/bozohttpd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.78 2014/01/02 09:02:22 mrg Exp $
+# $NetBSD: Makefile,v 1.79 2014/01/07 19:35:28 jperkin Exp $
#
DISTNAME= bozohttpd-20140102
@@ -27,6 +27,8 @@ SUBST_SED.paths= -e "s|/usr/pkg/|"${PREFIX:Q}"/|g"
INSTALLATION_DIRS= libexec ${PKGMANDIR}/man8
+LDFLAGS.SunOS+= -lsocket -lnsl
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bozohttpd ${DESTDIR}${PREFIX}/libexec
${INSTALL_MAN} ${WRKSRC}/bozohttpd.8 \
diff --git a/www/bozohttpd/distinfo b/www/bozohttpd/distinfo
index 1e6b457bdbd..ce02fc53b81 100644
--- a/www/bozohttpd/distinfo
+++ b/www/bozohttpd/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.57 2014/01/02 09:02:22 mrg Exp $
+$NetBSD: distinfo,v 1.58 2014/01/07 19:35:28 jperkin Exp $
SHA1 (bozohttpd-20140102.tar.bz2) = b89ca927f313ddd2b859ec54f9d6214786979172
RMD160 (bozohttpd-20140102.tar.bz2) = ed50766e6b36ffbcf05b0f66b8feccfaa38831df
Size (bozohttpd-20140102.tar.bz2) = 61055 bytes
SHA1 (patch-aa) = 2e70d3d10aa8bc228331cc1a229ef04106aca210
SHA1 (patch-ab) = a1a56a188084440ab907995c7728e435961c5fbd
+SHA1 (patch-cgi-bozo.c) = 420f981575d7fa1a96ac7049116b9bf64de719df
diff --git a/www/bozohttpd/patches/patch-cgi-bozo.c b/www/bozohttpd/patches/patch-cgi-bozo.c
new file mode 100644
index 00000000000..a9b9faad3d3
--- /dev/null
+++ b/www/bozohttpd/patches/patch-cgi-bozo.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-cgi-bozo.c,v 1.1 2014/01/07 19:35:28 jperkin Exp $
+
+SunOS does not have paths.h
+
+--- cgi-bozo.c.orig 2014-01-02 08:24:28.000000000 +0000
++++ cgi-bozo.c
+@@ -39,7 +39,9 @@
+
+ #include <ctype.h>
+ #include <errno.h>
++#ifndef __sun
+ #include <paths.h>
++#endif
+ #include <signal.h>
+ #include <stdlib.h>
+ #include <string.h>