summaryrefslogtreecommitdiff
path: root/net/gofish/patches
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2005-10-26 03:42:21 +0000
committerminskim <minskim@pkgsrc.org>2005-10-26 03:42:21 +0000
commit8af12edfe41dd9fbbc0c1821c20b2a8589d6c6a0 (patch)
treebb218b970da484ffb9145062ecffec3f23c7840b /net/gofish/patches
parent39f4626700bb4b60135a4e6e3cc8aaeb298f7101 (diff)
downloadpkgsrc-8af12edfe41dd9fbbc0c1821c20b2a8589d6c6a0.tar.gz
Import gofish from pkgsrc-wip. Packaged by Emil Skoeldberg.
Gopher server that also acts as http server and gopher to http gateway.
Diffstat (limited to 'net/gofish/patches')
-rw-r--r--net/gofish/patches/patch-aa63
-rw-r--r--net/gofish/patches/patch-ab14
-rw-r--r--net/gofish/patches/patch-ac114
-rw-r--r--net/gofish/patches/patch-ad14
4 files changed, 205 insertions, 0 deletions
diff --git a/net/gofish/patches/patch-aa b/net/gofish/patches/patch-aa
new file mode 100644
index 00000000000..4960fcb21ed
--- /dev/null
+++ b/net/gofish/patches/patch-aa
@@ -0,0 +1,63 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/10/26 03:42:21 minskim Exp $
+
+--- Makefile.in.orig 2004-12-09 03:59:10.000000000 +0000
++++ Makefile.in
+@@ -636,7 +636,7 @@ info: info-am
+
+ info-am:
+
+-install-data-am: install-data-local install-man
++install-data-am: install-man
+
+ install-exec-am: install-binPROGRAMS install-binSCRIPTS \
+ install-sbinPROGRAMS
+@@ -678,7 +678,7 @@ uninstall-man: uninstall-man1 uninstall-
+ distclean-generic distclean-hdr distclean-tags distcleancheck \
+ distdir distuninstallcheck dvi dvi-am info info-am install \
+ install-am install-binPROGRAMS install-binSCRIPTS install-data \
+- install-data-am install-data-local install-exec install-exec-am \
++ install-data-am install-exec install-exec-am \
+ install-info install-info-am install-man install-man1 \
+ install-man5 install-sbinPROGRAMS install-strip installcheck \
+ installcheck-am installdirs maintainer-clean \
+@@ -693,40 +693,6 @@ uninstall-man: uninstall-man1 uninstall-
+ install-exec-hook:
+ ln -s $(sbindir)/gofish $(DESTDIR)$(sbindir)/gopherd
+
+-# Do not override the gofish.conf or icons directories if they exist
+-install-data-local: install-root-dir
+- $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
+- if test -f $(DESTDIR)$(sysconfdir)/gofish.conf; then \
+- $(INSTALL_DATA) gofish.conf $(DESTDIR)$(sysconfdir)/gofish.conf.new; \
+- else \
+- $(INSTALL_DATA) gofish.conf $(DESTDIR)$(sysconfdir)/gofish.conf; \
+- fi
+- if test -f $(DESTDIR)$(sysconfdir)/gofish-www.conf; then \
+- $(INSTALL_DATA) gofish-www.conf $(DESTDIR)$(sysconfdir)/gofish-www.conf.new; \
+- else \
+- $(INSTALL_DATA) gofish-www.conf $(DESTDIR)$(sysconfdir)/gofish-www.conf; \
+- fi
+-
+-# 1. Only install Configure_GoFish if /var/gopher does not exist.
+-# We don't want to keep installing it for users who are upgrading.
+-# 2. Only install the .gopher+ file if it dosen't exist. We don't want to
+-# override any user changes.
+-# 3. Only install icon directory if it dosen't exist. We don't want to
+-# override any user installed icons.
+-install-root-dir:
+- if test ! -d $(DESTDIR)$(gopherroot); then \
+- $(mkinstalldirs) $(DESTDIR)$(gopherroot); \
+- $(INSTALL_DATA) Configure_GoFish $(DESTDIR)$(gopherroot)/Configure_GoFish; \
+- $(INSTALL_DATA) _cache $(DESTDIR)$(gopherroot)/.cache; \
+- fi
+- if test ! -f $(DESTDIR)$(gopherroot)/.gopher+; then \
+- $(INSTALL_DATA) _gopher+ $(DESTDIR)$(gopherroot)/.gopher+; \
+- fi
+- if test ! -f $(DESTDIR)$(gopherroot)/icons; then \
+- $(mkinstalldirs) $(DESTDIR)$(gopherroot)/icons; \
+- $(INSTALL_DATA) $(srcdir)/icons/*.gif $(DESTDIR)$(gopherroot)/icons; \
+- fi
+-
+ # Do not remove the root_dir or any part of it
+ uninstall-local:
+ rm -f $(DESTDIR)$(sysconfdir)/gofish.conf
diff --git a/net/gofish/patches/patch-ab b/net/gofish/patches/patch-ab
new file mode 100644
index 00000000000..8125c69087b
--- /dev/null
+++ b/net/gofish/patches/patch-ab
@@ -0,0 +1,14 @@
+$NetBSD: patch-ab,v 1.1.1.1 2005/10/26 03:42:21 minskim Exp $
+
+--- configure.in.orig Sun May 25 03:52:57 2003
++++ configure.in
+@@ -44,6 +44,9 @@ AC_FUNC_STRFTIME
+ AC_CHECK_FUNCS(gethostname select socket strdup strerror strstr strtol uname)
+ AC_CHECK_FUNCS(writev daemon)
+
++dnl Interix does not have initgroups
++AC_CHECK_FUNCS(initgroups)
++
+ dnl poll does not work on the arm
+ dnl if this goes, AC_CANONICAL_HOST and the files
+ dnl config.sub and config.guess can go
diff --git a/net/gofish/patches/patch-ac b/net/gofish/patches/patch-ac
new file mode 100644
index 00000000000..e2442d0ae91
--- /dev/null
+++ b/net/gofish/patches/patch-ac
@@ -0,0 +1,114 @@
+$NetBSD: patch-ac,v 1.1.1.1 2005/10/26 03:42:21 minskim Exp $
+
+--- configure.orig Thu Dec 9 03:59:13 2004
++++ configure
+@@ -5145,6 +5145,109 @@ fi
+ done
+
+
++
++for ac_func in initgroups
++do
++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
++echo "$as_me:$LINENO: checking for $ac_func" >&5
++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
++if eval "test \"\${$as_ac_var+set}\" = set"; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
++ For example, HP-UX 11i <limits.h> declares gettimeofday. */
++#define $ac_func innocuous_$ac_func
++
++/* System header to define __stub macros and hopefully few prototypes,
++ which can conflict with char $ac_func (); below.
++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++ <limits.h> exists even on freestanding compilers. */
++
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++
++#undef $ac_func
++
++/* Override any gcc2 internal prototype to avoid an error. */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++ builtin and then its argument prototype would still apply. */
++char $ac_func ();
++/* The GNU C library defines this for functions which it implements
++ to always fail with ENOSYS. Some functions are actually named
++ something starting with __ and the normal name is an alias. */
++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++choke me
++#else
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != $ac_func;
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>conftest.er1
++ ac_status=$?
++ grep -v '^ *+' conftest.er1 >conftest.err
++ rm -f conftest.er1
++ cat conftest.err >&5
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -z "$ac_c_werror_flag"
++ || test ! -s conftest.err'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; } &&
++ { ac_try='test -s conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ eval "$as_ac_var=yes"
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++eval "$as_ac_var=no"
++fi
++rm -f conftest.err conftest.$ac_objext \
++ conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
++if test `eval echo '${'$as_ac_var'}'` = yes; then
++ cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++done
++
++
+ case $host in
+ armv4l-*) ;;
+ *)
diff --git a/net/gofish/patches/patch-ad b/net/gofish/patches/patch-ad
new file mode 100644
index 00000000000..dcd619a95ff
--- /dev/null
+++ b/net/gofish/patches/patch-ad
@@ -0,0 +1,14 @@
+$NetBSD: patch-ad,v 1.1.1.1 2005/10/26 03:42:21 minskim Exp $
+
+--- gofish.c.orig Wed Dec 31 18:12:02 2003
++++ gofish.c
+@@ -209,7 +209,9 @@ setup_privs (void)
+ uid = pwd->pw_uid;
+ if(gid == (uid_t)-1)
+ gid = pwd->pw_gid;
++#ifdef HAVE_INITGROUPS
+ initgroups (pwd->pw_name, pwd->pw_gid);
++#endif
+ }
+
+ setgid(gid);