diff options
author | Thierry Thomas <thierry@FreeBSD.org> | 2005-02-27 14:47:24 +0000 |
---|---|---|
committer | Thierry Thomas <thierry@FreeBSD.org> | 2005-02-27 14:47:24 +0000 |
commit | 16dc24a0a6c428dde85db836012896bd49ca76ec (patch) | |
tree | e40e24c94a21c5ac1c575c52950fe5886bd6510b /sysutils/mapchan | |
parent | 196e201f75f3ebe1f7a6b4585b5ede4a04c12102 (diff) | |
download | ports-16dc24a0a6c428dde85db836012896bd49ca76ec.tar.gz ports-16dc24a0a6c428dde85db836012896bd49ca76ec.zip |
Notes
Diffstat (limited to 'sysutils/mapchan')
-rw-r--r-- | sysutils/mapchan/Makefile | 43 | ||||
-rw-r--r-- | sysutils/mapchan/distinfo | 1 | ||||
-rw-r--r-- | sysutils/mapchan/files/patch-Makefile | 11 | ||||
-rw-r--r-- | sysutils/mapchan/files/patch-doc::mapchan.8 | 72 | ||||
-rw-r--r-- | sysutils/mapchan/files/patch-examples::default | 8 | ||||
-rw-r--r-- | sysutils/mapchan/files/patch-mapchan.c | 25 | ||||
-rw-r--r-- | sysutils/mapchan/pkg-descr | 12 | ||||
-rw-r--r-- | sysutils/mapchan/pkg-plist | 10 |
8 files changed, 182 insertions, 0 deletions
diff --git a/sysutils/mapchan/Makefile b/sysutils/mapchan/Makefile new file mode 100644 index 000000000000..236059be8dd6 --- /dev/null +++ b/sysutils/mapchan/Makefile @@ -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> diff --git a/sysutils/mapchan/distinfo b/sysutils/mapchan/distinfo new file mode 100644 index 000000000000..30931df469a1 --- /dev/null +++ b/sysutils/mapchan/distinfo @@ -0,0 +1 @@ +MD5 (mapchan-1.4.tar.bz2) = 3dc874899b0e00e298f0f1b1a5622993 diff --git a/sysutils/mapchan/files/patch-Makefile b/sysutils/mapchan/files/patch-Makefile new file mode 100644 index 000000000000..2da209fcd9db --- /dev/null +++ b/sysutils/mapchan/files/patch-Makefile @@ -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) diff --git a/sysutils/mapchan/files/patch-doc::mapchan.8 b/sysutils/mapchan/files/patch-doc::mapchan.8 new file mode 100644 index 000000000000..1dd7cca2b615 --- /dev/null +++ b/sysutils/mapchan/files/patch-doc::mapchan.8 @@ -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. +- +- diff --git a/sysutils/mapchan/files/patch-examples::default b/sysutils/mapchan/files/patch-examples::default new file mode 100644 index 000000000000..7dfe8d589a15 --- /dev/null +++ b/sysutils/mapchan/files/patch-examples::default @@ -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 diff --git a/sysutils/mapchan/files/patch-mapchan.c b/sysutils/mapchan/files/patch-mapchan.c new file mode 100644 index 000000000000..9e6278c0bca5 --- /dev/null +++ b/sysutils/mapchan/files/patch-mapchan.c @@ -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 */ diff --git a/sysutils/mapchan/pkg-descr b/sysutils/mapchan/pkg-descr new file mode 100644 index 000000000000..5ef7d995c07c --- /dev/null +++ b/sysutils/mapchan/pkg-descr @@ -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/ diff --git a/sysutils/mapchan/pkg-plist b/sysutils/mapchan/pkg-plist new file mode 100644 index 000000000000..34af0ba2d0ed --- /dev/null +++ b/sysutils/mapchan/pkg-plist @@ -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 |