mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-31 05:41:08 +00:00
Add mapchan 1.4, an implementation of the utility "mapchan"
from SCO Unix. PR: 62960 Submitted by: Konstantin Reznichenko <kot (at) premierbank.dp.ua>
This commit is contained in:
parent
196e201f75
commit
16dc24a0a6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=129891
@ -259,6 +259,7 @@
|
||||
SUBDIR += maint
|
||||
SUBDIR += makefs
|
||||
SUBDIR += manck
|
||||
SUBDIR += mapchan
|
||||
SUBDIR += mcron
|
||||
SUBDIR += memdump
|
||||
SUBDIR += memfetch
|
||||
|
43
sysutils/mapchan/Makefile
Normal file
43
sysutils/mapchan/Makefile
Normal file
@ -0,0 +1,43 @@
|
||||
# New ports collection makefile for: Utility "mapchan" of SCO Unix
|
||||
# Date created: 17 February 2004
|
||||
# Whom: Konstantin Reznichenko <kot@premierbank.dp.ua>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= mapchan
|
||||
PORTVERSION= 1.4
|
||||
CATEGORIES= sysutils converters
|
||||
MASTER_SITES= http://www.iceb.vinnitsa.com/download/
|
||||
|
||||
MAINTAINER= kot@premierbank.dp.ua
|
||||
COMMENT= Implementation of the utility "mapchan" from SCO Unix
|
||||
|
||||
USE_BZIP2= yes
|
||||
USE_REINPLACE= yes
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
ETCDAT= *.map default.sample
|
||||
|
||||
MAN8= mapchan.8
|
||||
|
||||
PORTDOCS= README
|
||||
|
||||
pre-patch:
|
||||
@${CP} ${WRKSRC}/doc/mapchan.F ${WRKSRC}/doc/mapchan.8
|
||||
@${CP} ${WRKSRC}/examples/default ${WRKSRC}/examples/default.sample
|
||||
|
||||
pre-build:
|
||||
@${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|" ${WRKSRC}/mapchan.c
|
||||
|
||||
post-install:
|
||||
@${MKDIR} ${PREFIX}/etc/${PORTNAME}
|
||||
${INSTALL_DATA} ${ETCDAT:S|^|${WRKSRC}/examples/|} ${PREFIX}/etc/${PORTNAME}
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
||||
.endif
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/mapchan.8 ${MANPREFIX}/man/man8
|
||||
|
||||
.include <bsd.port.mk>
|
1
sysutils/mapchan/distinfo
Normal file
1
sysutils/mapchan/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (mapchan-1.4.tar.bz2) = 3dc874899b0e00e298f0f1b1a5622993
|
11
sysutils/mapchan/files/patch-Makefile
Normal file
11
sysutils/mapchan/files/patch-Makefile
Normal file
@ -0,0 +1,11 @@
|
||||
--- Makefile.orig Sat Dec 23 09:47:25 2000
|
||||
+++ Makefile Thu Aug 7 00:43:27 2003
|
||||
@@ -11,7 +11,7 @@
|
||||
# (2) If your system has not basename() function - uncomment next string
|
||||
#DEFS+=-DNOBASENAME
|
||||
|
||||
-BINDIR=/bin
|
||||
+BINDIR=$(PREFIX)/bin
|
||||
LDFLAGS=-lutil
|
||||
#--------------------------------------------------------------
|
||||
CFLAGS += $(DEFS)
|
72
sysutils/mapchan/files/patch-doc::mapchan.8
Normal file
72
sysutils/mapchan/files/patch-doc::mapchan.8
Normal file
@ -0,0 +1,72 @@
|
||||
--- doc/mapchan.8.orig Sat Dec 23 09:47:26 2000
|
||||
+++ doc/mapchan.8 Sun Aug 31 12:41:32 2003
|
||||
@@ -1,13 +1,13 @@
|
||||
|
||||
|
||||
- mapchan(F) 06 January 1993 mapchan(F)
|
||||
+ mapchan(8) 06 January 1993 mapchan(8)
|
||||
|
||||
|
||||
- _N_a_m_e
|
||||
+ _N_A_M_E
|
||||
|
||||
mapchan - format of tty device mapping files
|
||||
|
||||
- _D_e_s_c_r_i_p_t_i_o_n
|
||||
+ _D_E_S_C_R_I_P_T_I_O_N
|
||||
|
||||
mmaappcchhaann configures the mapping of information input and output.
|
||||
|
||||
@@ -143,7 +143,7 @@
|
||||
character. This can be used to enter Space, Tab, or Hash
|
||||
characters.
|
||||
|
||||
- _D_i_a_g_n_o_s_t_i_c_s
|
||||
+ _D_I_A_G_N_O_S_T_I_C_S
|
||||
|
||||
mmaappcchhaann performs these error checks when processing the mapfile:
|
||||
|
||||
@@ -170,7 +170,7 @@
|
||||
device display character set. _d_e_a_d and _c_o_m_p_o_s_e sequences are _i_n_p_u_t map-
|
||||
ping and should be going to 8859.
|
||||
|
||||
- _W_a_r_n_i_n_g
|
||||
+ _W_A_R_N_I_N_G
|
||||
|
||||
Use of mapping files that specify a different ``internal'' character set
|
||||
per-channel, or a set other than the 8-bit ISO 8859 set supplied by
|
||||
@@ -185,7 +185,7 @@
|
||||
Do not set IISSTTRRIIPP (see ssttttyy(C)) on channels that have mapping that
|
||||
includes 8-bit characters.
|
||||
|
||||
- _L_i_m_i_t_a_t_i_o_n_s
|
||||
+ _L_I_M_I_T_A_T_I_O_N_S
|
||||
|
||||
Some non-U.S. keyboards and display devices do not support characters
|
||||
commonly used by UNIX command shells and the C programming language. Do
|
||||
@@ -195,19 +195,16 @@
|
||||
represented using this utility. Refer to the device's hardware manual for
|
||||
information on the capabilities of the peripheral device.
|
||||
|
||||
- _F_i_l_e_s
|
||||
+ _F_I_L_E_S
|
||||
|
||||
- /_e_t_c/_d_e_f_a_u_l_t/_m_a_p_c_h_a_n
|
||||
- /_u_s_r/_l_i_b/_m_a_p_c_h_a_n/*
|
||||
+ /_u_s_r/_l_o_c_a_l/_e_t_c/_m_a_p_c_h_a_n/_d_e_f_a_u_l_t
|
||||
+ /_u_s_r/_l_o_c_a_l/_e_t_c/_m_a_p_c_h_a_n/*._m_a_p
|
||||
|
||||
- _S_e_e _a_l_s_o
|
||||
+ _S_E_E _A_L_S_O
|
||||
|
||||
- aasscciiii(M), kkeeyybbooaarrdd(HW), llpp(C), llppaaddmmiinn(ADM), mmaappcchhaann(M), mmaappkkeeyy(M),
|
||||
- ppaarraalllleell(HW), ssccrreeeenn(HW), sseerriiaall(HW), sseettkkeeyy(C), ttrrcchhaann(M), ttttyy(M)
|
||||
+ aasscciiii(7), kkeeyybbooaarrdd(4), llpp(1), ssccrreeeenn(4), ttttyy(1)
|
||||
|
||||
- _S_t_a_n_d_a_r_d_s _c_o_n_f_o_r_m_a_n_c_e
|
||||
+ _S_T_A_N_D_A_R_D_S
|
||||
|
||||
mmaappcchhaann is not part of any currently supported standard; it is an exten-
|
||||
sion of AT&T System V provided by The Santa Cruz Operation, Inc.
|
||||
-
|
||||
-
|
8
sysutils/mapchan/files/patch-examples::default
Normal file
8
sysutils/mapchan/files/patch-examples::default
Normal file
@ -0,0 +1,8 @@
|
||||
--- examples/default.sample.orig Sat Dec 23 09:47:26 2000
|
||||
+++ examples/default.sample Sun Aug 31 13:51:08 2003
|
||||
@@ -1,4 +1,4 @@
|
||||
-tty5 altkoi.map
|
||||
+ttyv5 altkoi.map
|
||||
ttyS1 koiualt.map
|
||||
ttyS16 koiumain.map
|
||||
ttyS17 sm7238.map
|
25
sysutils/mapchan/files/patch-mapchan.c
Normal file
25
sysutils/mapchan/files/patch-mapchan.c
Normal file
@ -0,0 +1,25 @@
|
||||
--- mapchan.c.orig Sat Oct 25 09:21:42 2003
|
||||
+++ mapchan.c Sun Feb 27 15:27:01 2005
|
||||
@@ -19,7 +19,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef CPATH
|
||||
- #define CPATH "/etc/mapchan"
|
||||
+ #define CPATH "/usr/local/etc/mapchan"
|
||||
#endif
|
||||
|
||||
#define BUFSIZE 4096
|
||||
@@ -51,10 +51,10 @@
|
||||
|
||||
char usage[] = { "\nUsage:\n\nmapchan [-q] [-s shell] [-f file]\
|
||||
[-h]\n\nwhere:\n\
|
||||
-\tshell - shell, if not /bin/sh
|
||||
+\tshell - shell, if not /bin/sh\n\
|
||||
\tfile - input file\n\
|
||||
-\t-q - force and quiet
|
||||
-\t-h - print this screen and exit.\n" };
|
||||
+\t-q - force and quiet\n\
|
||||
+\t-h - print this screen and exit.\n" };
|
||||
|
||||
int pty_fd; /* ÄÅÓËÒÉÐÔÏÒ master */
|
||||
int tty_fd; /* ÄÅÓËÒÉÐÔÏÒ slave */
|
12
sysutils/mapchan/pkg-descr
Normal file
12
sysutils/mapchan/pkg-descr
Normal file
@ -0,0 +1,12 @@
|
||||
mapchan - A program which allows you to transform the input and output
|
||||
of a terminal (including a serial port terminal). It is useful when:
|
||||
|
||||
* You need to work with various encodings on various virtual
|
||||
terminals
|
||||
* You have an assortment of terminals, not one of which supports
|
||||
your favorite encoding.
|
||||
|
||||
This software is an incomplete implementation of the functionality of
|
||||
the utility "mapchan" of SCO Unix.
|
||||
|
||||
WWW: http://www.iceb.vinnitsa.com/
|
10
sysutils/mapchan/pkg-plist
Normal file
10
sysutils/mapchan/pkg-plist
Normal file
@ -0,0 +1,10 @@
|
||||
bin/mapchan
|
||||
etc/mapchan/altkoi.map
|
||||
etc/mapchan/default.sample
|
||||
etc/mapchan/dos2koi.map
|
||||
etc/mapchan/k180.map
|
||||
etc/mapchan/koiualt.map
|
||||
etc/mapchan/koiumain.map
|
||||
etc/mapchan/sm7238.map
|
||||
etc/mapchan/win2koi.map
|
||||
@unexec rmdir %D/etc/mapchan 2>/dev/null || true
|
Loading…
Reference in New Issue
Block a user