This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: tcpd is where?


On Fri, 26 Jan 2001, Seth Delackner wrote:

> I have searched both forms of the archive and google itself hath nothing to say about "cygwin tcpd" so exactly where do I find the cygwin version of it?  My default inetd.conf even says there's a port buy someone, but googling for him finds...nothing!
> 

I'm attaching a patch against tcp wrapper version 7.6 that seems to work
for me. You'll have to get the source, apply the patch and build it 
yourself. It's pretty simple. Here's what I use to build:

  [ get ftp://ftp.porcupine.org/pub/security/tcp_wrappers_7.6.tar.gz 
    and unpack the sources ]
  $ tar zxf /tmp/tcp_wrappers_7.6.tar.gz
  $ cd tcp_wrappers_7.6
  [ apply this patch and build ]
  $ patch -p0 -s < /tmp/tcp-wrappers-7.6-cygwin.diff
  $ make REAL_DAEMON_DIR=/usr/sbin STYLE=-DPROCESS_OPTIONS cygwin
  $ cp tcpd.exe /usr/sbin
  [ edit /etc/hosts.allow, /etc/hosts.deny and /etc/inetd.conf, restart
    Cygwin inetd service and you're good to go. Troubles? Use 
    tcpdmatch, it's your friend. ]

Regards,
Mumit

ps: Please use an email editor that wraps lines to <= 72-74 columns.

2001-01-26  Mumit Khan  <khan@nanotech.wisc.edu>

	* Makefile: Add cygwin to the list of known systems.
	* percent_m.c (errno): Don't declare if macro.

--- Makefile.~1	Fri Jan 26 22:56:27 2001
+++ Makefile	Fri Jan 26 23:55:21 2001
@@ -17,11 +17,12 @@ what:
 	@echo "This Makefile knows about the following sys-types:"
 	@echo
 	@echo "	generic (most bsd-ish systems with sys5 compatibility)"
-	@echo "	386bsd aix alpha apollo bsdos convex-ultranet dell-gcc dgux dgux543"
-	@echo "	dynix epix esix freebsd hpux irix4 irix5 irix6 isc iunix"
-	@echo "	linux machten mips(untested) ncrsvr4 netbsd next osf power_unix_211"
-	@echo "	ptx-2.x ptx-generic pyramid sco sco-nis sco-od2 sco-os5 sinix sunos4"
-	@echo "	sunos40 sunos5 sysv4 tandem ultrix unicos7 unicos8 unixware1 unixware2"
+	@echo "	386bsd aix alpha apollo cygwin bsdos convex-ultranet"
+	@echo "	dell-gcc dgux dgux543 dynix epix esix freebsd hpux irix4"
+	@echo "	irix5 irix6 isc iunix linux machten mips(untested) ncrsvr4"
+	@echo "	netbsd next osf power_unix_211 ptx-2.x ptx-generic pyramid"
+	@echo "	sco sco-nis sco-od2 sco-os5 sinix sunos4 sunos40 sunos5"
+	@echo "	sysv4 tandem ultrix unicos7 unicos8 unixware1 unixware2"
 	@echo "	uts215 uxp"
 	@echo
 	@echo "If none of these match your environment, edit the system"
@@ -358,6 +359,14 @@ machten:
 	@make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
 	LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ=environ.o \
 	NETGROUP= TLI= all
+
+# Cygwin v1.1.7 or newer.
+cygwin:
+	@make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
+	LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ= \
+	NETGROUP= TLI= \
+	EXTRA_CFLAGS="-DSYS_ERRLIST_DEFINED -Dsys_errlist=_sys_errlist \
+	-Dsys_nerr=_sys_nerr" all
 
 ###############################################################
 # System dependencies: TLI (transport-level interface) support.
--- percent_m.c.~1	Fri Jan 26 23:01:09 2001
+++ percent_m.c	Fri Jan 26 23:01:20 2001
@@ -12,7 +12,9 @@ static char sccsid[] = "@(#) percent_m.c
 #include <errno.h>
 #include <string.h>
 
+#ifndef errno
 extern int errno;
+#endif
 #ifndef SYS_ERRLIST_DEFINED
 extern char *sys_errlist[];
 extern int sys_nerr;
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]