diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2016-05-11 22:07:52 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2016-05-11 22:07:52 +0000 |
commit | 69da47a9de36c32471cac94d6f814e9d3c408dd1 (patch) | |
tree | c084f7d0a0578a89e2c811f156c11bf419de4e8f /comms/yaps | |
parent | 663b30961567ec7d9cc83ea94166df6abedef0de (diff) | |
download | ports-69da47a9de36c32471cac94d6f814e9d3c408dd1.tar.gz ports-69da47a9de36c32471cac94d6f814e9d3c408dd1.zip |
Notes
Diffstat (limited to 'comms/yaps')
-rw-r--r-- | comms/yaps/files/patch-Config | 138 | ||||
-rw-r--r-- | comms/yaps/files/patch-Makefile | 6 | ||||
-rw-r--r-- | comms/yaps/files/patch-config.h | 166 | ||||
-rw-r--r-- | comms/yaps/files/patch-tty.c | 26 | ||||
-rw-r--r-- | comms/yaps/files/patch-valid.c | 20 | ||||
-rw-r--r-- | comms/yaps/files/patch-yaps.rc | 84 |
6 files changed, 202 insertions, 238 deletions
diff --git a/comms/yaps/files/patch-Config b/comms/yaps/files/patch-Config index 94b9d370021c..f4f03628e7bf 100644 --- a/comms/yaps/files/patch-Config +++ b/comms/yaps/files/patch-Config @@ -1,87 +1,51 @@ -*** Config.orig Sat Jun 14 19:32:18 1997 ---- Config Tue Aug 8 20:29:41 2000 -*************** -*** 1,9 **** - # -*- sh -*- - # SECTION A.) Global configuration - # Select compiler command -! CC = gcc - # -! CFLAGS = -Wall -Wno-parentheses -Wshadow -Wstrict-prototypes -Wmissing-prototypes - LDFLAGS = - EXLIBS = - # ---- 1,9 ---- - # -*- sh -*- - # SECTION A.) Global configuration - # Select compiler command -! #CC = gcc - # -! #CFLAGS = -Wall -Wno-parentheses -Wshadow -Wstrict-prototypes -Wmissing-prototypes - LDFLAGS = - EXLIBS = - # -*************** -*** 14,35 **** - #LUA = True - # - # Define this to disable debugging -! #NDEBUG = True - # - # - # - # SECTION B.) yaps configuration - # Name and location of global configuration file -! YAPS_CFGFILE = /etc/yaps.rc - # Name of local configuration file (location is $HOME.) - YAPS_LCFGFILE = .yapsrc - # Directory for installing the binary -! YAPS_BINDIR = /usr/local/bin - # Directory for optional support files -! YAPS_LIBDIR = /usr/local/lib/yaps - # User/Group/Mode for yaps - YAPS_USER = bin -! YAPS_GROUP = uucp - YAPS_MODE = 2711 - # User/Group/Mode for global configuration file - YAPS_RCUSER = bin ---- 14,35 ---- - #LUA = True - # - # Define this to disable debugging -! NDEBUG = True - # - # - # - # SECTION B.) yaps configuration - # Name and location of global configuration file -! YAPS_CFGFILE = ${PREFIX}/etc/yaps.rc - # Name of local configuration file (location is $HOME.) - YAPS_LCFGFILE = .yapsrc - # Directory for installing the binary -! YAPS_BINDIR = ${PREFIX}/bin - # Directory for optional support files -! YAPS_LIBDIR = ${PREFIX}/share/yaps - # User/Group/Mode for yaps - YAPS_USER = bin -! YAPS_GROUP = dialer - YAPS_MODE = 2711 - # User/Group/Mode for global configuration file - YAPS_RCUSER = bin -*************** -*** 56,62 **** - # - ifdef NDEBUG - DDEFS = -DNDEBUG -! G = -O - else - G = -g - endif ---- 56,62 ---- - # - ifdef NDEBUG - DDEFS = -DNDEBUG -! G = - else - G = -g - endif +--- Config.orig 1997-06-14 10:32:18 UTC ++++ Config +@@ -1,9 +1,9 @@ + # -*- sh -*- + # SECTION A.) Global configuration + # Select compiler command +-CC = gcc ++#CC = gcc + # +-CFLAGS = -Wall -Wno-parentheses -Wshadow -Wstrict-prototypes -Wmissing-prototypes ++#CFLAGS = -Wall -Wno-parentheses -Wshadow -Wstrict-prototypes -Wmissing-prototypes + LDFLAGS = + EXLIBS = + # +@@ -14,22 +14,22 @@ EXLIBS = + #LUA = True + # + # Define this to disable debugging +-#NDEBUG = True ++NDEBUG = True + # + # + # + # SECTION B.) yaps configuration + # Name and location of global configuration file +-YAPS_CFGFILE = /etc/yaps.rc ++YAPS_CFGFILE = ${PREFIX}/etc/yaps.rc + # Name of local configuration file (location is $HOME.) + YAPS_LCFGFILE = .yapsrc + # Directory for installing the binary +-YAPS_BINDIR = /usr/local/bin ++YAPS_BINDIR = ${PREFIX}/bin + # Directory for optional support files +-YAPS_LIBDIR = /usr/local/lib/yaps ++YAPS_LIBDIR = ${PREFIX}/share/yaps + # User/Group/Mode for yaps + YAPS_USER = bin +-YAPS_GROUP = uucp ++YAPS_GROUP = dialer + YAPS_MODE = 2711 + # User/Group/Mode for global configuration file + YAPS_RCUSER = bin +@@ -56,7 +56,7 @@ endif + # + ifdef NDEBUG + DDEFS = -DNDEBUG +-G = -O ++G = + else + G = -g + endif diff --git a/comms/yaps/files/patch-Makefile b/comms/yaps/files/patch-Makefile index 4f48e55ef38c..e02598513e5a 100644 --- a/comms/yaps/files/patch-Makefile +++ b/comms/yaps/files/patch-Makefile @@ -1,6 +1,6 @@ ---- Makefile.orig 1997-06-06 15:45:35.000000000 +0400 -+++ Makefile 2015-02-26 00:28:11.000000000 +0300 -@@ -33,15 +33,15 @@ +--- Makefile.orig 1997-06-06 11:45:35 UTC ++++ Makefile +@@ -33,15 +33,15 @@ yaps.doc: yaps.html lynx -cfg=/dev/null -nolist -dump $< > $@ install: $(DSTFLE) $(CFGFILE) diff --git a/comms/yaps/files/patch-config.h b/comms/yaps/files/patch-config.h index 99b334376fb5..3fd0b5d0da76 100644 --- a/comms/yaps/files/patch-config.h +++ b/comms/yaps/files/patch-config.h @@ -1,102 +1,64 @@ -*** config.h.orig Tue Sep 29 15:15:25 1998 ---- config.h Tue Sep 29 15:24:15 1998 -*************** -*** 27,31 **** - * in sys/time.h - */ -! # define HAVE_SYS_SELECT_H 0 - - /* ---- 27,31 ---- - * in sys/time.h - */ -! # define HAVE_SYS_SELECT_H 1 - - /* -*************** -*** 33,37 **** - * conversion/classification - */ -! # define HAVE_LOCALE_H 0 - - /* ---- 33,37 ---- - * conversion/classification - */ -! # define HAVE_LOCALE_H 1 - - /* -*************** -*** 39,48 **** - * very weak replacement is used to find matching services - */ -! # define HAVE_REGEX_H 0 - - /* - * one of these is required for SysV like lockfiles - */ -! # define HAVE_SYS_SYSMACROS_H 1 - # define HAVE_SYS_MKDEV_H 0 - ---- 39,48 ---- - * very weak replacement is used to find matching services - */ -! # define HAVE_REGEX_H 1 - - /* - * one of these is required for SysV like lockfiles - */ -! # define HAVE_SYS_SYSMACROS_H 0 - # define HAVE_SYS_MKDEV_H 0 - -*************** -*** 62,72 **** - * to get valid return values from localtime - */ -! # define HAVE_TZSET 0 - - /* - * If these are not set, chmod()/chown() are used - */ -! # define HAVE_FCHMOD 0 -! # define HAVE_FCHOWN 0 - - /* ---- 62,72 ---- - * to get valid return values from localtime - */ -! # define HAVE_TZSET 1 - - /* - * If these are not set, chmod()/chown() are used - */ -! # define HAVE_FCHMOD 1 -! # define HAVE_FCHOWN 1 - - /* -*************** -*** 74,78 **** - * longjmp() from the signal handler leads into chaos - */ -! # define HAVE_SIGSETJMP 0 - - /* ---- 74,78 ---- - * longjmp() from the signal handler leads into chaos - */ -! # define HAVE_SIGSETJMP 1 - - /* -*************** -*** 106,110 **** - * set this to 1, otherwise to 0 - */ -! # define BROKEN_REALLOC 1 - - /* -------------- END OF CHANGEABLE PART ------------------ */ ---- 106,110 ---- - * set this to 1, otherwise to 0 - */ -! # define BROKEN_REALLOC 0 - - /* -------------- END OF CHANGEABLE PART ------------------ */ +--- config.h.orig 1997-06-14 10:32:19 UTC ++++ config.h +@@ -26,24 +26,24 @@ + * Needed only by some systems, which do not define FD_SET etc. + * in sys/time.h + */ +-# define HAVE_SYS_SELECT_H 0 ++# define HAVE_SYS_SELECT_H 1 + + /* + * If you have locales set this. This is useful to for character + * conversion/classification + */ +-# define HAVE_LOCALE_H 0 ++# define HAVE_LOCALE_H 1 + + /* + * If you have Posix regular expressions, set this. Otherwise a + * very weak replacement is used to find matching services + */ +-# define HAVE_REGEX_H 0 ++# define HAVE_REGEX_H 1 + + /* + * one of these is required for SysV like lockfiles + */ +-# define HAVE_SYS_SYSMACROS_H 1 ++# define HAVE_SYS_SYSMACROS_H 0 + # define HAVE_SYS_MKDEV_H 0 + + /* +@@ -61,19 +61,19 @@ + * If the library contains this function, a call to it is required + * to get valid return values from localtime + */ +-# define HAVE_TZSET 0 ++# define HAVE_TZSET 1 + + /* + * If these are not set, chmod()/chown() are used + */ +-# define HAVE_FCHMOD 0 +-# define HAVE_FCHOWN 0 ++# define HAVE_FCHMOD 1 ++# define HAVE_FCHOWN 1 + + /* + * If you have sigsetjmp() you definitly want to set this, otherwise + * longjmp() from the signal handler leads into chaos + */ +-# define HAVE_SIGSETJMP 0 ++# define HAVE_SIGSETJMP 1 + + /* + * Memory access functions. Nearly everybody has memcpy()/memset(), so +@@ -105,7 +105,7 @@ + * If your realloc(3) function cannot handle realloc (NULL, size), then + * set this to 1, otherwise to 0 + */ +-# define BROKEN_REALLOC 1 ++# define BROKEN_REALLOC 0 + + /* -------------- END OF CHANGEABLE PART ------------------ */ + /*}}}*/ diff --git a/comms/yaps/files/patch-tty.c b/comms/yaps/files/patch-tty.c index c967ef0d77f0..1264276b7c5d 100644 --- a/comms/yaps/files/patch-tty.c +++ b/comms/yaps/files/patch-tty.c @@ -1,13 +1,13 @@ -*** tty.c~ Sat Jun 7 16:32:21 1997 ---- tty.c Tue Sep 29 15:32:05 1998 -*************** -*** 23,28 **** ---- 23,30 ---- - # include <sys/mkdev.h> - # else /* ! HAVE_SYS_SYSMACROS_H && ! HAVE_SYS_MKDEV_H */ -+ # ifndef major - # define major(xx) (((xx) >> 8) & 0xff) - # define minor(xx) ((xx) & 0xff) -+ # endif /* major */ - # endif /* HAVE_SYS_SYSMACROS_H || HAVE_SYS_MKDEV_H */ - # include "pager.h" +--- tty.c.orig 1997-06-07 14:32:21 UTC ++++ tty.c +@@ -22,8 +22,10 @@ + # elif HAVE_SYS_MKDEV_H + # include <sys/mkdev.h> + # else /* ! HAVE_SYS_SYSMACROS_H && ! HAVE_SYS_MKDEV_H */ ++# ifndef major + # define major(xx) (((xx) >> 8) & 0xff) + # define minor(xx) ((xx) & 0xff) ++# endif /* major */ + # endif /* HAVE_SYS_SYSMACROS_H || HAVE_SYS_MKDEV_H */ + # include "pager.h" + /*}}}*/ diff --git a/comms/yaps/files/patch-valid.c b/comms/yaps/files/patch-valid.c index 8981d1b16890..2c635c632763 100644 --- a/comms/yaps/files/patch-valid.c +++ b/comms/yaps/files/patch-valid.c @@ -1,10 +1,10 @@ -*** valid.c~ Tue Jun 3 12:09:49 1997 ---- valid.c Tue Sep 29 15:26:39 1998 -*************** -*** 4,7 **** ---- 4,8 ---- - # include <stdlib.h> - # include <string.h> -+ # include <sys/types.h> - # include "pager.h" - # include "valid.h" +--- valid.c.orig 1997-06-03 10:09:49 UTC ++++ valid.c +@@ -3,6 +3,7 @@ + /*# undef HAVE_REGEX_H*/ + # include <stdlib.h> + # include <string.h> ++# include <sys/types.h> + # include "pager.h" + # include "valid.h" + diff --git a/comms/yaps/files/patch-yaps.rc b/comms/yaps/files/patch-yaps.rc index 872830aa71be..89835beb84d7 100644 --- a/comms/yaps/files/patch-yaps.rc +++ b/comms/yaps/files/patch-yaps.rc @@ -1,6 +1,7 @@ ---- yaps.rc~ Wed Jun 11 19:39:06 1997 -+++ yaps.rc Tue Oct 17 21:11:37 2000 -@@ -7,12 +7,11 @@ +--- yaps.rc.orig 1997-06-11 17:39:06 UTC ++++ yaps.rc +@@ -6,14 +6,13 @@ + # global section # ######################################### # -# This is a comma seperated list of available services. This @@ -17,7 +18,9 @@ +# This is the default caller-id. If the protocol/service allows # it, this is inserted in the message (and the receiver gets this # as the sender's number) -@@ -23,9 +22,9 @@ + call-id +1-(555)-1234 +@@ -22,17 +21,17 @@ call-id +1-(555)-1234 + # this string to each message. signature (It's me!) # -# You can either switch the use of the signature here on for all @@ -29,21 +32,25 @@ +# Increase this value to get more verbose output when running yaps. # Currently 4 is the highest supported value. verbose 0 -@@ -33,5 +32,5 @@ + # # If you'd like to log every sending session define this. It should # point to a writeable file. If you install the software setgid, then -# change the group of this file to the same yaps uses and make it +# change the group of this file to the one yaps uses and make it # group writeable. logfile /var/log/yaps.log -@@ -41,5 +40,5 @@ + # +@@ -40,7 +39,7 @@ logfile /var/log/yaps.log + # in each service section. modems standard # -# some global defaults for the serial interface (even if the most +# some global defaults for the serial interface (even if most # protocols are assuming 7e1, these settings seem to work well) speed 38400 -@@ -49,11 +48,11 @@ + bits-per-byte 8 +@@ -48,13 +47,13 @@ parity none + stopbits 1 # -# To calculate the cost for each call, you can define some globales @@ -59,14 +66,18 @@ +# used via the `convert' entry (see below). cv-default { Ä [ -@@ -75,5 +74,5 @@ + Ö \ +@@ -74,7 +73,7 @@ cv-extend { + # # These values are normally only found in each service section, -# but are listen here with an explaination for completeness. +# but are listed here with an explaination for completeness. # # This is the phone number of the modem gateway for this service -@@ -87,11 +86,11 @@ + #phone 0015559876 +@@ -86,13 +85,13 @@ cv-extend { + #protocol tap # -# Most services limit the length of a message to a specific length. @@ -81,14 +92,18 @@ +# it off into several single messages of maximum allowed length. #may-split True -@@ -103,5 +102,5 @@ + # +@@ -102,7 +101,7 @@ cv-extend { + # # Some services allow to send more than one message per session. If -# it is limited, set it using this parameter +# there is a limit, set it using this parameter. #max-messages 1 -@@ -111,6 +110,6 @@ + # +@@ -110,8 +109,8 @@ cv-extend { + #use-call-id True # -# If the service is reachable over a phonenumber where the pager-id @@ -97,7 +112,9 @@ +# is part of the phone number, define this and add a `%P' anywhere # in the `phone' number. #insert-pager-id True -@@ -125,6 +124,6 @@ + +@@ -124,8 +123,8 @@ rm-invalids-pid + (-) + rm-invalids-cid + (-) # -# Check for valid call id (see below for more details) While @@ -106,14 +123,18 @@ +# valid-pid is required, this is optional. #valid-cid ^(001|1) #change-cid 001 -@@ -136,5 +135,5 @@ + +@@ -135,7 +134,7 @@ rm-invalids-cid + (-) + # which must match the prefix of the pager-id. #valid-pid ^(0171|0049171) #valid-pid 0171|0049171 -# Use these paramters in the global section if you want do not want +# Use these paramters in the global section if you do not want # to check pager-ids (and do not set change-pid): #valid-pid . -@@ -148,24 +147,24 @@ + #valid-pid - +@@ -147,26 +146,26 @@ rm-invalids-cid + (-) + # # As the services do not use (in general) the ISO 8859/1 character set, -# one can define convertion tables. you can either specify a file which @@ -145,14 +166,17 @@ +# set this. #can-expire True -@@ -176,5 +175,5 @@ + # +@@ -175,17 +174,17 @@ rm-invalids-cid + (-) + # # To check wether a call-id/pager-id is valid use these paramters. -# For the exact syntax see the documentation +# For the exact syntax see the documentation. #check-call-id >1111111111111111< #check-pager-id >1111111111111111< -@@ -183,8 +182,8 @@ + #check-call-id +minimum=0,maximum=16,type=numeric + # # These values are typically found in a modem section, but can also -# appear in the global section to set some defaults @@ -163,14 +187,17 @@ +# Set this to the modem device you wish to use. #device /dev/modem #device /dev/cua1 -@@ -201,5 +200,5 @@ + #device /dev/cua/a +@@ -200,22 +199,22 @@ rm-invalids-cid + (-) + # # The different format of the part which is appended to the lockfile # and the contents can be specified here. See documentation for a -# full list inclusive explaination +# full list inclusive explaination. #lock-method sysv4 #lock-method binary -@@ -208,13 +207,13 @@ + #lock-method timeout=10 + # # These are send/expect sequences to talk to the modem. For an exact -# definition see (again) the documentation. Following entries are @@ -191,7 +218,9 @@ +# reset: reset the modem ######################################### -@@ -224,5 +223,26 @@ + # service section # +@@ -223,7 +222,28 @@ rm-invalids-cid + (-) + # # D1 (by Deutsche Telekom) # -[D1] @@ -219,14 +248,18 @@ +[D1_171] protocol tap valid-pid 0171|0049171|49171 -@@ -247,5 +267,5 @@ + change-pid 0171 +@@ -246,7 +266,7 @@ tap-old True + # # D2 (by Mannesmann Mobilfunk) # -[D2] +[D2_172] modem standard-d2 protocol ucp -@@ -265,8 +285,26 @@ + valid-pid 0172|0049172|49172 +@@ -264,10 +284,28 @@ check-call-id >1111111111111111< + check-pager-id >1111111111111111< ucp-extend True # +[D2_173] @@ -254,7 +287,9 @@ +[E+_177] protocol tap valid-pid 0177|0049177|49177 -@@ -279,4 +317,16 @@ + change-pid 0177 +@@ -278,6 +316,18 @@ max-size 160 + may-split True use-call-id False # +[E+_178] @@ -271,7 +306,9 @@ +# # Telmi, Telmi-* (by Deutsche Funkruf) # !! ONLY TESTED FOR TELMI-FUN !! -@@ -336,7 +386,8 @@ + # +@@ -335,9 +385,10 @@ use-call-id True + # Locking # # Older Unix versions -lock-prefix /usr/spool/uucp/LCK.. @@ -282,3 +319,4 @@ +#lock-prefix /var/spool/lock/LCK.. #lock-prefix /var/lock/LCK.. # SysV4 + #lock-prefix /var/spool/locks/LK. |