ports/62960: new port: Utility "mapchan" of SCO Unix

Konstantin Reznichenko kot at premierbank.dp.ua
Tue Feb 17 13:10:17 UTC 2004


>Number:         62960
>Category:       ports
>Synopsis:       new port: Utility "mapchan" of SCO Unix
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 17 05:10:16 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Konstantin Reznichenko
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
PREMIERBANK
>Environment:
System: FreeBSD satellite.pb.dp.ua 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Tue
May 27 15:04:45 EEST 2003
kot at satellite.pb.dp.ua:/usr/src/sys/compile/SATELLITE i386

>Description:
    Implementation of the utility "mapchan" from SCO Unix

>How-To-Repeat:

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# mapchan
# mapchan/Makefile
# mapchan/distinfo
# mapchan/pkg-descr
# mapchan/pkg-plist
# mapchan/files
# mapchan/files/patch-aa
# mapchan/files/patch-ab
# mapchan/files/patch-ac
# mapchan/files/patch-ad
#
echo c - mapchan
mkdir -p mapchan > /dev/null 2>&1
echo x - mapchan/Makefile
sed 's/^X//' >mapchan/Makefile << 'END-of-mapchan/Makefile'
X# New ports collection makefile for: Utility "mapchan" of SCO Unix
X# Date created:   17 February 2004
X# Whom:    Konstantin Reznichenko <kot at premierbank.dp.ua>
X#
X# $FreeBSD$
X#
X
XPORTNAME= mapchan
XPORTVERSION= 1.4
XCATEGORIES= sysutils converters
XMASTER_SITES= http://www.iceb.vinnitsa.com/download/
X
XMAINTAINER= kot at premierbank.dp.ua
XCOMMENT= Implementation of the utility "mapchan" from SCO Unix
XUSE_BZIP2= YES
X
XWRKSRC=  ${WRKDIR}/${PORTNAME}
XMAN8DIR?= ${MANPREFIX}/man/cat8
X
Xpre-patch:
X @${CAT} ${WRKSRC}/doc/mapchan.F > ${WRKSRC}/doc/mapchan.8
Xpost-install:
X @${MKDIR} ${LOCALBASE}/etc/${PORTNAME} && ${MKDIR} ${DOCSDIR}
X cd ${WRKSRC}/examples && \
X ${INSTALL_DATA} *.map ${LOCALBASE}/etc/${PORTNAME} && \
X ${CAT} default > ${LOCALBASE}/etc/${PORTNAME}/default.sample
X.if !defined(NOPORTDOCS)
X ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
X.endif
X ${INSTALL_MAN} ${WRKSRC}/doc/mapchan.8 ${MAN8DIR}/mapchan.8 && \
X ${GZIP_CMD} ${MAN8DIR}/mapchan.8
X
X.include <bsd.port.mk>
END-of-mapchan/Makefile
echo x - mapchan/distinfo
sed 's/^X//' >mapchan/distinfo << 'END-of-mapchan/distinfo'
XMD5 (mapchan-1.4.tar.bz2) = 3dc874899b0e00e298f0f1b1a5622993
END-of-mapchan/distinfo
echo x - mapchan/pkg-descr
sed 's/^X//' >mapchan/pkg-descr << 'END-of-mapchan/pkg-descr'
Xmapchan - A program which allows you to transform the input and output
Xof a terminal (including a serial port terminal).  It is useful when:
X
X  * You need to work with various encodings on various virtual
X    terminals
X  * You have an assortment of terminals, not one of which supports
X    your favorite encoding.
X
XThis software is an incomplete implementation of the functionality of
Xthe utility "mapchan" of SCO Unix.
END-of-mapchan/pkg-descr
echo x - mapchan/pkg-plist
sed 's/^X//' >mapchan/pkg-plist << 'END-of-mapchan/pkg-plist'
Xbin/mapchan
Xetc/mapchan/default.sample
Xetc/mapchan/altkoi.map
Xetc/mapchan/dos2koi.map
Xetc/mapchan/koiualt.map
Xetc/mapchan/koiumain.map
Xetc/mapchan/sm7238.map
Xetc/mapchan/win2koi.map
Xetc/mapchan/k180.map
Xman/cat8/mapchan.8.gz
X%%DOCSDIR%%/README
X at dirrm etc/mapchan
X at dirrm share/doc/mapchan
END-of-mapchan/pkg-plist
echo c - mapchan/files
mkdir -p mapchan/files > /dev/null 2>&1
echo x - mapchan/files/patch-aa
sed 's/^X//' >mapchan/files/patch-aa << 'END-of-mapchan/files/patch-aa'
X--- Makefile.orig Sat Dec 23 09:47:25 2000
X+++ Makefile Thu Aug  7 00:43:27 2003
X@@ -11,7 +11,7 @@
X # (2) If your system has not basename() function - uncomment next string
X #DEFS+=-DNOBASENAME
X
X-BINDIR=/bin
X+BINDIR=$(PREFIX)/bin
X LDFLAGS=-lutil
X #--------------------------------------------------------------
X CFLAGS += $(DEFS)
END-of-mapchan/files/patch-aa
echo x - mapchan/files/patch-ab
sed 's/^X//' >mapchan/files/patch-ab << 'END-of-mapchan/files/patch-ab'
X--- mapchan.c.orig Sat Dec 23 09:47:26 2000
X+++ mapchan.c Thu Aug  7 00:43:59 2003
X@@ -19,7 +19,7 @@
X #endif
X
X #ifndef CPATH
X-  #define CPATH "/etc/mapchan"
X+  #define CPATH "/usr/local/etc/mapchan"
X #endif
X
X #define BUFSIZE 4096
END-of-mapchan/files/patch-ab
echo x - mapchan/files/patch-ac
sed 's/^X//' >mapchan/files/patch-ac << 'END-of-mapchan/files/patch-ac'
X--- doc/mapchan.8.orig Sat Dec 23 09:47:26 2000
X+++ doc/mapchan.8 Sun Aug 31 12:41:32 2003
X@@ -1,13 +1,13 @@
X
X
X- mapchan(F)                    06 January 1993
mapchan(F)
X+ mapchan(8)                    06 January 1993
mapchan(8)
X
X
X- _N_a_m_e
X+ _N_A_M_E
X
X     mapchan - format of tty device mapping files
X
X- _D_e_s_c_r_i_p_t_i_o_n
X+ _D_E_S_C_R_I_P_T_I_O_N
X
X     mmaappcchhaann configures the mapping of information input and
output.
X
X@@ -143,7 +143,7 @@
X                   character.  This can be used to enter Space, Tab, or
Hash
X                   characters.
X
X- _D_i_a_g_n_o_s_t_i_c_s
X+ _D_I_A_G_N_O_S_T_I_C_S
X
X     mmaappcchhaann performs these error checks when processing the
mapfile:
X
X@@ -170,7 +170,7 @@
X     device display character set. _d_e_a_d and _c_o_m_p_o_s_e
sequences are _i_n_p_u_t map-
X     ping and should be going to 8859.
X
X- _W_a_r_n_i_n_g
X+ _W_A_R_N_I_N_G
X
X     Use of mapping files that specify a different ``internal'' character
set
X     per-channel, or a set other than the 8-bit ISO 8859 set supplied by
X@@ -185,7 +185,7 @@
X     Do not set IISSTTRRIIPP (see ssttttyy(C)) on channels that
have mapping that
X     includes 8-bit characters.
X
X- _L_i_m_i_t_a_t_i_o_n_s
X+ _L_I_M_I_T_A_T_I_O_N_S
X
X     Some non-U.S. keyboards and display devices do not support characters
X     commonly used by UNIX command shells and the C programming language.
Do
X@@ -195,19 +195,16 @@
X     represented using this utility. Refer to the device's hardware manual
for
X     information on the capabilities of the peripheral device.
X
X- _F_i_l_e_s
X+ _F_I_L_E_S
X
X-    /_e_t_c/_d_e_f_a_u_l_t/_m_a_p_c_h_a_n
X-    /_u_s_r/_l_i_b/_m_a_p_c_h_a_n/*
X+
/_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
X+    /_u_s_r/_l_o_c_a_l/_e_t_c/_m_a_p_c_h_a_n/*._m_a_p
X
X- _S_e_e _a_l_s_o
X+ _S_E_E _A_L_S_O
X
X-    aasscciiii(M), kkeeyybbooaarrdd(HW), llpp(C),
llppaaddmmiinn(ADM), mmaappcchhaann(M), mmaappkkeeyy(M),
X-    ppaarraalllleell(HW), ssccrreeeenn(HW),
sseerriiaall(HW), sseettkkeeyy(C), ttrrcchhaann(M),
ttttyy(M)
X+    aasscciiii(7), kkeeyybbooaarrdd(4), llpp(1),
ssccrreeeenn(4), ttttyy(1)
X
X- _S_t_a_n_d_a_r_d_s _c_o_n_f_o_r_m_a_n_c_e
X+ _S_T_A_N_D_A_R_D_S
X
X     mmaappcchhaann is not part of any currently supported standard;
it is an exten-
X     sion of AT&T System V provided by The Santa Cruz Operation, Inc.
X-
X-
END-of-mapchan/files/patch-ac
echo x - mapchan/files/patch-ad
sed 's/^X//' >mapchan/files/patch-ad << 'END-of-mapchan/files/patch-ad'
X--- examples/default.orig Sat Dec 23 09:47:26 2000
X+++ examples/default Sun Aug 31 13:51:08 2003
X@@ -1,4 +1,4 @@
X-tty5  altkoi.map
X+ttyv5  altkoi.map
X ttyS1  koiualt.map
X ttyS16 koiumain.map
X ttyS17  sm7238.map
END-of-mapchan/files/patch-ad
exit


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list