pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net Move "bsddip" package to "bsddip" directory.
details: https://anonhg.NetBSD.org/pkgsrc/rev/c0339e6fec34
branches: trunk
changeset: 515315:c0339e6fec34
user: tron <tron%pkgsrc.org@localhost>
date: Fri Jun 30 16:17:27 2006 +0000
description:
Move "bsddip" package to "bsddip" directory.
diffstat:
net/Makefile | 4 +-
net/bsddip/DESCR | 22 +++++
net/bsddip/Makefile | 21 +++++
net/bsddip/PLIST | 17 ++++
net/bsddip/distinfo | 8 ++
net/bsddip/patches/patch-aa | 154 ++++++++++++++++++++++++++++++++++++++
net/bsddip/patches/patch-ab | 175 ++++++++++++++++++++++++++++++++++++++++++++
net/bsddip/patches/patch-ac | 69 +++++++++++++++++
net/dip/DESCR | 22 -----
net/dip/Makefile | 21 -----
net/dip/PLIST | 17 ----
net/dip/distinfo | 8 --
net/dip/patches/patch-aa | 154 --------------------------------------
net/dip/patches/patch-ab | 175 --------------------------------------------
net/dip/patches/patch-ac | 69 -----------------
15 files changed, 468 insertions(+), 468 deletions(-)
diffs (truncated from 1013 to 300 lines):
diff -r c6eb0a721adf -r c0339e6fec34 net/Makefile
--- a/net/Makefile Fri Jun 30 16:13:47 2006 +0000
+++ b/net/Makefile Fri Jun 30 16:17:27 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.622 2006/06/09 22:11:31 jlam Exp $
+# $NetBSD: Makefile,v 1.623 2006/06/30 16:17:27 tron Exp $
#
COMMENT= Networking tools
@@ -42,6 +42,7 @@
SUBDIR+= bounce
SUBDIR+= bpalogin
SUBDIR+= bridged
+SUBDIR+= bsddip
SUBDIR+= btget
SUBDIR+= btpd
SUBDIR+= bug-buddy
@@ -67,7 +68,6 @@
SUBDIR+= dgd
SUBDIR+= dhid
SUBDIR+= dhisd
-SUBDIR+= dip
SUBDIR+= djbdns
SUBDIR+= djbdns-run
SUBDIR+= dlint
diff -r c6eb0a721adf -r c0339e6fec34 net/bsddip/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/bsddip/DESCR Fri Jun 30 16:17:27 2006 +0000
@@ -0,0 +1,22 @@
+What is DIP?
+
+
+DIP is mainly a tool to establish a SLIP connection. It handles all
+the necessary actions to set up the tty port and the modem, dial out
+and finally build up a SLIP connection between the tty port and the
+kernel. To do so, dip offers an own very simple command language (a
+mostly complete description can be found in the man page).
+
+Dip can handle both incoming and outgoing connections using password
+security for incoming connections.
+
+For more details, have a look at the man page!
+
+Author's comment:
+
+But what I want YOU to do is: Send me a postcard from your city/town.
+My address:
+ Joachim Bartz
+ Burgstaetter Strasse 17
+ 38678 Clausthal-Zellerfeld
+ Germany
diff -r c6eb0a721adf -r c0339e6fec34 net/bsddip/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/bsddip/Makefile Fri Jun 30 16:17:27 2006 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2006/06/30 16:17:27 tron Exp $
+
+DISTNAME= bsddip-1.02
+CATEGORIES= net
+#
+# the actual master site is almost out of reach for everybody
+#MASTER_SITES= ftp://sun.rz.tu-clausthal.de/pub/bsddip/
+MASTER_SITES+= ${MASTER_SITE_LOCAL}
+EXTRACT_SUFX= .tar.Z
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+COMMENT= Dialup IP program
+
+NOT_FOR_PLATFORM= Interix-*-* # no sl(4) device
+
+NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL
+
+NO_CONFIGURE= yes
+MANCOMPRESSED_IF_MANZ= yes
+
+.include "../../mk/bsd.pkg.mk"
diff -r c6eb0a721adf -r c0339e6fec34 net/bsddip/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/bsddip/PLIST Fri Jun 30 16:17:27 2006 +0000
@@ -0,0 +1,17 @@
+@comment $NetBSD: PLIST,v 1.1 2006/06/30 16:17:27 tron Exp $
+sbin/dip
+sbin/diplogin
+lib/dip/dialout.dip.sample
+lib/dip/ReadMe.HowTo
+lib/dip/sample2.dip
+lib/dip/diphosts
+lib/dip/sample.dip
+lib/dip/setup.sh.sample
+lib/dip/ReadMe
+lib/dip/sample1.dip
+lib/dip/startup.sh.sample
+man/cat8/dip.0
+man/cat8/diplogin.0
+man/man8/dip.8
+man/man8/diplogin.8
+@dirrm lib/dip
diff -r c6eb0a721adf -r c0339e6fec34 net/bsddip/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/bsddip/distinfo Fri Jun 30 16:17:27 2006 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2006/06/30 16:17:27 tron Exp $
+
+SHA1 (bsddip-1.02.tar.Z) = f938ba32fcbb958c6a9632502d6728cb0a8bac4c
+RMD160 (bsddip-1.02.tar.Z) = 799b899cee5ef1b8a49c8a0929a2c4f0d17bcbab
+Size (bsddip-1.02.tar.Z) = 78191 bytes
+SHA1 (patch-aa) = 597aa71afc9cc8bcb38ad4be949d42630db0b840
+SHA1 (patch-ab) = 657e3dd81394df2d8789222776a14ce083a252b6
+SHA1 (patch-ac) = 0bf7e78142ef21167475fd9af4071494054016e9
diff -r c6eb0a721adf -r c0339e6fec34 net/bsddip/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/bsddip/patches/patch-aa Fri Jun 30 16:17:27 2006 +0000
@@ -0,0 +1,154 @@
+$NetBSD: patch-aa,v 1.1 2006/06/30 16:17:27 tron Exp $
+
+--- Makefile.orig Sat Jul 1 01:41:05 1995
++++ Makefile Wed Jul 20 01:59:35 2005
+@@ -1,123 +1,39 @@
+-CC = gcc
+-
+-CCFLAG = -O2
+-DBFLAG = -ggdb -Wall
+-LDFLAG = -N -s
+-
++PROG = dip
++PROG1 = diplogin
++LINKS = ${BINDIR}/${PROG} ${BINDIR}/${PROG1}
+ VERSION = 1.01
+
+ BINTGT = dip
+-BINTGT1 = diplogin
+-BINDIR = /sbin/
+-BINGRP = bin
+-BINOWN = bin
+-BINMODE = 555
+-
+-MANSRC = dip.8
+-MANTGT = dip.0
+-MANTGT1 = diplogin.0
+-MANDIR = /usr/share/man/cat8/
+-MANGRP = bin
+-MANOWN = bin
+-MANMODE = 444
++BINDIR = ${PREFIX}/sbin
+
+-SMPDIR = /etc/dip.samples/
++MAN = dip.8
++MANDIR = ${PREFIX}/man
++MLINKS = dip.8 diplogin.8
++MANINSTALL = maninstall catinstall
++
++SAMPLES = samples/dialout.dip.sample samples/ReadMe.HowTo \
++ samples/sample2.dip samples/diphosts \
++ samples/sample.dip samples/setup.sh.sample \
++ samples/ReadMe samples/sample1.dip \
++ samples/startup.sh.sample
++
++SMPDIR = ${PREFIX}/lib/dip
+ SMPGRP = bin
+ SMPOWN = bin
+-SMPMODE = 755
++SMPMODE = 644
+
+ # OWNSLEEP= -DUSEOWNSLEEP
+
+-OBJS = attach.o command.o config.o daemon.o dip.o login.o modem.o ppp.o\
+- slip.o term.o tty.o
++SRCS = attach.c command.c config.c daemon.c dip.c login.c modem.c ppp.c\
++ slip.c term.c tty.c
+
+ .ifdef (OWNSLEEP)
+-OBJS += sleep.o
+-.endif
+-
+-
+-.SUFFIXES: .0 .1 .2 .3 .4 .5 .6 .7 .8
+-
+-
+-.8.0:
+- @echo "nroff -mandoc $(.IMPSRC) > $(.TARGET)"
+- @nroff -mandoc $(.IMPSRC) > $(.TARGET) || ( rm -f $(.TARGET) ; false )
+-
+-
+-.ifmake (debug)
+-.c.o: dip.h $(.IMPSRC)
+- $(CC) $(OWNSLEEP) $(DBFLAG) -c $(.IMPSRC)
+-.else
+-.c.o: dip.h $(.IMPSRC)
+- $(CC) $(OWNSLEEP) $(CCFLAG) -c $(.IMPSRC)
++SRCS += sleep.c
+ .endif
+
++afterinstall:
++ @if [ ! -d ${SMPDIR} ] ; then mkdir -p ${SMPDIR} ; fi
++ ${INSTALL} -c -o ${SMPOWN} -g ${SMPGRP} -m ${SMPMODE} \
++ ${SAMPLES} ${SMPDIR}
+
+-
+-all: dip
+-
+-
+-install: dip maninstall
+- install -c -s -o$(BINOWN) -g$(BINGRP) -m$(BINMODE) $(BINTGT) $(BINDIR)
+- rm -f $(BINDIR)$(BINTGT1)
+- ln $(BINDIR)$(BINTGT) $(BINDIR)$(BINTGT1)
+-
+-
+-dip: dip.h $(OBJS)
+- $(CC) $(OWNSLEEP) $(CCFLAG) $(LDFLAG) -o $(BINTGT) $(OBJS)
+-
+-
+-debug: dip.h $(OBJS)
+- $(CC) $(OWNSLEEP) $(DBFLAG) -o $(BINTGT) $(OBJS)
+-
+-
+-maninstall: man
+- install -c -o$(MANOWN) -g$(MANGRP) -m$(MANMODE) $(MANTGT) $(MANDIR)
+- rm -f $(MANDIR)$(MANTGT1)
+- ln $(MANDIR)$(MANTGT) $(MANDIR)$(MANTGT1)
+-
+-
+-man: $(MANTGT)
+-
+-
+-samples!
+- @echo Installing sample files in $(SMPDIR)...
+- @if [ -d $(SMPDIR) ] ; then \
+- echo The directory already exists! ; \
+- echo Aborting!!! ; \
+- false ; \
+- fi
+- install -d -o$(BINOWN) -g$(BINGRP) -m$(SMPMODE) $(SMPDIR)
+- install -c -o$(BINOWN) -g$(BINGRP) -m644 ./samples/* $(SMPDIR)
+- install -c -o$(BINOWN) -g$(BINGRP) -m744 ./samples/*.sh.* $(SMPDIR)
+-
+-clean:
+- rm -f $(BINTGT).core $(OBJS)
+-
+-
+-clobber: clean
+- rm -f $(BINTGT) $(MANTGT)
+-
+-
+-uninstall:
+- @if [ -f $(BINDIR)$(BINTGT1) ] ; then \
+- echo Removing $(BINDIR)$(BINTGT1) ; \
+- rm -f $(BINDIR)$(BINTGT1) ; \
+- fi
+- @if [ -f $(BINDIR)$(BINTGT) ] ; then \
+- echo Removing $(BINDIR)$(BINTGT) ; \
+- rm -f $(BINDIR)$(BINTGT) ; \
+- fi
+- @if [ -f $(MANDIR)$(MANTGT1) ] ; then \
+- echo Removing $(MANDIR)$(MANTGT1) ; \
+- rm -f $(MANDIR)$(MANTGT1) ; \
+- fi
+- @if [ -f $(MANDIR)$(MANTGT) ] ; then \
+- echo Removing $(MANDIR)$(MANTGT) ; \
+- rm -f $(MANDIR)$(MANTGT) ; \
+- fi
+- @if [ -d $(SMPDIR) ] ; then \
+- echo '' ; \
+- echo "Please remove $(SMPDIR) (and containing files) yourself!" ; \
+- echo '' ; \
+- fi
+\ No newline at end of file
++.include <bsd.prog.mk>
diff -r c6eb0a721adf -r c0339e6fec34 net/bsddip/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/bsddip/patches/patch-ab Fri Jun 30 16:17:27 2006 +0000
@@ -0,0 +1,175 @@
+$NetBSD: patch-ab,v 1.1 2006/06/30 16:17:27 tron Exp $
+
+--- tty.c.orig Sat Jul 1 01:41:05 1995
++++ tty.c Sat Sep 9 08:37:14 1995
+@@ -140,9 +140,10 @@
+ int tty_lock ( char *path, int mode )
+ {
+
++#define MAX_LOCK_ATTEMPTS 3
+ struct passwd *pw;
+-
+- int fd;
++ char number[12], *temp_path;
++ int fd, i, saved_errno;
+
+
+ if ( mode ) /* locking on ? */
+@@ -152,32 +153,71 @@
+ return 0; /* standard input */
+ }
+
+- if ( saved_path != NULL )
++ temp_path = (char*) malloc ( sizeof ( PATH_LOCKD ) +
++ strlen("TMP..") + 10); /* max PID */
++
++ (void) sprintf ( number, "%u", (unsigned)getpid() );
++ (void) strcpy ( temp_path, PATH_LOCKD );
++ (void) strcat ( temp_path, "TMP.." );
++ (void) strcat ( temp_path, number );
Home |
Main Index |
Thread Index |
Old Index